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

# Advanced CLI Commands

> Lower-level Duvo CLI commands for sandboxes, revision integrations, raw API access, and deprecation notices.

These commands cover lower-level operations and edge cases. Most users won't need them day-to-day, but they're invaluable for scripting, integrations, and debugging.

For team-scoped Connections, Agent Memory, and team settings, see [Platform behaviors to plan for](https://docs.duvo.ai/api-reference/platform-behaviors.md).

## Sandboxes (`duvo sandboxes`)

Sandboxes are isolated file environments where you can stage files before starting a Run. Create a sandbox, upload files into it, then pass the sandbox ID when starting a Run with `duvo runs start --sandbox <sandbox-id>`.

```bash theme={"dark"}
duvo sandboxes create                              # create a new sandbox
duvo sandboxes files <sandbox-id>                  # list files in a sandbox
duvo sandboxes upload <sandbox-id> <file>          # upload a local file (max 10 MB)
duvo sandboxes prepare-upload-url <sandbox-id> \
  --path /workspace/data.csv                       # get a presigned URL for files over 10 MB
```

`--path` is the destination path inside the sandbox. After getting the URL, upload the file directly via HTTP.

## Revision integrations (`duvo revision-integrations`)

Revision integrations control which integrations (Connections) are attached to a specific Revision of an Agent, and let you pin particular Connection accounts to individual integration slots.

```bash theme={"dark"}
duvo revision-integrations list \
  --agent <agent-id> --revision <revision-id>             # list integrations on a Revision
duvo revision-integrations attach \
  --agent <agent-id> --revision <revision-id> \
  --integration <integration-id>                          # attach an integration (repeat --integration for multiple)
duvo revision-integrations remove <integration-id> \
  --agent <agent-id> --revision <revision-id> [-y]        # remove an integration from a Revision (prompts unless -y)
```

Use `duvo integrations list` to find integration IDs and `duvo connections list` to find Connection IDs.

### Pinned Connections

Pin a specific Connection account to an integration slot so the Agent always uses that account, regardless of who runs it.

```bash theme={"dark"}
duvo revision-integrations connections list \
  --agent <agent-id> --revision <revision-id> \
  --integration <integration-id>                          # list pinned Connections for a slot

duvo revision-integrations connections pin <connection-id> \
  --agent <agent-id> --revision <revision-id> \
  --integration <integration-id>                          # pin a Connection to a slot

duvo revision-integrations connections unpin <connection-id> \
  --agent <agent-id> --revision <revision-id> \
  --integration <integration-id> [-y]                     # unpin a Connection from a slot
```

## Raw API access (`duvo api`)

Call any Duvo API endpoint directly. Use this when you need an endpoint that doesn't have a dedicated `duvo` command yet, or when you want to inspect the raw API response.

```bash theme={"dark"}
duvo api GET /health
duvo api POST /v2/teams/<team-id>/runs -f agent_id=<agent-id> -f message="Check today's invoices"
duvo api GET /v2/teams/<team-id>/agents -F limit=10
duvo api POST /v2/teams/<team-id>/agents --input body.json
```

`-f key=value` sends a string and `-F key=value` sends a number, boolean, `null`, or the JSON in a file (`-F build=@build.json`). Repeat either flag for more fields. They go in the JSON body on `POST`, `PUT`, `PATCH`, and `DELETE`, and in the query string on `GET`. To send a whole JSON body instead, pass `--input <file>`, or `--input -` to read it from stdin.

The path is sent as written, so put the team ID in it yourself. The CLI authenticates the request using your active profile, so you don't have to handle headers manually.

## Deprecation notices

When the CLI detects that an API endpoint is deprecated, it prints a warning to `stderr` before the command output:

```
duvo: ⚠  GET /v1/old-endpoint is deprecated (sunset: 2026-08-01)
       See: https://docs.duvo.ai/api-reference/migration-guide
```

Notices include the sunset date (when the endpoint will stop working) and a link to the replacement or migration guide when available. Each `(method, path)` pair is only warned once per CLI invocation — repeated calls to the same endpoint won't repeat the notice.

> [!TIP]
>
> If you see a deprecation notice, update your scripts to use the replacement endpoint shown in the linked documentation before the sunset date.

## Related

> [card] [Public API Reference](https://docs.duvo.ai/api-reference.md)
>
> Full schema for every endpoint

> [card] [Managing Connections](https://docs.duvo.ai/cli/managing-connections.md)
>
> Pair with `duvo revision-integrations` to control which Connections an Agent uses


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.