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

# Occtoo CLI

> Manage your Occtoo organization from the terminal, from scripts and from CI

The Occtoo CLI is one program, `occtoo`, that lets you work with Occtoo from a terminal. You can create sources, import files, upload media, build cards and destinations, and watch events, without opening Studio or writing HTTP calls.

The CLI talks to the public Occtoo API at `https://api.occtoo.com`. Anything it does, you can also do with the [REST API](https://docs.occtoo.com/api-reference/overview.md).

> [!NOTE]
>
> The CLI is at version 0.1.0 and has no release yet. You build it from source with Cargo. Commands, flags and JSON output can still change before version 1.0.

## What you can do

* **Get data in.** Create sources and properties, import CSV, Excel and Avro files of any size, and write single entries.
* **Upload media.** Upload files and whole folders into a media source, give them properties from a spreadsheet, and convert images.
* **Model your data.** Manage card definitions, segments, relations and lifecycles.
* **Publish APIs.** Create destinations, versions and endpoints, and publish them.
* **React to changes.** Watch live events, read past events, and manage webhooks, queues and durable consumers.
* **Administer the organization.** Manage applications, managed tags and languages.
* **Try Occtoo quickly.** Fill an organization with realistic demo data, and remove it again.

## How it works

Every command follows the same pattern: `occtoo <noun> <verb>`.

```bash theme={null}
occtoo sources list
occtoo cards show product
occtoo media upload ./photos --to productImages
```

In a terminal, the CLI helps you: it shows readable tables, lets you pick from lists, and asks questions when you leave out details. In a script, it never asks anything. You pass JSON in and get JSON out with `--output json`. See [Scripting and CI](https://docs.occtoo.com/cli/scripting.md).

## Command groups

| Command | What it manages |
| - | - |
| [`occtoo auth`, `occtoo whoami`](https://docs.occtoo.com/cli/authentication) | Sign-in, credentials and who you are signed in as |
| [`occtoo sources`](https://docs.occtoo.com/cli/commands/sources) | Sources, properties, folders, entries, and file imports |
| [`occtoo cards`](https://docs.occtoo.com/cli/commands/cards) | Card definitions, card entry search, and exports |
| [`occtoo segments`](https://docs.occtoo.com/cli/commands/segments) | Named selections of the entries of a card |
| [`occtoo relations`](https://docs.occtoo.com/cli/commands/relations) | Links between the cards of two card definitions |
| [`occtoo lifecycles`](https://docs.occtoo.com/cli/commands/lifecycles) | Steps and rules that tell how far an entry has come |
| [`occtoo destinations`](https://docs.occtoo.com/cli/commands/destinations) | Destination APIs, their versions and endpoints |
| [`occtoo media`](https://docs.occtoo.com/cli/commands/media) | Media uploads, assets, image conversion and presets |
| [`occtoo events`](https://docs.occtoo.com/cli/commands/events) | Live and past events, and event destinations |
| [`occtoo applications`](https://docs.occtoo.com/cli/commands/applications) | Applications (client id and secret) and their access |
| [`occtoo managed-tags`](https://docs.occtoo.com/cli/commands/managed-tags) | Managed tags and their values |
| [`occtoo languages`](https://docs.occtoo.com/cli/commands/languages) | The languages of the organization |
| [`occtoo demo`](https://docs.occtoo.com/cli/commands/demo) | Demo data to try Occtoo out |

Run `occtoo --help`, or `--help` after any command, to see its arguments, flags and examples.

## Next steps

> [card] [Install the CLI](https://docs.occtoo.com/cli/installation.md)
>
> Build and install `occtoo` with Cargo.

> [card] [Quickstart](https://docs.occtoo.com/cli/quickstart.md)
>
> Seed demo data, look at it, watch events and clean up.


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