<!-- https://tinyactors.dev/cli/commands/ -->
# Reference · tinyactors CLI

Kind: reference. For: [Workflow developer who tests](https://tinyactors.dev/audiences/workflow-tester.xml), [Agent-platform engineer](https://tinyactors.dev/audiences/agent-platform.xml).
Voice: [Reference](https://tinyactors.dev/voices/reference.xml).

> Browse every tinyactors command grouped by task and check the shared options accepted by all commands.

Each `tinyactors` command performs one job on charts, compiled images, snapshots or a local JSON-RPC host. Every command accepts shared flags for Markdown, JSON (`-f json`) or XML output.

`tinyactors [options] <command> [options] [arguments]`

<a id="check"></a>

### Compilation, checks, and formatting

Build chart images, verify compilation, catch unreachable logic and format files into canonical layout.

- **[`tinyactors compile`](https://tinyactors.dev/cli/commands/compile/index.md)**: Compile charts or a system manifest into an image.
- **[`tinyactors check`](https://tinyactors.dev/cli/commands/check/index.md)**: Check that charts compile or that an image verifies.
- **[`tinyactors lint`](https://tinyactors.dev/cli/commands/lint/index.md)**: Find what cannot work as written in charts.
- **[`tinyactors fmt`](https://tinyactors.dev/cli/commands/fmt/index.md)**: Rewrite charts and system manifests in the canonical layout.

<a id="read"></a>

### Chart and image inspection

List states, transitions, events, data, expressions and bytecode, trace shortest paths, draw diagrams and inspect images.

- **[`tinyactors states`](https://tinyactors.dev/cli/commands/states/index.md)**: List each chart's states as a tree in document order.
- **[`tinyactors transitions`](https://tinyactors.dev/cli/commands/transitions/index.md)**: List each chart's transitions with events, conditions and targets.
- **[`tinyactors events`](https://tinyactors.dev/cli/commands/events/index.md)**: List every event name and the transitions, raises and sends using it.
- **[`tinyactors data`](https://tinyactors.dev/cli/commands/data/index.md)**: List each chart's data declarations.
- **[`tinyactors expressions`](https://tinyactors.dev/cli/commands/expressions/index.md)**: List each chart's expressions and scripts with where they are.
- **[`tinyactors path`](https://tinyactors.dev/cli/commands/path/index.md)**: Find the shortest path to a state: events, conditions and transitions.
- **[`tinyactors graph`](https://tinyactors.dev/cli/commands/graph/index.md)**: Draw each chart, or list its boxes and edges.
- **[`tinyactors disassemble`](https://tinyactors.dev/cli/commands/disassemble/index.md)**: List each chart's executable content instruction by instruction.
- **[`tinyactors inspect`](https://tinyactors.dev/cli/commands/inspect/index.md)**: Show what an image, a snapshot or a blob holds.

<a id="compare"></a>

### Chart comparison

Show what changed between two chart versions and how those changes affect running actors.

- **[`tinyactors diff`](https://tinyactors.dev/cli/commands/diff/index.md)**: Compare two versions and show what changes for running actors.

<a id="run"></a>

### Chart execution

Start one host over JSON-RPC 2.0 on standard input and output for scripts and local testing.

- **[`tinyactors run`](https://tinyactors.dev/cli/commands/run/index.md)**: Serve one host over JSON-RPC 2.0 on standard input and output.

<a id="snapshots"></a>

### Snapshot and blob inspection

List each snapshot actor's state, queued events and delayed sends, and inspect snapshot or blob contents.

- **[`tinyactors actors`](https://tinyactors.dev/cli/commands/actors/index.md)**: List every actor of a snapshot with its state and queues.
- **[`tinyactors inspect`](https://tinyactors.dev/cli/commands/inspect/index.md)**: Show what an image, a snapshot or a blob holds.

<a id="program"></a>

### Help and version

Display usage details for any command alongside the versions of `tinyactors` and its embedded library.

- **[`tinyactors help`](https://tinyactors.dev/cli/commands/help/index.md)**: Describe a command or the program.
- **[`tinyactors version`](https://tinyactors.dev/cli/commands/version/index.md)**: Print the versions of the program and its library.

<a id="program-options"></a>

### Pass options shared across all commands

- **`-f, --format FORMAT`**: Write the answer in `FORMAT`; only graph answers in svg. Default: markdown. Values: `markdown`, `json`, `xml`, `svg`.
- **`-h, --help`**: Describe the command or the program.
- **`--version`**: Print the version as the version command does.
