# Commands

> fizz init, fizz ship, fizz status, fizz report, fizz logs, fizz config, and fizz self-update.

## fizz init [#fizz-init]

Set up this Machine to ship: check what fleetfizz needs here and print any fixes, then pick the Fleet from the tailnet and what to keep in line, and write the config.

| Flag | Description |
| --- | --- |
| `--config <path>` | Where to write the config. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

It runs no fix itself: the fixes need `sudo` or a login. It needs a terminal, and when a config already exists it shows it and changes nothing. After writing a config, it offers a dry run. [Getting started](/docs/getting-started) walks through it.

## fizz ship [#fizz-ship]

Ship the config to every reachable Machine.

| Flag | Description |
| --- | --- |
| `--dry-run` | Check and plan only. Print every Machine's plan and change nothing. |
| `--only <machine>` | Ship only to this Machine. Repeat the flag for more. |
| `--rebuild <item>` | Rebuild a record Item (`repos:<name>`, `skills:<name>`) even when it is up to date. `all` for every one. |
| `--answer <answer>` | Answer a Question in advance: `kind=choice` or `kind:subject=choice`. Repeat the flag for more. |
| `--bump` | Answer every above-range Question by bumping the config (`--answer range=bump`). |
| `--enforce` | Answer every above-range Question by downgrading into the Range (`--answer range=downgrade`). |
| `--overwrite-config` | Ship even when another Machine holds a newer config, overwriting it (`--answer config=overwrite`). |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

A Ship checks every Machine, plans its Steps, asks any Questions, then applies the plans in parallel. The Ledger lists what changes on each Machine by address: `pnpm:vercel`, `repos:t3code`.

### Answering in advance [#answering-in-advance]

`--answer kind=choice` answers every Question of a kind: `range=bump|skip|downgrade`, `config=overwrite|stop`, `file=overwrite|skip`, or `skill=overwrite|skip`. `--answer kind:subject=choice` answers one, such as `range:pnpm:vercel=bump`, and wins over the kind's answer.

Without a terminal, a Question is never waited on: a `range`, `file`, or `skill` Question is skipped, and a `config` Question stops the Ship. Piped to a file, the Ledger prints the full list once at the end.

### A different config elsewhere [#a-different-config-elsewhere]

If another Machine's config was edited there, was never written by a Ship, or was shipped there more recently than this one last reached it, the Ship asks first: use that config here and ship it, overwrite it with this one, or stop, and can show the diff before you pick. `--overwrite-config` answers overwrite in advance, and without a terminal the Ship stops instead.

## fizz status [#fizz-status]

Check every reachable Machine and show where each Item stands: in line, to change, a Question, or failing. Changes nothing and asks nothing.

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

Each Machine is a column, numbered as the list at the top numbers them: `✓` in line, `↑` the next Ship changes it, `?` the next Ship asks a Question about it, `✗` it fails, `–` skipped, `·` not targeted there, and `○` the Machine was not checked (offline, or no Tailscale SSH). Under the grid, each Machine lists what differs there and why. It plans exactly as `fizz ship --dry-run` does, so it agrees with the next Ship; it never asks a Question and writes no Ship Log.

## fizz report [#fizz-report]

Print the full Ledger of the last Ship from this Machine.

## fizz logs [#fizz-logs]

Print the Ship Log of a Ship: every script, every line each Machine printed, and every decision. Without a Ship id, the latest Ship that started on or reached this Machine, read over tailscale ssh when another Machine started it.

| Argument | Description |
| --- | --- |
| `<ship>` (optional) | The Ship id, printed at the end of every Ship. |

| Flag | Description |
| --- | --- |
| `--machine <machine>` | Print only this Machine's lines. |
| `--list` | List the Ships started here whose logs this Machine keeps (its last 20). |

Every Ship, dry runs included, writes a Ship Log on the Machine that started it, under `~/.local/state/fleetfizz/logs`, and ends by printing its id: `log: fizz logs 2026-10-18T14-03-22Z-connors-macbook-pro`. Each line has its time, its level, and the Machine and phase it belongs to; lines a Machine printed start with `> `. A Machine keeps its last 20. Since a Ship Log holds everything an Install Command printed, only your own user can read `~/.local/state/fleetfizz`, the logs and saved Ledger in it included. `fizz logs` on another Machine reads them over Tailscale SSH as that same user.

## fizz config [#fizz-config]

Show the config: each Provider's Items and the Machines they target, and when a Ship last reached each Machine.

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

It reads only the config and the tailnet, so it is instant and works with Machines offline.

### fizz config add [#fizz-config-add]

Every `add` writes its entry the way the docs write it, the shorthand (`"gh": "*"`) when it has no Targeting, then prints the lines it changed. It saves the config only when it still loads, and keeps its comments and layout. An Item that is already there is an error; change it with `fizz config edit`. Without a terminal, a missing value is an error instead of a prompt.

#### fizz config add machines [#fizz-config-add-machines]

Add Machines from the tailnet to the Fleet.

| Argument | Description |
| --- | --- |
| `<name>` (optional) | Machine names. Without any, pick from the tailnet. |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

#### fizz config add vp, npm, bun, pnpm [#fizz-config-add-vp-npm-bun-pnpm]

Add a Global that vp installs.

| Argument | Description |
| --- | --- |
| `<package>` | An npm package, with a Range (`vercel@^59`) or without one: then `^` the version vp has installed here, or the newest published. |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |
| `--platform <choice>` | Only Machines on this Platform. Repeat the flag for both. (choices: darwin, linux) |
| `--machine <machine>` | Only this Machine. Repeat the flag for more. |

`npm`, `bun`, and `pnpm` take the same arguments and flags, and read the installed version with that package manager.

#### fizz config add brew [#fizz-config-add-brew]

Add a Formula.

| Argument | Description |
| --- | --- |
| `<name>` | The Formula, or a tapped name (`owner/tap/name`). |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |
| `--latest` | Upgrade it on every Ship (`"latest"`) instead of installing it once (`"*"`). |
| `--platform <choice>` | Only Machines on this Platform. Repeat the flag for both. (choices: darwin, linux) |
| `--machine <machine>` | Only this Machine. Repeat the flag for more. |

#### fizz config add cask [#fizz-config-add-cask]

Add a Cask.

| Argument | Description |
| --- | --- |
| `<name>` | The Cask, or a tapped name. |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |
| `--latest` | Upgrade it on every Ship (`"latest"`) instead of installing it once (`"*"`). |
| `--platform <choice>` | Only Machines on this Platform. Repeat the flag for both. (choices: darwin, linux) |
| `--machine <machine>` | Only this Machine. Repeat the flag for more. |

#### fizz config add skills [#fizz-config-add-skills]

Add an agent skill.

| Argument | Description |
| --- | --- |
| `<name>` | The skill, by the name its source gives it. |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |
| `--source <string>` | Where the skills CLI installs it from: `owner/repo` on GitHub, or any source `skills add` takes. Default: the GitHub repo the CLI installed it from here. Asked for when missing. |
| `--ref <string>` | A branch, tag, or full commit SHA. Default: the repo's default branch, or without `--source`, the ref the CLI installed it at here. |
| `--agent <id>` | An agent to install it for, as a skills CLI id (`claude-code`). Repeat the flag for more. For the first skill, they are the section's `agents`, picked from this Machine's when missing; after that, the skill's own. |
| `--platform <choice>` | Only Machines on this Platform. Repeat the flag for both. (choices: darwin, linux) |
| `--machine <machine>` | Only this Machine. Repeat the flag for more. |

A skill the skills CLI installed here from GitHub needs only its name: its source and ref come from the CLI's lock. The first skill also writes the section's `agents`. When no package manager's section lists the skills CLI, it says how to add it.

#### fizz config add repos [#fizz-config-add-repos]

Add a Tracked Repo.

| Argument | Description |
| --- | --- |
| `<origin>` | The GitHub `owner/repo`. |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |
| `--name <string>` | The Item's name. Default: the repo's name. |
| `--ref <string>` | A branch or a full commit SHA. Default: the origin's default branch. |
| `--install <string>` | The Install Command. Asked for when missing. |
| `--output <path>` | A path outside the clone the Install Command produces. Repeat the flag for more. |
| `--platform <choice>` | Only Machines on this Platform. Repeat the flag for both. (choices: darwin, linux) |
| `--machine <machine>` | Only this Machine. Repeat the flag for more. |

#### fizz config add files [#fizz-config-add-files]

Add a Shared File.

| Argument | Description |
| --- | --- |
| `<path>` | A file or directory on this Machine. |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |
| `--name <string>` | The Item's name. Default: the last part of the path, without a leading dot. |
| `--exclude <glob>` | A glob inside a directory that is not copied. Repeat the flag for more. |
| `--platform <choice>` | Only Machines on this Platform. Repeat the flag for both. (choices: darwin, linux) |
| `--machine <machine>` | Only this Machine. Repeat the flag for more. |

A path under your home is written under `~`, so it names the same place on every Machine.

### fizz config remove [#fizz-config-remove]

Remove an Item or a Machine from the config. A Ship never uninstalls what it removes.

| Argument | Description |
| --- | --- |
| `<item>` | `provider:item` (`brew:tmux`, `pnpm:vercel`), or `machines:<name>` to take a Machine out of the Fleet. |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

`machines:<name>` also takes the Machine out of every Targeting list, and changes nothing when that would leave a list empty.

### fizz config edit [#fizz-config-edit]

Edit the config in `$VISUAL` or `$EDITOR`. It is saved only when it loads.

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

### fizz config path [#fizz-config-path]

Print the config's path.

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

## fizz self-update [#fizz-self-update]

Set the config's `version` and install that fleetfizz here, with the package manager that installed this one. The next Ship installs it on every Machine.

| Argument | Description |
| --- | --- |
| `<version>` (optional) | An exact version. Default: the newest published. |

| Flag | Description |
| --- | --- |
| `--config <path>` | The config file. Default: `$XDG_CONFIG_HOME/fleetfizz/config.jsonc`. |

It installs that fleetfizz on this Machine with the package manager that installed fizz, then sets the config's `version`, so a version that fails to install leaves the config as it was. The other Machines get it on the next Ship. Every fizz also switches to the config's `version` on its own before it runs a command that reads the config, older or newer, so a Machine that receives a new config catches up on its next command.
