General
What is the Rubix CLI?
What is the Rubix CLI?
rubix.Do I need the console installed anything to use the CLI?
Do I need the console installed anything to use the CLI?
rubix login from the terminal. Everything else happens over HTTPS.Does the CLI touch my infrastructure directly?
Does the CLI touch my infrastructure directly?
Is the CLI open source?
Is the CLI open source?
Installation and compatibility
What versions of Node.js are supported?
What versions of Node.js are supported?
Does it work on Windows?
Does it work on Windows?
Does it work over SSH?
Does it work over SSH?
Can I install it in a Docker image?
Can I install it in a Docker image?
npm install -g @rubixkube/rubix to your Dockerfile. Set RUBIX_API_KEY at runtime so it can authenticate without a device-code prompt.Auth and security
Where are my credentials stored?
Where are my credentials stored?
~/.rubix/auth.json. Encrypted at rest on your disk when your OS supports it (Keychain on macOS, DPAPI on Windows). On Linux, file-system permissions restrict it to your user.Can I use an API key instead of the device-code flow?
Can I use an API key instead of the device-code flow?
RUBIX_API_KEY in the environment. Useful for CI and ephemeral runners. The CLI uses the env var and skips the browser prompt.Can the CLI run shell commands for me?
Can the CLI run shell commands for me?
How do I rotate credentials?
How do I rotate credentials?
rubix logout && rubix login re-issues a fresh token. Previous tokens are invalidated server-side.Scope and capabilities
Does the CLI work with all supported environments?
Does the CLI work with all supported environments?
/environments.Can I invoke skills from the CLI?
Can I invoke skills from the CLI?
/skills skill-name runs any enabled skill. Same intent-matching behaviour as the console Chat.Can I see RCA reports in the terminal?
Can I see RCA reports in the terminal?
/console from inside chat to jump over.Can I approve action recommendations from the CLI?
Can I approve action recommendations from the CLI?
/console opens the right page directly.CI and automation
How do I run the CLI in GitHub Actions or similar CI?
How do I run the CLI in GitHub Actions or similar CI?
RUBIX_API_KEY as a secret. Optionally set RUBIX_ENV_ID to pin the environment. Use npx @rubixkube/rubix chat --prompt "..." for single-shot invocations. See Examples for a full workflow.Does a CLI run count as an investigation on my plan?
Does a CLI run count as an investigation on my plan?
Can I pipe CLI output into other tools?
Can I pipe CLI output into other tools?
rubix chat --prompt "..." writes to stdout, so >, >>, and | all work.Getting help
How do I report a bug?
How do I report a bug?
rubix --version, your Node version, and a short description. A human engineer will respond.Is there a public changelog?
Is there a public changelog?