# Command reference

Every CARTO CLI command, organized by command group. The CLI uses a hierarchical structure:

```
carto [global-options] <command> <subcommand> [args...]
```

For global options (`--json`, `--debug`, `--profile`, …) and environment variables, see [Configuration](/carto-for-agents/cli/configuration.md).

| Group                                                                       | Purpose                                                                                                  |
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| [`auth`](/carto-for-agents/cli/command-reference/auth.md)                   | Personal authentication: log in, log out, switch profiles, check status.                                 |
| [`credentials`](/carto-for-agents/cli/command-reference/credentials.md)     | Manage application credentials (API tokens, SPA OAuth clients, M2M OAuth clients).                       |
| [`maps`](/carto-for-agents/cli/command-reference/maps.md)                   | Manage Builder maps: create, update, validate, publish, schema, agents, copy, screenshot (experimental). |
| [`workflows`](/carto-for-agents/cli/command-reference/workflows.md)         | Manage Workflows: create, update, validate, verify, run, share, schedule, mcp publish.                   |
| [`projects`](/carto-for-agents/cli/command-reference/projects.md)           | Manage projects (folders) that group maps and workflows, with local-sync workflow.                       |
| [`connections`](/carto-for-agents/cli/command-reference/connections.md)     | Manage data warehouse connections.                                                                       |
| [`named-sources`](/carto-for-agents/cli/command-reference/named-sources.md) | Manage Named Sources — server-side aliases for SQL queries.                                              |
| [`do`](/carto-for-agents/cli/command-reference/do.md)                       | Data Observatory: browse, search, sample, subscribe to spatial datasets.                                 |
| [`imports`](/carto-for-agents/cli/command-reference/imports.md)             | Import geospatial files (CSV, GeoJSON, GeoPackage, Shapefile, …) from local files or URLs.               |
| [`export`](/carto-for-agents/cli/command-reference/export.md)               | Export warehouse tables to file (GeoParquet, GeoJSON, Shapefile, CSV, …) or cloud storage.               |
| [`transfer`](/carto-for-agents/cli/command-reference/transfer.md)           | Transfer data between warehouses.                                                                        |
| [`sql`](/carto-for-agents/cli/command-reference/sql.md)                     | Run SQL queries (returns results) and SQL jobs (DDL/DML) on your data warehouse.                         |
| [`org`](/carto-for-agents/cli/command-reference/org.md)                     | View organization statistics, resources, and quotas.                                                     |
| [`users`](/carto-for-agents/cli/command-reference/users.md)                 | Manage organization users and pending invitations.                                                       |
| [`activity`](/carto-for-agents/cli/command-reference/activity.md)           | Query and export activity logs and usage data (Enterprise Large+).                                       |
| [`admin`](/carto-for-agents/cli/command-reference/admin.md)                 | Superadmin operations: list-all, batch-delete, transfer.                                                 |
| [`ai`](/carto-for-agents/cli/command-reference/ai.md)                       | Chat with map AI agents (`aifeature`) and access CARTO's LLM proxy (`aiproxy`).                          |


---

# 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.carto.com/carto-for-agents/cli/command-reference.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.
