> ## 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: drive your workspace from the terminal

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

## Authentication

> [tab] Interactive
>
> Saves a session to `~/.dench/config.json` after browser approval.
>
> ```bash theme={null}
> dench signin --kind cursor --name "Cursor Agent - Project"
> ```

> [tab] Headless / CI
>
> Use a workspace API key, no browser needed.
>
> ```bash theme={null}
> export DENCH_API_KEY="<workspace key>"
> ```

## Everyday commands

> [card] Orient
>
> `dench context --json` · `dench status --mine --json`

> [card] [CRM](https://dench.com/docs/crm.md)
>
> `dench crm objects list` · `dench crm entries list task`

> [card] [Tools](https://dench.com/docs/integrations.md)
>
> `dench apps` · `dench tool run <slug> --args '{…}'`

> [card] [Memory](https://dench.com/docs/memory.md)
>
> `dench memory search` · `dench memory save`

> [card] [Full command reference](https://dench.com/docs/cli/commands.md)
>
> Every command, grouped by domain.

## When the CLI can't run

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

> [card] [API overview](https://dench.com/docs/api/overview.md)
>
> Same auth, interactive playground, one endpoint per command.

## Saved setup is separate from memory

Use `dench env` for explicitly saved scripts, packages and configuration, and
`dench secrets` for encrypted workspace credentials. Facts and preferences stay in
`dench memory`; a note is not proof that a key or dependency has been saved.
See [Reusable environments](https://dench.com/references/ENVIRONMENTS.md) and the
[generated CLI index](https://dench.com/references/CLI.md).


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