Skip to main content
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.
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>.
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.

Command groups

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

Next steps

Install the CLI

Build and install occtoo with Cargo.

Quickstart

Seed demo data, look at it, watch events and clean up.