@builtbyberry/marshall-cli
v0.6.0
Published
The Marshall client: the human path to the shared Marshall release store — what's startable, who holds what, and what drifted.
Maintainers
Readme
@builtbyberry/marshall-cli
The Marshall client — the human path to the same shared store the agent reaches over MCP. Read-only today: see what's startable and who holds what, from a terminal or a script.
This is not what the Claude plugin's skills call. They drive the store's MCP
tools directly (mcp__plugin_marshall_marshall__release_next, …); this CLI is
the secondary path for people, and the fallback the skills name when the MCP
server isn't connected.
Zero runtime dependencies. Node ≥ 18.
Install
npm install -g @builtbyberry/marshall-cli
marshall loginCommands
marshall login sign in via the browser (OAuth 2.1 + PKCE)
marshall logout forget the stored tokens
marshall me who this token authenticates as
marshall next --release <ver> startable work, ranked by what it unblocks (read-only)
marshall status --release <ver> who holds what + drift (read-only)Add --json for machine-readable output, or --project <slug> when a version
exists in more than one project.
Commands work anywhere once you are signed in — you sign in to a store, not to
a repo. (marshall me --require-repo is the exception, and exists for the
session-start hook: it fails unless the current repo opts into Marshall, which is
how the hook stays silent in repos that have nothing to do with it.)
Signing in
marshall login registers itself with the store as a public OAuth client, opens your
browser for consent, and catches the redirect on 127.0.0.1. Nothing to paste,
no client secret, no token to mint by hand — the store's Dynamic Client
Registration means a fresh install works against a store nobody prepared for it.
Tokens land in ~/.config/marshall/credentials.json, written 0600 and kept outside
any repo so they cannot be committed. marshall logout removes them. The store issues
short-lived tokens (15 days), so expect to sign in again occasionally.
No browser? The URL is printed before the browser is opened — visit it from anywhere and the login still completes. (A true headless flow would use the store's device grant; that needs a client registered on the store by an operator, so it isn't wired up yet.)
CI / non-interactive: set MARSHALL_TOKEN to a bearer for the store. The env
always beats a stored login, so a job can never be hijacked by whoever last ran
marshall login on the machine. Note the store has no machine-token flow yet, so
there is currently no first-class way to mint one for CI.
Configuration
Resolved per repo, with env overrides:
| Setting | From release-config.json state | Env override |
| --------- | --------------------------------------- | ------------- |
| backend | state.backend (default local-json) | MARSHALL_BACKEND |
| store URL | state.url (default: the hosted store) | MARSHALL_URL |
| project | state.project | MARSHALL_PROJECT |
| token | marshall login (never a tracked file) | MARSHALL_TOKEN |
backend is only consulted by marshall me --require-repo (the hook's gate).
Everything else just needs a store and a credential, so a fresh install works
from any directory. Set state.backend to "marshall" to opt a repo in.
"srm" also works and always will — it is a value existing repos already hold in
tracked config, so it can never be dropped — but a new repo should write
"marshall".
MARSHALL_CONFIG_HOME relocates the credentials file (the test suite points it at a
temp dir so it never touches real credentials).
Develop
npm test # node --test