Skip to main content
The CLI wraps the API into a simple to use command line tool with interactive flows for setting up authentication, importing, and prompting the agent. It also has built-in polling for job completion.

Requirements

Before installing the CLI, you’ll need Node.js 24 or higher. Visit nodejs.org to download and install the latest LTS version for your operating system.

Install and set up

First, install the latest version of the CLI using npm.
Next, configure the CLI with your API key.
Setting up the CLI

Import media

Use the import command to create a project by passing a project name and the link to any media you want to upload, or run descript-api import for interactive mode. The CLI shows live progress and outputs the project ID when done.
Interactive CLI import

Use the agent

Use the agent command to edit a project by passing in the project id and an Underlord prompt.
You can also ask Underlord create a new project from a prompt alone by writing the script for you!

All commands

Run descript-api help to see the full list of available commands and options.