> ## 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 command reference

> Full reference for dench CLI commands covering sign in, context, CRM, integrations, approvals, memory, billing, files, routines, and chat.

Run any command with `npx -y -p @dench.com/cli dench <command>`, or `dench <command>`
if installed globally.

<CardGroup cols={3}>
  <Card title="CRM" icon="database" href="/docs/crm">objects, fields, entries, cells, query</Card>
  <Card title="Integrations" icon="plug" href="/docs/integrations">apps, tool status/connect/run</Card>
  <Card title="Approvals" icon="shield-halved" href="/docs/approvals">request, approve, reject</Card>
  <Card title="Memory" icon="brain" href="/docs/memory">search, save</Card>
  <Card title="Browser" icon="globe" href="/docs/cli/browser">actions, Playwright sessions</Card>
  <Card title="Billing" icon="credit-card" href="/docs/billing">status, topup, upgrade</Card>
  <Card title="API" icon="code" href="/docs/api/overview">the HTTP equivalent</Card>
</CardGroup>

<Tip>
  Add `--json` to almost any command for machine-readable output.
</Tip>

## Sign In

```bash theme={null}
dench signin --kind cursor --name "Cursor Agent - Project"
dench signin --new-workspace --org-name "Example" --kind cursor --name "Cursor Agent - Project"
dench signin --email user@example.com --kind cursor --name "Cursor Agent - Project"
```

## Context

```bash theme={null}
dench context --json
dench status --mine --json
dench agents --json
dench approvals --json
```

## CRM

```bash theme={null}
dench crm objects list --json
dench crm objects get <object> --json
dench crm objects create <name> --icon database --json
dench crm fields list <object> --json
dench crm entries list <object> --json
dench crm entries create <object> --data '{"Name":"Example"}' --json
dench crm entries update <object> <entryId> --data '{"Status":"Done"}' --json
dench crm cells set <object> <entryId> <field> '"value"' --json
dench crm query <object> --where '{"Status":"Open"}' --json
dench crm aggregate <object> --field Amount --json
dench crm batch --file ops.jsonl --json
```

Tasks are CRM entries on the protected `task` object:

```bash theme={null}
dench crm entries list task --json
# Field names are validated on write (unknown fields are rejected). Check
# them first with `dench crm fields list task`.
dench crm entries create task --data '{"Name":"Follow up","Status":"To Do"}' --json
```

## Approval Commands

```bash theme={null}
dench approval request "Deploy to production?" --risk high --json
dench approval approve <approval_id> --evidence "User said yes in chat" --json
dench approval reject <approval_id> --evidence "User said no in chat" --json
```

## Dench Integrations

```bash theme={null}
dench apps --json
dench tool status --json
dench tool status github --json
dench tool connect github --json
dench tool search "create github issue" --toolkit github --json
dench tool run <tool_slug> --args '{"key":"value"}' --json
dench tool disconnect <connection_id> --json
```

## Memory

```bash theme={null}
dench memory search "deployment policy" --json
dench memory save deployment-policy "Never deploy without approval." --kind decision --json
```

## Browser

```bash theme={null}
dench browser open https://example.com --json
dench browser inspect --json
dench browser click --text "Sign in"
dench browser screenshot --output page.jpg --json
dench browser session create --json
dench browser session status <session_id> --json
dench browser session stop <session_id> --json
```

Interactive actions and Playwright/CDP sessions are covered in
[Browser](/docs/cli/browser).

## Chat

```bash theme={null}
dench chat list --json
dench chat search "pricing" --json
dench chat read <thread_id> --json
dench chat new "Research the latest CRM changes" --json
dench chat send <thread_id> "Continue" --json
dench chat follow <thread_id>
dench agent new "Run the same chat agent loop" --json
```

## Routines

```bash theme={null}
dench cron list --json
dench cron create "Daily digest" --prompt "Summarize open CRM tasks" --every 1d --json
dench cron update <job_id> --name "New name" --json
dench cron enable <job_id> --json
dench cron disable <job_id> --json
dench cron run <job_id> --json
dench cron history --json
```

`dench routine` and `dench routines` are aliases for `dench cron`.

## Files

```bash theme={null}
dench files ls / --json
dench files mv /old.txt /new.txt --json
dench files rm /old.txt --json
dench stage /tmp/output /workspace/output --json
```

## Search And Images

```bash theme={null}
dench search "latest AI CRM workflows" --json
dench search contents https://example.com --json
dench search answer "What changed?" --json
dench image generate "simple app icon" --json
dench image edit "make it blue" --input ./icon.png --json
```

## Billing

```bash theme={null}
dench billing status --json
dench billing topup --amount 10 --json
dench upgrade --tier pro --json
```

## Sessions

```bash theme={null}
dench sessions --json
dench use <session-key-or-workspace-slug> --json
dench logout --json
```

Session commands operate on the caller's local machine.

## Agent Config

```bash theme={null}
dench identity show --json
dench organisation show --json
dench user show --json
dench tools show --json
dench mem show --json
dench heartbeat status --json
dench bootstrap status --json
dench model default <model_id> --json
dench daily today --json
```
