voiceflow-cli is a command-line tool that allows Voiceflow users to upload files to their knowledge base, download transcripts, run automated tests, and more.
In a few minutes, this guide will walk you through installing the CLI, authenticating your agent, and uploading a document to your knowledge base.
1. Install the CLI
Open your terminal, then input the command below that corresponds to your operating system. If you’re on MacOS or Linux, install brew before running this command.Mac or Linux
Windows
To check if the Voiceflow CLI was successfully installed, run:
2. Grab your agent’s API key
- Open the Voiceflow Creator, and click the agent you want to use with the CLI.
- In the sidebar, click Settings → API keys
- Click the copy button to grab your API key
3. Add the agent’s API key to your environment
Run the following command, making sure you replaceYOUR_KEY with the copied API key from the previous step. This will add your API key to the environment.
bash
.env file. Click here to learn more.