Skip to content

A command line tool to import and export a dialogflow agent's state.

License

Notifications You must be signed in to change notification settings

Corasonn/dialogflow-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dialogflow-cli

Build Status

The missing command line interface for managing DialogFlow agents.

Why?

DialogFlow stores intents and entities outside of source control. This makes rollbacks and keeping track of history difficult.

Installation

yarn global add dialogflow-cli

Usage

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.

Export

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/

Import

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/

Restore

REstores the DialogFlow agent from the folder to the project under the account accessed by the credential file from the folder test.

dialogflow-cli restore --credentials ./credentials.json test/

About

A command line tool to import and export a dialogflow agent's state.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%