Realm-cli 2.2.0 doesn't support templated deployment

As mentioned in this documentation, you can can template variables in your deployment and using realm-cli push --environment="development" for instance, to deploy to development environment and substitute the values specified in the environments/development.json file. However, I do have the latest realm-cli installed, and it doesn’t support --environment option. What am I missing?