phrase / phrase-cli

CLI for the Phrase API
https://developers.phrase.com
MIT License
42 stars 6 forks source link

Using different .phrase.yml configuration for pulling/pushing data to Phrase with CLI #68

Closed JSEvgeny closed 3 years ago

JSEvgeny commented 3 years ago

Not sure if this is an issue, but I couldn't find any possible solutions to this in documentation.

The idea is to have two Phrase projects for one application and separating push command to upload data only for specific project and not both. For pulling data it's all good since we want to have up-to-date translations from both projects.

I replicated configuration from official documentation Keeping multiple Phrase projects for one localisation project. It works for pulling/pushing data from/to both projects, but support for pushing only to specific Phrase project would be super nice to have.

EDIT. NVM got different configs working using --config flag in CLI v2. Sorry for panic😅

theSoenke commented 3 years ago

@JSEvgeny Great that this is also solved for you 😄 I'll try to make sure that this flag will be more prominent in the docs