@fiducial/cli
v0.3.0
Published
fid — the Fiducial platform CLI
Maintainers
Readme
@fiducial/cli
fid — the Fiducial platform CLI
fid is the command-line interface for the Fiducial
platform. It scaffolds product repositories, manages capabilities, runs derive
pipelines, and enforces platform guard rules.
Install
The binary is written in Rust and distributed via both cargo and npm:
# Via cargo (recommended for development)
cargo install fiducial-cli
# Via npm (for JS-first teams or CI environments)
npm install -g @fiducial/cliNote: The npm package is a thin shim that exec-replaces into the native
fidbinary. You still need the Rust binary on PATH (or setFID_BIN).
Commands
| Command | Does |
| --- | --- |
| fid new <name> | Scaffold a new product repository |
| fid add <app\|firmware\|module\|capability> … | Grow it: an app, a firmware target, a module, a capability (fid add capability hardware) |
| fid derive | Run its pipelines; --check fails when an artifact or an input it was derived from drifted |
| fid upgrade | Pull platform template and capability updates (--capability <id> for one) |
| fid doctor | Check for drift: stale templates, outdated deps |
| fid dash | One read-only view of roadmap, decisions, CI, graph and freshness |
| fid thesis | The claim the product is built to test |
| fid docs --check | Fail when prose describes something that changed |
fid --help lists every command. Install the binary at the platform version
you want: cargo install fiducial-cli --version 0.9.1.
Guard
The guard runs as a Claude Code PreToolUse hook. Products scaffolded with
fid new get .claude/settings.json pre-configured to call fid guard-check
before every Bash tool call.
The guard is shell-aware: it tokenizes the command and only fires when a
forbidden word appears in command position (argv[0]). Running
echo "install npm packages" never triggers the package-manager rule because
npm is inside a quoted string argument — not a command.
This eliminates the false positives that blocked legitimate work in the original regex-based guards.
License
MIT
