> ## Documentation Index
> Fetch the complete documentation index at: https://help.descript.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For help recording, editing, or exporting in the Descript app, start with the [Help Center](https://help.descript.com/index.md).
> To connect an AI assistant to Descript, follow [Descript MCP setup](https://help.descript.com/developers/mcp/overview.md) for client-specific commands and sign-in.
> To build a REST integration, start with the [API quickstart](https://help.descript.com/developers/get-started/quickstart.md) to create a token and make your first request. Use the [API reference](https://help.descript.com/developers/api-reference/overview.md) for individual endpoints.

# Using the CLI

> Drive the Descript API from your terminal with the platform CLI.

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](https://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.

```bash theme={null}
npm install -g @descript/platform-cli@latest
```

Next, configure the CLI with your API key.

```bash theme={null}
descript-api config set api-key
```

![Setting up the CLI](https://mintcdn.com/descript-5bf56f3f/pso0Qcfu9AYH9D0W/images/cli-set-up.gif?s=226623d3a0106242a0bcd7521c4a4f42)

## 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.

```bash theme={null}
descript-api import \
  --name "My First Project" \
  --media "https://test-files.descriptapi.com/demo-video.mp4"
```

![Interactive CLI import](https://mintcdn.com/descript-5bf56f3f/pso0Qcfu9AYH9D0W/images/cli-import.gif?s=2b69d1e2ff3045ed533a6e795d04c14b)

## Use the agent

Use the `agent` command to edit a project by passing in the project id and an Underlord prompt.

```bash theme={null}
descript-api agent \
  --project-id YOUR_PROJECT_ID \
  --prompt "Remove filler words and add Studio Sound to all clips"
```

You can also ask Underlord to create a new project from a prompt alone by writing the script for you!

```bash theme={null}
descript-api agent --new \
  --prompt "Write a script about how to make great coffee"
```

## All commands

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


## Related topics

- [Descript API](https://help.descript.com/developers/index.md)
- [Using gap clips](https://help.descript.com/timeline/using-gap-clips.md)
- [Layer and clip overview](https://help.descript.com/visuals/working-with-layers-and-clips-overview.md)
- [Track and understand your media minutes and AI credits](https://help.descript.com/billing-payments-plans/track-and-understand-your-media-minutes-and-ai-credits.md)
- [Generate text-to-speech audio](https://help.descript.com/ai-speech/tts.md)
