Add the extension to your behat.yml like this:
default:
extensions:
Behat\TeamCityFormatter\TeamCityFormatterExtension: ~
Add the formatter to your suite:
some_suite:
formatters:
teamcity:
Just use the key teamcity
as your formatter:
behat -f teamcity