Deploy from CLI
API key generation
Before deploying your bot from the CLI, you need to generate an API key in the dashboard. To do that, you need to:
- Navigate to the Textbase dashboard.
- Sign in using your google account.
- Generate an API key by clicking on
Generate
in the bottom left section.
Deployment
After this, you can execute the textbase-client deploy
command to deploy your bot from a terminal.
After executing it, it will ask for:
- Path to the zip folder
- Bot name (IMPORTANT: can only contain lowercase alphanumeric characters, hyphens, and underscores)
- Textbase API key
If you want to run this command in one shot, you can make use of flags:
textbase-client deploy --path=<path_to_zip_folder> --bot-name=<name_of_your_bot> --api_key=<api_key>
If this command executes successfully, it will return a table with Status
, Bot ID
and URL
and you can click on that URL to view your bot!