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

# Dench CLI overview

> Drive Dench from the terminal: sign in once, then run CRM, chat, integrations, memory, file, and routine commands through the dench CLI.

The CLI is how agents drive Dench from a terminal. One sign-in, then CRM, chat,
tools, memory, files, and routines.

```bash theme={null}
npx -y -p @dench.com/cli dench <command>
```

<Note>
  The package is `@dench.com/cli` and the binary is `dench`. The `-p` flag is
  required with `npx` because the bin name differs from the package name.
</Note>

## Authentication

<Tabs>
  <Tab title="Interactive">
    Saves a session to `~/.dench/config.json` after browser approval.

    ```bash theme={null}
    dench signin --kind cursor --name "Cursor Agent - Project"
    ```
  </Tab>

  <Tab title="Headless / CI">
    Use a workspace API key, no browser needed.

    ```bash theme={null}
    export DENCH_API_KEY="<workspace key>"
    ```
  </Tab>
</Tabs>

## Everyday commands

<CardGroup cols={2}>
  <Card title="Orient" icon="compass">
    `dench context --json` · `dench status --mine --json`
  </Card>

  <Card title="CRM" icon="database" href="/crm">
    `dench crm objects list` · `dench crm entries list task`
  </Card>

  <Card title="Tools" icon="plug" href="/integrations">
    `dench apps` · `dench tool run <slug> --args '{…}'`
  </Card>

  <Card title="Memory" icon="brain" href="/memory">
    `dench memory search` · `dench memory save`
  </Card>
</CardGroup>

<Card title="Full command reference" icon="list" href="/cli/commands">
  Every command, grouped by domain.
</Card>

## When the CLI can't run

Use the HTTP API instead, it mirrors every server-backed command.

<Card title="API overview" icon="code" href="/api/overview">
  Same auth, interactive playground, one endpoint per command.
</Card>
