Skip to main content

Command reference

Every protostar command and its options. Run protostar --help or protostar <command> --help for the same information at the terminal.

Global​

$ protostar # print the banner and a hint to --help
$ protostar --help # list commands
$ protostar --version, -v # print the version (e.g. 0.1.0)

protostar install​

Install protostar to a per-user directory and add it to PATH.

OptionDescription
--dir <DIR>Install to a specific directory instead of the default per-user location.
--no-modify-pathDo not edit PATH; you manage it yourself.

See Installation and Update, move, or uninstall.

protostar uninstall​

Remove an installed protostar binary. Does not remove harness hooks — use install-hooks --remove for those.

protostar install-hooks​

Detect supported harnesses and install protostar's capture hooks into the selected ones, idempotently. With no flags and a terminal attached, it prompts you to pick harnesses; otherwise it runs non-interactively.

OptionDescription
-H, --harness <ID>Target a specific harness by id (repeatable). Implies non-interactive.
--allSelect all detected harnesses without prompting.
-y, --yesNon-interactive: skip the prompt and use all detected harnesses.
--harness-home <DIR>Override the harness config root (testing or a non-default location).
--exe-path <PATH>Path to the protostar binary the hooks should invoke. Defaults to the running binary.
--dry-runShow what would change without writing.
--removeRemove protostar's capture hooks instead of installing them.

See Connect your harness.

protostar auth​

Authenticate to the protostar registry.

protostar auth login​

Sign in via your browser and store the session.

OptionDescription
--registry <URL>Registry to sign in to. Defaults to https://localhost:7443 or PROTOSTAR_REGISTRY_URL.
--provider <NAME>Skip the registry's sign-in chooser and go straight to this provider (e.g. github).
--no-browserPrint the sign-in URL instead of opening a browser automatically.
--timeout <SECONDS>How long to wait for the browser sign-in to complete (default 300).

protostar auth status​

Show whether you are signed in to the registry (honors --registry / PROTOSTAR_REGISTRY_URL).

protostar auth logout​

Remove the stored session for the registry.

See Authenticate to a registry.

protostar capture​

Invoked by hooks, not by you

capture is called automatically by the hooks protostar installs in your harness. It reads a hook event from stdin and acknowledges it; it is hidden from --help for that reason and is documented here only for completeness. You should not need to run it by hand.

OptionDescription
--hook <EVENT>The harness event that triggered capture (e.g. PostToolUse, SessionStart).