CLI reference
Every surject command with its options, as printed by --help. The global
options --home, --json and --yes work with every command. Exit codes
and task-oriented examples are in the user guide.
Commands
surjectsurject doctorsurject serversurject skillssurject agentsurject sourcesurject catalogsurject scannersurject projectsurject historysurject statussurject diffsurject effectivesurject applysurject rollbacksurject ejectsurject showsurject tagsurject restoresurject backupsurject remotesurject importsurject adoptsurject migratesurject secretssurject envsurject secretsurject secret-headersurject execsurject completions
surject
Manage MCP servers, skills and secret references for AI coding clients
Usage: surject [OPTIONS] <COMMAND>
Commands:
doctor Check the installation and report problems
server Manage MCP servers in the store
skills Skills: install, enable for clients and projects, update, scan
agent The read-only Surjection skill for coding agents: install, remove, status, skill-path
source Trusted and blocked install sources: list, trust, block, untrust
catalog Catalogs of MCP servers and skills: list, add, search, show
scanner Scanners: the built-in scanner and the optional SkillSpector (runs locally; off by default)
project Project manifests: create, register, trust, share, list, forget
history List store commits
status Show the state of every owned and desired entry
diff Show the apply plan as file diffs
effective Show what each client loads in a folder, and from where
apply Reconcile client files with the store (one commit per run)
rollback Roll back an apply run (or an eject run)
eject Stop managing this machine: hand client files and skill folders back to the clients (the store and history are kept)
show Show one store commit and what it changed
tag Create, list or delete store tags
restore Restore the store (or client files) from an earlier state
backup Commit hand edits of the store and optionally tag the result
remote Backup and sync remotes (none by default)
import Import foreign client entries into the store
adopt Take ownership of foreign or changed client entries
migrate Migrate from SkillDock (~/.skilldock is only read)
secrets Secret references: aliases, providers and their status
env Print export statements for secret aliases
secret Print one resolved value (internal, for client command hooks)
secret-header Print resolved headers as JSON (internal, for Claude Code `headersHelper`)
exec Start an MCP server with secrets from its references (launch delivery); never writes to stdout
completions Print a shell completion script for surjection to stdout (bash, zsh, fish, powershell or elvish)
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
-V, --version Print version
surject doctor
Check the installation and report problems
Usage: surject doctor [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--paths Also report the resolved OS folders and data directory layout
--json Print machine-readable JSON to stdout
--scan-history Also scan every store commit for secrets (reports only; history is never rewritten)
--report Print a diagnostic report to attach to a bug report: versions, file sizes, counts, client detection and recent log lines, redacted (no secret values, file contents or full paths). Nothing is sent
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject server
Manage MCP servers in the store
Usage: surject server [OPTIONS] <COMMAND>
Commands:
ls List servers
show Print a server definition
add Add a server, or (--from) draft servers from a git repository or a local folder
edit Change fields of a server: what is given replaces what the file has; everything else (comments and other keys too) stays
enable Enable a server for clients: at user scope, or with --project in the project's private manifest (--shared: its shared one)
disable Disable a server for clients: at user scope, or with --project in the project's private manifest (--shared: its shared one)
rm Remove servers; several ids make one commit
check Check what a remote server asks for before it answers: OAuth sign-in, a token, or nothing. Sends one unauthenticated MCP request to its host (and, for OAuth, reads the public metadata the MCP authorization specification defines), only for a host you allowed
update Update servers added with --from (all, or ID) to what their source gives now; --check only reports
checkout Re-create or bring up to date this machine's checkout of a server added with --from that runs from its repository (`SURJECTION_HOME/servers/<ID>`), at the commit its file names. The same gates as `add --from`: source trust, then the scan
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject server ls
List servers
Usage: surject server ls [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject server show
Print a server definition
Usage: surject server show [OPTIONS] <ID>
Arguments:
<ID> Server id
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject server add
Add a server, or (--from) draft servers from a git repository or a local folder
Usage: surject server add [OPTIONS] [ID|URL] [-- <COMMAND>...]
Arguments:
[ID|URL]
Server id: 1 to 64 characters from a-z, 0-9, '.', '_', '-'. Or the address of a remote server (https://...): its id is then made from the address, as without an id for --url or a command after `--`. With --from: the id of the one draft saved [default: from its name]
[COMMAND]...
Command and arguments of a stdio server, after `--`
Options:
--home <PATH>
Data directory to use instead of SURJECTION_HOME or the per-OS default
--url <URL>
Endpoint of an http or sse server
--json
Print machine-readable JSON to stdout
--transport <TRANSPORT>
Transport [default: stdio; for an address, sse when its path ends in /sse, else http]
[possible values: stdio, http, sse]
--env <KEY=VALUE>
Environment variable of a stdio server; the value may be a reference such as ${secret:ALIAS} and is never a secret itself
--yes
Answer yes to confirmations (rolling back an older apply run)
--header <NAME=VALUE>
HTTP header of an http or sse server; the value may hold references
--cwd <CWD>
Working directory of a stdio server
--display-name <DISPLAY_NAME>
--description <DESCRIPTION>
--tag <TAG>
Tag (repeatable)
--client <CLIENT>
Enable at system scope for this client (repeatable) [default: the detected clients that can run the server's transport]
--all-detected
Enable at system scope for every detected client
--no-clients
Enable for no client (the server is only defined)
--from <GIT-URL|PATH|catalog:SOURCE/ID>
Draft servers from a git repository (https, ssh, file://, a bare repository) or a local folder: server.json, an MCPB manifest.json, committed client configs, or the repository as a package. Or from a catalog entry: catalog:<SOURCE>/<ID> (`surject catalog search`)
--path <PATH>
Folder inside the git repository
--ref <REF>
Branch, tag or commit of the git repository; for a registry catalog entry, the version (pins it: updates do not follow)
--pick <KEY|ID>
The draft to save, by key or id (repeatable) [default: the only draft]
--all
Save every draft
--dry-run
List the drafts, their inputs and scan findings; save nothing (the clone is removed)
--trust-source [<ONCE|REPO|OWNER|HOST>]
Answer the source trust prompt up front: once (this save only), or always for the repo, its owner or its host. Only for a source you trust: a server drafted from it runs its commands. --yes never answers the trust prompt
Possible values:
- once: Install or update this time only
- repo: Always trust this repository
- owner: Always trust every repository of this owner
- host: Always trust every repository on this host (not for public hosts such as github.com)
--allow-dangerous
Save even when the built-in scan finds dangerous content (review the findings first, with --dry-run)
-h, --help
Print help (see a summary with '-h')
surject server edit
Change fields of a server: what is given replaces what the file has; everything else (comments and other keys too) stays
Usage: surject server edit [OPTIONS] <ID> [-- <COMMAND>...]
Arguments:
<ID> Server id
[COMMAND]... New command and arguments of a stdio server, after `--`
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--url <URL> Endpoint of an http or sse server
--json Print machine-readable JSON to stdout
--transport <TRANSPORT> Transport [default: as it is; http when --url is given to a stdio server, stdio when a command is given to an http or sse server]. Switching drops the other transport's fields [possible values: stdio, http, sse]
--env <KEY=VALUE> Set an environment variable of a stdio server (repeatable); the value may be a reference such as ${secret:ALIAS} and is never a secret itself
--yes Answer yes to confirmations (rolling back an older apply run)
--header <NAME=VALUE> Set an HTTP header of an http or sse server (repeatable); the value may hold references
--cwd <CWD> Working directory of a stdio server
--display-name <DISPLAY_NAME> Name shown instead of the id; empty removes it
--description <DESCRIPTION> One-line description; empty removes it
--tag <TAG> Tag (repeatable); replaces the server's tags
--unset-env <KEY> Remove an environment variable (repeatable)
--unset-header <NAME> Remove an HTTP header (repeatable)
--clear-cwd Remove the working directory
-h, --help Print help
surject server enable
Enable a server for clients: at user scope, or with --project in the project's private manifest (--shared: its shared one)
Usage: surject server enable [OPTIONS] --client <CLIENT> <ID>
Arguments:
<ID> Server id (with --project: the server's name in the manifests)
Options:
--client <CLIENT> Client id (repeatable) [possible values: claude-code, omp, pi, codex, claude-desktop, copilot, cursor, gemini, antigravity, opencode, grok, vscode-legacy, windsurf, devin, augment, cline, roo-code, kilo-code, kiro, junie, droid, commandcode, crush, qoder, trae, trae-cn, codebuddy, iflow, qwen-code, zencoder, openclaw, mimo-code, workbuddy, zcode, continue, goose, hermes, intellij]
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--project <PATH> A folder in a project: edit the project's manifest instead of the store server (the project must be trusted as it is)
--shared With --project: write the shared `.surjection/project.toml` instead of the private `.surjection/project.local.toml`
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject server disable
Disable a server for clients: at user scope, or with --project in the project's private manifest (--shared: its shared one)
Usage: surject server disable [OPTIONS] --client <CLIENT> <ID>
Arguments:
<ID> Server id (with --project: the server's name in the manifests)
Options:
--client <CLIENT> Client id (repeatable) [possible values: claude-code, omp, pi, codex, claude-desktop, copilot, cursor, gemini, antigravity, opencode, grok, vscode-legacy, windsurf, devin, augment, cline, roo-code, kilo-code, kiro, junie, droid, commandcode, crush, qoder, trae, trae-cn, codebuddy, iflow, qwen-code, zencoder, openclaw, mimo-code, workbuddy, zcode, continue, goose, hermes, intellij]
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--project <PATH> A folder in a project: edit the project's manifest instead of the store server (the project must be trusted as it is)
--shared With --project: write the shared `.surjection/project.toml` instead of the private `.surjection/project.local.toml`
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject server rm
Remove servers; several ids make one commit
Usage: surject server rm [OPTIONS] <IDS>...
Arguments:
<IDS>... Server ids
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject server check
Check what a remote server asks for before it answers: OAuth sign-in, a token, or nothing. Sends one unauthenticated MCP request to its host (and, for OAuth, reads the public metadata the MCP authorization specification defines), only for a host you allowed
Usage: surject server check [OPTIONS] <ID|URL>
Arguments:
<ID|URL> A server id (its address is checked) or an address (https://...)
Options:
--allow-host Allow the address's host for address checks on this machine without asking (for scripts); the answer is remembered
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject server update
Update servers added with --from (all, or ID) to what their source gives now; --check only reports
Usage: surject server update [OPTIONS] [ID]
Arguments:
[ID]
Options:
--check
Report available updates; change nothing
--home <PATH>
Data directory to use instead of SURJECTION_HOME or the per-OS default
--json
Print machine-readable JSON to stdout
--trust-source [<ONCE|REPO|OWNER|HOST>]
Answer the source trust prompt up front (see `server add`)
Possible values:
- once: Install or update this time only
- repo: Always trust this repository
- owner: Always trust every repository of this owner
- host: Always trust every repository on this host (not for public hosts such as github.com)
--allow-dangerous
Update even when the built-in scan finds dangerous content
--yes
Answer yes to confirmations (rolling back an older apply run)
-h, --help
Print help (see a summary with '-h')
surject server checkout
Re-create or bring up to date this machine's checkout of a server added with --from that runs from its repository (`SURJECTION_HOME/servers/<ID>`), at the commit its file names. The same gates as `add --from`: source trust, then the scan
Usage: surject server checkout [OPTIONS] <ID>
Arguments:
<ID>
Options:
--home <PATH>
Data directory to use instead of SURJECTION_HOME or the per-OS default
--trust-source [<ONCE|REPO|OWNER|HOST>]
Answer the source trust prompt up front (see `server add`)
Possible values:
- once: Install or update this time only
- repo: Always trust this repository
- owner: Always trust every repository of this owner
- host: Always trust every repository on this host (not for public hosts such as github.com)
--allow-dangerous
Check out even when the built-in scan finds dangerous content
--json
Print machine-readable JSON to stdout
--yes
Answer yes to confirmations (rolling back an older apply run)
-h, --help
Print help (see a summary with '-h')
surject skills
Skills: install, enable for clients and projects, update, scan
Usage: surject skills [OPTIONS] <COMMAND>
Commands:
ls List store skills (and the agents CLI's skills when compatibility is on)
add Install a skill from a git URL, a local folder, or a .zip/.skill archive. With --yes, a taken id becomes <id>-2. A git source you have not trusted asks first (a terminal prompt, or --trust-source). The built-in scan runs first (and SkillSpector when it is on); a dangerous verdict installs nothing (exit 8) unless --allow-dangerous
rm Remove a store skill and its owned links and copies; with --agents, remove an agents CLI skill through the `skills` CLI
enable Enable a skill for clients (user scope), or in a project
disable Disable a skill for clients (user scope), or in a project
update Update git skills (all, or ID); --check only reports. A source you have not trusted (or whose trust lapsed after a force-push or a move) asks first. Each new content is scanned first; a dangerous one is not applied (exit 8) unless --allow-dangerous
scan Classify the client skill folders: managed, unmanaged, mismatch
import Import an unmanaged folder of a client's skill folder into the store
trash Move an unmanaged or mismatched entry of a client's skill folder to the trash (backups/trash), never deleting it
vendor Copy an agents CLI skill (~/.agents/skills) into the store
adopt Adopt unmanaged folders of client skill folders (SPEC 8.6, 12.5): import them into the store, enabled where they were found, and replace each folder whose content equals the store copy with a link (the folder moves to backups/trash). Folders with the same content in several clients become one skill. Without NAME, --all, --pick or --both, lists what can be adopted
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject skills ls
List store skills (and the agents CLI's skills when compatibility is on)
Usage: surject skills ls [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject skills add
Install a skill from a git URL, a local folder, or a .zip/.skill archive. With --yes, a taken id becomes <id>-2. A git source you have not trusted asks first (a terminal prompt, or --trust-source). The built-in scan runs first (and SkillSpector when it is on); a dangerous verdict installs nothing (exit 8) unless --allow-dangerous
Usage: surject skills add [OPTIONS] <SOURCE>
Arguments:
<SOURCE>
Git URL (a GitHub /tree/<ref>/<path> URL selects a folder), a local folder or archive, a catalog entry (catalog:<SOURCE>/<ID>), or a skills.sh address (https://skills.sh/<owner>/<repo>/<skill>)
Options:
--home <PATH>
Data directory to use instead of SURJECTION_HOME or the per-OS default
--path <PATH>
Skill folder inside a git repository
--json
Print machine-readable JSON to stdout
--ref <REF>
Branch, tag or commit of a git repository (a commit pins the skill)
--id <ID>
Skill id [default: from the SKILL.md name]
--yes
Answer yes to confirmations (rolling back an older apply run)
--allow-dangerous
Install even when the built-in scan finds dangerous content (review the findings first)
--external
Also run SkillSpector on it this time (locally), even when it is turned off
--no-external
Do not run SkillSpector this time, even when it is turned on
--trust-source[=<ONCE|REPO|OWNER|HOST>]
Trust the git source without the prompt: once (this install only), or always for the repo, its owner or its host (`--trust-source=repo`; the value needs the `=`). Only for a source you trust: skills can run commands and read your files. --yes never answers the trust prompt
Possible values:
- once: Install or update this time only
- repo: Always trust this repository
- owner: Always trust every repository of this owner
- host: Always trust every repository on this host (not for public hosts such as github.com)
-h, --help
Print help (see a summary with '-h')
surject skills rm
Remove a store skill and its owned links and copies; with --agents, remove an agents CLI skill through the `skills` CLI
Usage: surject skills rm [OPTIONS] <ID>
Arguments:
<ID>
Options:
--agents ID names an agents CLI skill
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject skills enable
Enable a skill for clients (user scope), or in a project
Usage: surject skills enable [OPTIONS] <ID>
Arguments:
<ID>
Options:
--client <CLIENT> Client id (repeatable) [enable default: all detected clients; disable default: every client]
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--project <PATH> A project folder: edit its manifest's [skills] enable instead
--copy Distribute as copies
--yes Answer yes to confirmations (rolling back an older apply run)
--link Distribute as links (the default)
--symlink On Windows, make directory symbolic links instead of junctions (needs Developer Mode or admin rights)
-h, --help Print help
surject skills disable
Disable a skill for clients (user scope), or in a project
Usage: surject skills disable [OPTIONS] <ID>
Arguments:
<ID>
Options:
--client <CLIENT> Client id (repeatable) [enable default: all detected clients; disable default: every client]
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--project <PATH> A project folder: edit its manifest's [skills] enable instead
--copy Distribute as copies
--yes Answer yes to confirmations (rolling back an older apply run)
--link Distribute as links (the default)
--symlink On Windows, make directory symbolic links instead of junctions (needs Developer Mode or admin rights)
-h, --help Print help
surject skills update
Update git skills (all, or ID); --check only reports. A source you have not trusted (or whose trust lapsed after a force-push or a move) asks first. Each new content is scanned first; a dangerous one is not applied (exit 8) unless --allow-dangerous
Usage: surject skills update [OPTIONS] [ID]
Arguments:
[ID]
Options:
--check
Report available updates; update no skill. A trusted source found force-pushed or moved still has its trust lapse (one store commit), so the next install or update from it asks
--home <PATH>
Data directory to use instead of SURJECTION_HOME or the per-OS default
--agents
ID names an agents CLI skill, updated through the `skills` CLI
--json
Print machine-readable JSON to stdout
--allow-dangerous
Apply updates even when the built-in scan finds dangerous content (review the findings first, with --check)
--yes
Answer yes to confirmations (rolling back an older apply run)
--external
Also run SkillSpector on each available update this time (locally), even when it is turned off
--no-external
Do not run SkillSpector this time, even when it is turned on
--trust-source[=<ONCE|REPO|OWNER|HOST>]
Trust the git sources without the prompt: once (this update only), or always for the repo, its owner or its host (`--trust-source=repo`; the value needs the `=`, so `--trust-source repo` updates the skill `repo` once)
Possible values:
- once: Install or update this time only
- repo: Always trust this repository
- owner: Always trust every repository of this owner
- host: Always trust every repository on this host (not for public hosts such as github.com)
-h, --help
Print help (see a summary with '-h')
surject skills scan
Classify the client skill folders: managed, unmanaged, mismatch
Usage: surject skills scan [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--project <PATH> Scan the project folders of this project instead of the user folders
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject skills import
Import an unmanaged folder of a client's skill folder into the store
Usage: surject skills import [OPTIONS] <CLIENT> <NAME>
Arguments:
<CLIENT>
<NAME>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--project <PATH>
--id <ID> Skill id [default: from the SKILL.md name]
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject skills trash
Move an unmanaged or mismatched entry of a client's skill folder to the trash (backups/trash), never deleting it
Usage: surject skills trash [OPTIONS] <CLIENT> <NAME>
Arguments:
<CLIENT>
<NAME>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--project <PATH>
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject skills vendor
Copy an agents CLI skill (~/.agents/skills) into the store
Usage: surject skills vendor [OPTIONS] <NAME>
Arguments:
<NAME>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--id <ID> Skill id [default: from the SKILL.md name]
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject skills adopt
Adopt unmanaged folders of client skill folders (SPEC 8.6, 12.5): import them into the store, enabled where they were found, and replace each folder whose content equals the store copy with a link (the folder moves to backups/trash). Folders with the same content in several clients become one skill. Without NAME, --all, --pick or --both, lists what can be adopted
Usage: surject skills adopt [OPTIONS] [NAMES]...
Arguments:
[NAMES]... Folder names to adopt (each with one content)
Options:
--all Adopt every name that has one content
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--tool <CLIENT> Only this client's skill folder [default: every client]
--project <PATH> The skill folders of this project (trusted) instead of the user folders; adopted skills go to its manifest's [skills] enable
--yes Answer yes to confirmations (rolling back an older apply run)
--pick <NAME=CLIENT> For a name with several contents: adopt the content in CLIENT's folder (or `store`, the store's copy) as NAME; folders with other content are kept (repeatable)
--both <NAME=CLIENT> Adopt CLIENT's content (or `store`) as NAME and every other content as NAME-<client> (repeatable)
-h, --help Print help
surject agent
The read-only Surjection skill for coding agents: install, remove, status, skill-path
Usage: surject agent [OPTIONS] <COMMAND>
Commands:
install Install the Surjection skill (read-only; bundled with Surjection) as the store skill `surject` and enable it for clients. An older store copy you did not edit is updated first
remove Disable the Surjection skill for clients; without --client, remove it from the store with its links and copies
status Show the bundled version, the store copy and the clients it is enabled for
skill-path Print a folder holding the bundled skill (kept in the data directory's cache), to point an agent at by hand
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject agent install
Install the Surjection skill (read-only; bundled with Surjection) as the store skill `surject` and enable it for clients. An older store copy you did not edit is updated first
Usage: surject agent install [OPTIONS]
Options:
--client <CLIENT> Client id (repeatable) [default: every detected client with a skill folder; with --reset, the clients it is enabled for stay as they are]
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--reset Replace the store copy with the bundled one even if you edited it (your edits stay in History)
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject agent remove
Disable the Surjection skill for clients; without --client, remove it from the store with its links and copies
Usage: surject agent remove [OPTIONS]
Options:
--client <CLIENT> Client id (repeatable)
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject agent status
Show the bundled version, the store copy and the clients it is enabled for
Usage: surject agent status [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject agent skill-path
Print a folder holding the bundled skill (kept in the data directory's cache), to point an agent at by hand
Usage: surject agent skill-path [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject source
Trusted and blocked install sources: list, trust, block, untrust
Usage: surject source [OPTIONS] <COMMAND>
Commands:
ls List trusted and blocked sources
trust Always trust a source: a git URL, or a source key (host/owner/repo, host/owner/*, host/*)
block Never trust a source (a block wins over any trust)
untrust Remove the trust or block of a source key. Nothing is uninstalled; the next install or update from it asks again
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject source ls
List trusted and blocked sources
Usage: surject source ls [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject source trust
Always trust a source: a git URL, or a source key (host/owner/repo, host/owner/*, host/*)
Usage: surject source trust [OPTIONS] <URL|KEY>
Arguments:
<URL|KEY>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--scope <SCOPE> What a URL's trust covers [default: repo] [possible values: repo, owner, host]
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject source block
Never trust a source (a block wins over any trust)
Usage: surject source block [OPTIONS] <URL|KEY>
Arguments:
<URL|KEY>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--scope <SCOPE> What a URL's block covers [default: repo] [possible values: repo, owner, host]
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject source untrust
Remove the trust or block of a source key. Nothing is uninstalled; the next install or update from it asks again
Usage: surject source untrust [OPTIONS] <KEY>
Arguments:
<KEY>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog
Catalogs of MCP servers and skills: list, add, search, show
Usage: surject catalog [OPTIONS] <COMMAND>
Commands:
ls List catalogs (built-in and added) and the online catalogs setting
add Add an MCP registry (any server of the MCP Registry API) or a git tap (skill folders and/or a Claude Code plugin marketplace)
rm Remove an added catalog (built-ins are turned off instead)
enable Turn a catalog on
disable Turn a catalog off: it is not searched or contacted
online Show or set the online catalogs setting of this machine (off until turned on: nothing contacts a catalog before that)
search Search every enabled catalog (or one). An MCP registry needs at least 3 characters and skills.sh at least 2 (its ids are <owner>/<repo>/<skill>); a tap lists everything for an empty query
show Show one entry: <SOURCE>/<ID> (or catalog:<SOURCE>/<ID>)
refresh Fetch again (every enabled catalog, or one): a tap is indexed again; a registry or skills.sh is asked whether it answers and its saved results are dropped only then. A failed refresh keeps them
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog ls
List catalogs (built-in and added) and the online catalogs setting
Usage: surject catalog ls [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog add
Add an MCP registry (any server of the MCP Registry API) or a git tap (skill folders and/or a Claude Code plugin marketplace)
Usage: surject catalog add [OPTIONS] <URL>
Arguments:
<URL> The registry's base URL, or the tap's git URL
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--kind <KIND> What the URL is [default: tap for git URLs (ssh, file://, .git, github.com, gitlab.com, bitbucket.org), else registry] [possible values: registry, tap]
--id <ID> Catalog id [default: from the URL]
--json Print machine-readable JSON to stdout
--ref <REF> A tap's branch, tag or commit (a commit pins it)
--yes Answer yes to confirmations (rolling back an older apply run)
--title <TITLE> Display name
-h, --help Print help
surject catalog rm
Remove an added catalog (built-ins are turned off instead)
Usage: surject catalog rm [OPTIONS] <ID>
Arguments:
<ID>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog enable
Turn a catalog on
Usage: surject catalog enable [OPTIONS] <ID>
Arguments:
<ID>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog disable
Turn a catalog off: it is not searched or contacted
Usage: surject catalog disable [OPTIONS] <ID>
Arguments:
<ID>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog online
Show or set the online catalogs setting of this machine (off until turned on: nothing contacts a catalog before that)
Usage: surject catalog online [OPTIONS] [STATE]
Arguments:
[STATE] [possible values: on, off]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog search
Search every enabled catalog (or one). An MCP registry needs at least 3 characters and skills.sh at least 2 (its ids are <owner>/<repo>/<skill>); a tap lists everything for an empty query
Usage: surject catalog search [OPTIONS] <QUERY>
Arguments:
<QUERY>
Options:
--catalog <ID> Search only this catalog
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--cursor <CURSOR> The next page of a registry's results (the `next_cursor` of the last search)
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog show
Show one entry: <SOURCE>/<ID> (or catalog:<SOURCE>/<ID>)
Usage: surject catalog show [OPTIONS] <SOURCE/ID>
Arguments:
<SOURCE/ID>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject catalog refresh
Fetch again (every enabled catalog, or one): a tap is indexed again; a registry or skills.sh is asked whether it answers and its saved results are dropped only then. A failed refresh keeps them
Usage: surject catalog refresh [OPTIONS] [ID]
Arguments:
[ID]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner
Scanners: the built-in scanner and the optional SkillSpector (runs locally; off by default)
Usage: surject scanner [OPTIONS] <COMMAND>
Commands:
ls List the scanners: the built-in scanner (always on) and SkillSpector (optional, local)
status Show SkillSpector on this machine: how it runs (uvx or on PATH), its version, on or off, the timeout, and what leaves the machine
setup Set SkillSpector up: when no uv is on PATH, download the pinned uv into Surjection's data folder (checked against SHA-256 values built into Surjection), then prepare SkillSpector with it. Does not turn it on; `surject scanner remove` undoes it
prepare Download the pinned SkillSpector into uv's cache once (runs `uvx --python 3.13 --exclude-newer 2026-11-25T00:00:00Z --from skillspector==2.13.7 skillspector --version`). Needs uv on PATH; scans never download anything
enable Run SkillSpector on skill installs and updates on this machine (locally; see `surject scanner status`)
disable Stop running SkillSpector on skill installs and updates
run Scan a library skill (its store content) with SkillSpector now; reports only. Exits 0 when it was scanned, 1 otherwise
remove Delete the uv `surject scanner setup` installed (with its cache, Python and SkillSpector's environment), and a Snyk Agent Scan install left by Surjection 0.7.0 and its settings
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner ls
List the scanners: the built-in scanner (always on) and SkillSpector (optional, local)
Usage: surject scanner ls [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner status
Show SkillSpector on this machine: how it runs (uvx or on PATH), its version, on or off, the timeout, and what leaves the machine
Usage: surject scanner status [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner setup
Set SkillSpector up: when no uv is on PATH, download the pinned uv into Surjection's data folder (checked against SHA-256 values built into Surjection), then prepare SkillSpector with it. Does not turn it on; `surject scanner remove` undoes it
Usage: surject scanner setup [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner prepare
Download the pinned SkillSpector into uv's cache once (runs `uvx --python 3.13 --exclude-newer 2026-11-25T00:00:00Z --from skillspector==2.13.7 skillspector --version`). Needs uv on PATH; scans never download anything
Usage: surject scanner prepare [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner enable
Run SkillSpector on skill installs and updates on this machine (locally; see `surject scanner status`)
Usage: surject scanner enable [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner disable
Stop running SkillSpector on skill installs and updates
Usage: surject scanner disable [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner run
Scan a library skill (its store content) with SkillSpector now; reports only. Exits 0 when it was scanned, 1 otherwise
Usage: surject scanner run [OPTIONS] <SKILL>
Arguments:
<SKILL> Skill id
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject scanner remove
Delete the uv `surject scanner setup` installed (with its cache, Python and SkillSpector's environment), and a Snyk Agent Scan install left by Surjection 0.7.0 and its settings
Usage: surject scanner remove [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject project
Project manifests: create, register, trust, share, list, forget
Usage: surject project [OPTIONS] <COMMAND>
Commands:
init Create a project manifest in PATH (default: the current folder); private unless --shared
add Register the project whose manifests are at or above PATH; it is applied once trusted (`project trust`)
ls List the projects this machine knows, with their trust state
rm Forget a project on this machine and remove its owned entries
trust Review the manifests at or above PATH and trust them as they are
share Move private servers from `project.local.toml` into `project.toml`
discover List folders the clients already know (Claude Code projects, Codex trusted projects, omp and Pi sessions) that are not projects on this machine yet; --add or --all binds them, untrusted. A folder without a manifest gets a private one
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject project init
Create a project manifest in PATH (default: the current folder); private unless --shared
Usage: surject project init [OPTIONS] [PATH]
Arguments:
[PATH] Project folder [default: the current folder]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--shared Write the shared `.surjection/project.toml` (committed with the project) instead of the private `.surjection/project.local.toml`
--json Print machine-readable JSON to stdout
--name <NAME> Display name [default: the folder name]
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject project add
Register the project whose manifests are at or above PATH; it is applied once trusted (`project trust`)
Usage: surject project add [OPTIONS] <PATH>
Arguments:
<PATH> A folder inside the project
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject project ls
List the projects this machine knows, with their trust state
Usage: surject project ls [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject project rm
Forget a project on this machine and remove its owned entries
Usage: surject project rm [OPTIONS] <ID>
Arguments:
<ID> Project id
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject project trust
Review the manifests at or above PATH and trust them as they are
Usage: surject project trust [OPTIONS] <PATH>
Arguments:
<PATH> A folder inside the project
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject project share
Move private servers from `project.local.toml` into `project.toml`
Usage: surject project share [OPTIONS] <ID>
Arguments:
<ID> Project id
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--server <NAME> Server to move (repeatable) [default: every private server]
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject project discover
List folders the clients already know (Claude Code projects, Codex trusted projects, omp and Pi sessions) that are not projects on this machine yet; --add or --all binds them, untrusted. A folder without a manifest gets a private one
Usage: surject project discover [OPTIONS]
Options:
--add <ID> Add the candidate with this id (repeatable)
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--all Add every candidate that can be added
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject history
List store commits
Usage: surject history [OPTIONS]
Options:
--entity <ENTITY> Only commits that change this entity (for example server/github)
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--limit <N> At most N commits, newest first
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject status
Show the state of every owned and desired entry
Usage: surject status [OPTIONS] [PATH]
Arguments:
[PATH] A folder inside the project to show [default: the user scope and every known project]
Options:
--client <CLIENT> Only this client (repeatable)
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--scope <SCOPE> Which scopes to show [default: all] [possible values: system, project, all]
--check Exit with code 3 when anything is pending or drifted
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject diff
Show the apply plan as file diffs
Usage: surject diff [OPTIONS] [PATH]
Arguments:
[PATH] A folder inside the project to diff [default: the user scope and every known project]
Options:
--client <CLIENT> Only this client (repeatable)
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--exit-code Exit with code 3 when there is a difference
--json Print machine-readable JSON to stdout
--rev <A..B> Compare two store revisions (commits or tags) instead: A..B, or A.. for A against the latest commit
--yes Answer yes to confirmations (rolling back an older apply run)
--raw With --rev: the unified git diff instead of the semantic one
-h, --help Print help
surject effective
Show what each client loads in a folder, and from where
Usage: surject effective [OPTIONS] [PATH]
Arguments:
[PATH] The folder to look at [default: the current folder]
Options:
--client <CLIENT> Only this client (repeatable) [default: every client with MCP support on this OS]
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject apply
Reconcile client files with the store (one commit per run)
Usage: surject apply [OPTIONS] [PATH]
Arguments:
[PATH] A folder inside the project to apply [default: the user scope and every known project]
Options:
--client <CLIENT> Only this client (repeatable)
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--scope <SCOPE> Which scopes to apply [default: all] [possible values: system, project, all]
--dry-run Print the plan and its diffs; change nothing
--yes Answer yes to confirmations (rolling back an older apply run)
--on-conflict <ON_CONFLICT> What to do with collisions, conflicts and drift [default: ask] [possible values: ask, skip, overwrite, import]
-h, --help Print help
surject rollback
Roll back an apply run (or an eject run)
Usage: surject rollback [OPTIONS] <APPLY-ID|last>
Arguments:
<APPLY-ID|last> Apply id (from `surject history`), an eject id, or `last` for this machine's latest apply or eject run
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject eject
Stop managing this machine: hand client files and skill folders back to the clients (the store and history are kept)
Usage: surject eject [OPTIONS]
Options:
--client <CLIENT> Only this client (repeatable) [default: every client]
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--project <PATH> Only the project rooted at (or holding) this folder; user files are left managed
--keep-agent-skill Keep the Surjection agent skill in client skill folders (as a copy)
--yes Answer yes to confirmations (rolling back an older apply run)
--dry-run Print the plan; change nothing
--resume Start managing again: the next apply adopts entries equal to the store and asks about the rest
-h, --help Print help
surject show
Show one store commit and what it changed
Usage: surject show [OPTIONS] <REV>
Arguments:
<REV> Commit (full or abbreviated id) or tag
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--raw Show the unified git diff instead of the semantic one
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject tag
Create, list or delete store tags
Usage: surject tag [OPTIONS] [NAME] [REV]
Arguments:
[NAME] Tag name: letters, digits, '.', '_' or '-' (at most 64)
[REV] Commit or tag to tag [default: the latest commit]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
-m, --message <MSG> Tag message
--json Print machine-readable JSON to stdout
--list List every tag
--delete <NAME> Delete a tag
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject restore
Restore the store (or client files) from an earlier state
Usage: surject restore [OPTIONS] [REV|TAG]
Arguments:
[REV|TAG] Commit (full or abbreviated id) or tag to restore
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--path <ENTITY> Restore only this entity (repeatable): server/<id>, secrets, clients, settings, sources, project/<id>, skill/<id>, machine/<id>
--apply Apply the restored state
--json Print machine-readable JSON to stdout
--files <APPLY-ID> Restore client files from the backups of this apply run instead
--yes Answer yes to confirmations (rolling back an older apply run)
--file <PATH> With --files: only this client file
--from <DIR|ZIP|BARE-REPO> Restore from a folder remote, machine folder, bare repository, mirror or zip
--machine <ID|LABEL> With --from: the machine to restore from, by id or label
-h, --help Print help
surject backup
Commit hand edits of the store and optionally tag the result
Usage: surject backup [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
-m, --message <MSG> Commit message for hand edits [default: "backup: hand edits"]
--json Print machine-readable JSON to stdout
--tag <NAME> Also tag the result
--remote <NAME> Push to this remote only
--yes Answer yes to confirmations (rolling back an older apply run)
--all Push to every remote (the default)
--no-push Do not push
-h, --help Print help
surject remote
Backup and sync remotes (none by default)
Usage: surject remote [OPTIONS] <COMMAND>
Commands:
add Add a remote
ls List this machine's remotes
rm Remove a remote (its files stay where they are; a stored token is deleted)
push Push the store to one remote [default: every remote]
pull Pull and merge other machines' changes [default: every remote]
machines List the machines a folder remote holds
token Store the token piped on stdin for a git remote with `auth = token`
create-github Create a private GitHub repository with the GitHub CLI and add it as a git remote (`auth = gh`)
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote add
Add a remote
Usage: surject remote add [OPTIONS] <COMMAND>
Commands:
folder A local or network folder (USB drive, NAS share, synced folder)
git Any git URL (https, ssh or scp-style), through the system git
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote add folder
A local or network folder (USB drive, NAS share, synced folder)
Usage: surject remote add folder [OPTIONS] <NAME> <PATH>
Arguments:
<NAME>
<PATH>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--mode <MODE> repo-per-machine (default), mirror or archive [default: repo-per-machine]
--json Print machine-readable JSON to stdout
--keep <KEEP> Archive mode: archives to keep [default: 10]
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote add git
Any git URL (https, ssh or scp-style), through the system git
Usage: surject remote add git [OPTIONS] <NAME> <URL>
Arguments:
<NAME>
<URL>
Options:
--auth <AUTH> system (default: your git's own credentials), gh (GitHub CLI) or token (a token stored with `remote token`) [default: system]
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--username <USERNAME> With --auth token: the username sent with the token [default: x-access-token]
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote ls
List this machine's remotes
Usage: surject remote ls [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote rm
Remove a remote (its files stay where they are; a stored token is deleted)
Usage: surject remote rm [OPTIONS] <NAME>
Arguments:
<NAME>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote push
Push the store to one remote [default: every remote]
Usage: surject remote push [OPTIONS] [NAME]
Arguments:
[NAME]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote pull
Pull and merge other machines' changes [default: every remote]
Usage: surject remote pull [OPTIONS] [NAME]
Arguments:
[NAME]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote machines
List the machines a folder remote holds
Usage: surject remote machines [OPTIONS] <NAME>
Arguments:
<NAME>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote token
Store the token piped on stdin for a git remote with `auth = token`
Usage: surject remote token [OPTIONS] <NAME>
Arguments:
<NAME>
Options:
--clear Delete the stored token instead
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject remote create-github
Create a private GitHub repository with the GitHub CLI and add it as a git remote (`auth = gh`)
Usage: surject remote create-github [OPTIONS] <REPO>
Arguments:
<REPO> Repository name: NAME or OWNER/NAME
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--name <NAME> Name of the remote to add [default: github]
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject import
Import foreign client entries into the store
Usage: surject import [OPTIONS] [NAME]...
Arguments:
[NAME]... Entry names to import; all importable entries when none
Options:
--home <PATH>
Data directory to use instead of SURJECTION_HOME or the per-OS default
--scan
List candidates, their sources, conflicts and secrets; change nothing
--client <CLIENT>
Only entries of this client (repeatable)
--json
Print machine-readable JSON to stdout
--scope <SCOPE>
Which files to read: user files (system), the files of the known projects, or both [default: all] [possible values: system, project, all]
--yes
Answer yes to confirmations (rolling back an older apply run)
--project <ID>
Only the files of this known project (its id)
--only
Copy the definitions without enabling them (no ownership taken)
--pick <NAME=CLIENT>
Import NAME as CLIENT has it, under NAME (repeatable; picks one definition of an entry that differs between clients). CLIENT may be a source key from --scan (omp#work, claude-code@PROJECT-ID) for a client's other file
--as <NAME=CLIENT>
Import NAME as CLIENT has it, as NAME-CLIENT (repeatable; with --pick, imports both definitions). CLIENT may be a source key
--skip <NAME>
Leave NAME out (repeatable)
--extract <NAME[:FIELD]=DEST>
Where NAME's literal secrets go: keyring, op://VAULT/ITEM/FIELD, op-env://ENV/NAME or env:VAR. NAME:FIELD (env.KEY, headers.KEY, args[N], url) sets one field (repeatable)
--remove-old-backups[=<APPLY-ID>]
Remove the client file backups that still hold the old values of extracted secrets: those of this import's apply, or with =APPLY-ID those of an earlier import (then nothing is imported). Undoing that import can then no longer bring those files' earlier content back
-h, --help
Print help
surject adopt
Take ownership of foreign or changed client entries
Usage: surject adopt [OPTIONS] [CLIENT/NAME]...
Arguments:
[CLIENT/NAME]... Entries as CLIENT/NAME (for example claude-code/github)
Options:
--all-identical Adopt every foreign entry identical to a store server
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--theirs Take the client's version into the store instead of overwriting it
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject migrate
Migrate from SkillDock (~/.skilldock is only read)
Usage: surject migrate [OPTIONS] <COMMAND>
Commands:
skilldock From SkillDock (~/.skilldock, read only): servers, skills, tags, settings, the backup repository
loadout From Loadout 1.0.x (this product's former name): moves the data folder, renames files, copies the app profile, repairs client entries that start the former `loadout` launcher and swaps the bundled agent skill. Runs once by itself at the first start
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject migrate skilldock
From SkillDock (~/.skilldock, read only): servers, skills, tags, settings, the backup repository
Usage: surject migrate skilldock [OPTIONS]
Options:
--apply Migrate (one commit after a pre-migrate tag); without it, only report what would happen
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject migrate loadout
From Loadout 1.0.x (this product's former name): moves the data folder, renames files, copies the app profile, repairs client entries that start the former `loadout` launcher and swaps the bundled agent skill. Runs once by itself at the first start
Usage: surject migrate loadout [OPTIONS]
Options:
--dry-run Only show what would be done; write nothing
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--quiet Print nothing unless a step fails (the Windows installer)
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets
Secret references: aliases, providers and their status
Usage: surject secrets [OPTIONS] <COMMAND>
Commands:
ls List aliases with this machine's reference and the servers using them
check The missing-secret checklist: resolve aliases and report their status (never their values), the servers and clients that need them and how to fix them; exits 5 when one cannot be resolved. May prompt for 1Password approval
providers Show which secret providers this machine has
set Set an alias's reference
clear Delete the OS keyring entry of an alias's keyring reference on this machine; the reference stays
map-op-env Map the variables of a 1Password Environment to aliases (`op-env://<ENV-ID>/<NAME>`) and save the Environment id
op-account The 1Password account Surjection's `op` calls use, for machines whose desktop app is signed in to several accounts: show it, set it, or clear it
service-account The 1Password service account token in the OS keyring, passed by `surject exec` to `op` only
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets ls
List aliases with this machine's reference and the servers using them
Usage: surject secrets ls [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets check
The missing-secret checklist: resolve aliases and report their status (never their values), the servers and clients that need them and how to fix them; exits 5 when one cannot be resolved. May prompt for 1Password approval
Usage: surject secrets check [OPTIONS] [ALIASES]...
Arguments:
[ALIASES]... Aliases to check [default: every alias defined or used]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets providers
Show which secret providers this machine has
Usage: surject secrets providers [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets set
Set an alias's reference
Usage: surject secrets set [OPTIONS] <ALIAS>
Arguments:
<ALIAS> Secret alias: letters, digits and '_', not starting with a digit
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--ref <REF> Provider reference: env:NAME, op://vault/item/field, op-env://<environment-id>/<NAME> or keyring://<service>/<account>
--json Print machine-readable JSON to stdout
--keyring Store the value piped on stdin in the OS keyring as keyring://surjection/<ALIAS> and point the alias there
--this-machine Write the reference to this machine's overlay only (other machines keep the shared one)
--yes Answer yes to confirmations (rolling back an older apply run)
--description <DESCRIPTION>
--env-name <ENV_NAME> Environment variable name for env delivery [default: the alias]
-h, --help Print help
surject secrets clear
Delete the OS keyring entry of an alias's keyring reference on this machine; the reference stays
Usage: surject secrets clear [OPTIONS] <ALIAS>
Arguments:
<ALIAS> Secret alias
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets map-op-env
Map the variables of a 1Password Environment to aliases (`op-env://<ENV-ID>/<NAME>`) and save the Environment id
Usage: surject secrets map-op-env [OPTIONS] <ENV-ID>
Arguments:
<ENV-ID> 1Password Environment id
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--name <NAME> Map these variable names (repeatable). Needed below CLI 2.42.0, which cannot list them
--all Map every variable the Environment lists
--json Print machine-readable JSON to stdout
--account <ACCOUNT> The 1Password account holding the Environment (sign-in address, shorthand or account id); saved for every later `op` call
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets op-account
The 1Password account Surjection's `op` calls use, for machines whose desktop app is signed in to several accounts: show it, set it, or clear it
Usage: surject secrets op-account [OPTIONS] [ACCOUNT]
Arguments:
[ACCOUNT] Sign-in address, shorthand or account id (for example example.1password.com)
Options:
--clear Remove the setting
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets service-account
The 1Password service account token in the OS keyring, passed by `surject exec` to `op` only
Usage: surject secrets service-account [OPTIONS] <COMMAND>
Commands:
set Store the token piped on stdin in the OS keyring
clear Delete the token from the OS keyring
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets service-account set
Store the token piped on stdin in the OS keyring
Usage: surject secrets service-account set [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secrets service-account clear
Delete the token from the OS keyring
Usage: surject secrets service-account clear [OPTIONS]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject env
Print export statements for secret aliases
Usage: surject env [OPTIONS] --export
Options:
--export Print export statements for secret aliases (resolving them)
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--shell <SHELL> Shell syntax [default: pwsh on Windows, bash elsewhere] [possible values: pwsh, bash, zsh, fish]
--aliases <ALIASES> Aliases to export, comma-separated [default: every alias]
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secret
Print one resolved value (internal, for client command hooks)
Usage: surject secret [OPTIONS] <COMMAND>
Commands:
get Print one resolved value (no line break), for client command hooks
help Print this message or the help of the given subcommand(s)
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secret get
Print one resolved value (no line break), for client command hooks
Usage: surject secret get [OPTIONS] --ref <REF>
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--ref <REF> Provider reference; `KEY=REF` binds it for --template
--json Print machine-readable JSON to stdout
--template <TEMPLATE> Text to print, with `{secret:KEY}` for each bound value
--op-account <ACCOUNT> The 1Password account `op` uses (unless OP_ACCOUNT is set)
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject secret-header
Print resolved headers as JSON (internal, for Claude Code `headersHelper`)
Usage: surject secret-header [OPTIONS] <NAME=TEMPLATE>...
Arguments:
<NAME=TEMPLATE>... `NAME=TEMPLATE`: a header and its value
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--ref <KEY=REF> `KEY=REF`: a provider reference for `{secret:KEY}` in templates
--json Print machine-readable JSON to stdout
--op-account <ACCOUNT> The 1Password account `op` uses (unless OP_ACCOUNT is set)
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help
surject exec
Usage: surject exec [--op-account ACCOUNT] [--ref NAME=REF]... [--op-env ID --map KEY=NAME...] -- <cmd> [args]
surject completions
Print a shell completion script for surjection to stdout (bash, zsh, fish, powershell or elvish)
Usage: surject completions [OPTIONS] <SHELL>
Arguments:
<SHELL> The shell to complete in [possible values: bash, elvish, fish, powershell, zsh]
Options:
--home <PATH> Data directory to use instead of SURJECTION_HOME or the per-OS default
--json Print machine-readable JSON to stdout
--yes Answer yes to confirmations (rolling back an older apply run)
-h, --help Print help