# Overview

The DCD CLI is the primary way to interact with DeviceCloud from your terminal or CI/CD pipeline. It is published as `@devicecloud.dev/dcd` on npm.

## Installation

```bash
npm install -g @devicecloud.dev/dcd
```

## Authentication

All commands require an API key. Set it as an environment variable to avoid passing it on every command:

```bash
export DEVICE_CLOUD_API_KEY=your-api-key
```

Or pass it explicitly with `--api-key <key>` on any command. You can find your API key in the console under **Settings → API Key**.

## Commands

| Command                                      | Description                                        |
| -------------------------------------------- | -------------------------------------------------- |
| [`dcd cloud`](/cli-reference/dcd-cloud.md)   | Upload an app and run Maestro flows on DeviceCloud |
| [`dcd upload`](/cli-reference/dcd-upload.md) | Upload an app binary and get a reusable binary ID  |
| [`dcd status`](/cli-reference/dcd-status.md) | Check the status of a test upload                  |
| [`dcd list`](/cli-reference/dcd-list.md)     | List recent uploads for your organisation          |
| `dcd help`                                   | Display help for any command                       |

## Getting Help

```bash
dcd help
dcd help cloud
dcd help status
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devicecloud.dev/cli-reference/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
