2026-05-31 01:47:39 +00:00
# Distributor CLI
## Shortest useful command
```sh
2026-05-31 02:21:36 +00:00
go run ./cmd/distributor run --config examples/local-publish.yml
2026-05-31 01:47:39 +00:00
```
2026-05-31 02:21:36 +00:00
This validates and publishes the example source bundle to `workspace/published/source-bundle` .
2026-05-31 01:47:39 +00:00
## Command overview
```sh
distributor --help
distributor version
distributor run
distributor validate
distributor inspect
```
`version` prints the application name and version. The default development version is `dev` ; release builds may replace it at build time.
2026-05-31 02:28:48 +00:00
`run --config <path>` executes configured local-to-local pipelines that publish source files, generated HTML files, or both.
2026-05-31 02:21:36 +00:00
2026-05-31 02:33:09 +00:00
`run --config <path> --dry-run` discovers source bundles, inspects destination state, and prints planned actions plus a final status summary without writing files.
2026-05-31 01:53:13 +00:00
2026-05-31 02:07:30 +00:00
`validate <path>` validates a local source bundle directory or a local tree containing source bundles.
`inspect <path>` validates discovered local source bundles and prints a concise normalized summary.
2026-05-31 02:28:48 +00:00
Remote backends are not implemented yet.
2026-05-31 01:47:39 +00:00
## Flag reference
The root command supports:
- `--help` , `-h` : print root help.
2026-05-31 01:53:13 +00:00
Each subcommand supports:
2026-05-31 01:47:39 +00:00
- `--help` , `-h` : print command-specific help.
2026-05-31 01:53:13 +00:00
`run` supports:
- `--config <path>` : config file to load.
2026-05-31 02:33:09 +00:00
- `--dry-run` : validate config, print planned actions and final status, and do not publish.
2026-05-31 01:53:13 +00:00
## Common workflows
2026-05-31 02:07:30 +00:00
Validate a source bundle:
```sh
go run ./cmd/distributor validate examples/source-bundle
```
Inspect a source bundle:
```sh
go run ./cmd/distributor inspect examples/source-bundle
```
2026-05-31 02:21:36 +00:00
Preview local publication without writing:
```sh
go run ./cmd/distributor run --config examples/local-publish.yml --dry-run
```
Publish the local example:
2026-05-31 01:53:13 +00:00
```sh
2026-05-31 02:21:36 +00:00
go run ./cmd/distributor run --config examples/local-publish.yml
2026-05-31 01:53:13 +00:00
```
2026-05-31 02:28:48 +00:00
Publish the local HTML example:
```sh
go run ./cmd/distributor run --config examples/local-html.yml
```