From the checkout root, or with an absolute entrypoint path:
node bin/cockpit.js --help
node bin/cockpit.js --version
node bin/cockpit.js --port 4100 --host 127.0.0.1 --no-open
node bin/cockpit.js --cwd "/path/to/project" --mission <MISSION_ID>
node bin/cockpit.js --headless --no-open
node bin/cockpit.js --log-level debug
| Option | Effect / default |
|---|---|
-p, --port <n> | HTTP/WS port, default 4000. 0 asks the OS for a free port. |
-h, --host <host> | Bind address, default 127.0.0.1 in the direct CLI. -h means host. |
-d, --cwd <folder> | Initial root; current directory by default. |
-m, --mission <id> | Restore a mission; defaults to the most recent. |
-t, --token <token> | API/WS token; prefer environment variables to avoid shell history. |
--stop-agents | Stop agents when the server exits. |
--no-open | Do not open the browser automatically. |
--headless | API/WS without the SPA; needs built backend but not web/dist. |
--log-level <level> | error, warn, info, debug; default info. |
-v, --version | Version. |
--help | Help. |
Flags override environment variables. Through npm: npm start -- --port 4100 --no-open.
The package declares cockpit and cockpit-agent. Optionally expose executables from your built checkout:
npm link
cockpit --help
This changes your user's global npm links. It is not required to run with node; this guide does not assume registry publication.