The missing command line interface for managing DialogFlow agents.
DialogFlow stores intents and entities outside of source control. This makes rollbacks and keeping track of history difficult.
yarn global add dialogflow-cli
This interacts with DialogFlow with the v2 API. First, follow the directions in the API Quickstart to get JSON Credentials to a Service Account. Then, you can run one of the following commands.
Exports the DialogFlow agent for the project under the account accessed by the credential file to the folder test.
dialogflow-cli export --credentials ./credentials.json test/
Imports the DialogFlow agent from the folder to the project under the account accessed by the credential file from the folder test.
dialogflow-cli import --credentials ./credentials.json test/