/rudder-cli:rudder-cli-setupfrom rudder-cli
Installs rudder-cli, authenticates with RudderStack, and verifies the setup. Useful when rudder-cli is not found or needs authentication.
Ships in rudder-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Install rudder-cli, authenticate with RudderStack, and verify the setup works.
1. Check Installation ──► command -v rudder-cli, then ~/.local/bin
│
├── Found ──► Skip to Authentication
│
└── Not Found ──► Install the latest release into ~/.local/bin
│
2. Verify Installation ◄────────────┘
│
└── rudder-cli --version
3. Check Authentication ──► rudder-cli workspace info --json
│
├── Authenticated ──► Done! Show workspace info
│
└── Not Authenticated ──► RUDDERSTACK_ACCESS_TOKEN (agents)
or rudder-cli auth login (people)
command -v rudder-cli || ls "$HOME/.local/bin/rudder-cli"
If command -v prints a path: Skip to Step 3 (Authentication).
If only ~/.local/bin/rudder-cli exists: An earlier install put it there, and that folder is not on PATH. Follow "If ~/.local/bin is not on PATH" below, then skip to Step 3.
If neither exists: Continue to Step 2 (Installation).
The command below installs the latest release from GitHub Releases on macOS or Linux, on x86_64 or arm64 (Linux also on i386). It checks the archive against the release's checksums file, puts rudder-cli in ~/.local/bin without sudo, and replaces no copy elsewhere. On Windows, download the .zip for your CPU from the latest release instead.
Never install rudder-cli with npm, npx or Homebrew. No npm package or Homebrew tap ships it, and the npm package named rudder-cli belongs to someone else.
The script is the install.sh attached to the latest release. Download it into a new temporary folder, then run it. Do not pipe it into a shell.
d=$(mktemp -d) && curl -fsSL https://github.com/rudderlabs/rudder-iac/releases/latest/download/install.sh -o "$d/install.sh" && sh "$d/install.sh"
If curl prints The requested URL returned error: 404 while it downloads install.sh, a release came out in the last few minutes and its files are still uploading. Wait one minute and run the same command again, up to 10 times. Go by that message, not by curl's exit code, which is 22 or 56 for the same 404. If the last try also gets a 404, tell the user that a new rudder-cli release is being published and that they can try again in a few minutes.
A line that starts with rudder-cli install: comes from the script, which ran and failed. That is not this 404, even when a curl message comes before it, so do not retry it here; see Troubleshooting.
~/.local/bin or reach github.comInside an agent's sandbox, the script cannot write to ~/.local/bin, and curl may not reach github.com. Ask the user to let the command run outside the sandbox or to run it in their own terminal. Never set RUDDER_CLI_INSTALL_DIR to a folder inside the project. The binary would land in the user's repository, and "$HOME/.local/bin/rudder-cli" would not exist.
~/.local/bin is not on PATHAfter the install, check which rudder-cli a plain rudder-cli runs:
command -v rudder-cli
If it prints the path of ~/.local/bin/rudder-cli, go on. If it prints nothing, ~/.local/bin is not on PATH. If it prints another path, an older copy comes first on PATH. In both cases:
export PATH line for the profile and says to open a new terminal. That line goes in your closing summary instead."$HOME/.local/bin/rudder-cli" wherever this skill or another RudderStack skill says rudder-cli. When you ask the user to run a rudder-cli command, such as rudder-cli auth login, give it with the full path as well.~/.zshrc, ~/.bash_profile for bash on macOS, ~/.bashrc for bash on Linux, or ~/.profile) so that a new terminal runs this copy:export PATH="$HOME/.local/bin:$PATH"
rudder-cli --version
Use "$HOME/.local/bin/rudder-cli" --version if ~/.local/bin is not on PATH.
Expected output: Version number (e.g., rudder-cli version 0.x.x)
rudder-cli workspace info --json
If authenticated: Prints the workspace as JSON. workspaceID and name identify it. You're done!
If not authenticated: The command exits non-zero with an error. Continue with authentication.
rudder-cli reads the token from the RUDDERSTACK_ACCESS_TOKEN environment variable, or from the config file that rudder-cli auth login writes. When the variable is set, it wins over the config file.
Agents: use the environment variable. rudder-cli auth login prompts for the token on a terminal, which an agent cannot answer, and a token typed into the conversation ends up in the transcript. Never ask the user to paste a token into the chat. Ask the user to set the variable in their own terminal, in the shell that starts the agent, then restart the agent:
# The user runs this in their own terminal. read -s keeps the token
# off the screen and out of shell history.
read -rs RUDDERSTACK_ACCESS_TOKEN && export RUDDERSTACK_ACCESS_TOKEN
People at a terminal can run rudder-cli auth login instead. It prompts for the token and saves it in the config file.
rudder-cli workspace info --json
Expected output:
{
"dataPlaneURL": "https://example.dataplane.rudderstack.com",
"environment": "PRODUCTION",
"name": "My Workspace",
"region": "US",
"status": "ACTIVE",
"workspaceID": "2iKXWU4QnqclkpPIfXfsbBqrAVa"
}
RUDDERSTACK_ACCESS_TOKENRUDDERSTACK_ACCESS_TOKEN environment variable, which rudder-cli reads directly.env files to .gitignore| Issue | Solution |
|---|---|
command not found after install | ~/.local/bin is not on PATH. Run "$HOME/.local/bin/rudder-cli" for the rest of the session, and show the export PATH line from Step 2 in the closing summary |
unauthorized error | Check that RUDDERSTACK_ACCESS_TOKEN holds a valid token in the shell that started the agent, or have the user re-run rudder-cli auth login with a new token |
| Wrong workspace | Token is tied to workspace; generate new token in correct workspace. If RUDDERSTACK_ACCESS_TOKEN is set, it overrides the token that auth login saved |
| Download fails | A 404 for install.sh right after a release means its files are still uploading; wait a minute and run the command again, up to 10 times (Step 2). Otherwise check the network |
rudder-cli install: cannot write to ... | Inside an agent's sandbox, ask the user to run the command outside it (Step 2). Never set RUDDER_CLI_INSTALL_DIR to a folder inside the project |
checksum mismatch | The script installs nothing. Run the command again once; if it fails the same way, stop and tell the user |
After setup completes:
/rudder-environment-check to verify full environment/rudder-cli-workflow for validate → dry-run → apply cyclesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/rudder-cli-workflowValidates, previews, and applies RudderStack resource changes via YAML specs. Use when iterating on RudderStack resources with rudder-cli - validates specs, previews changes with dry-run, and applies changes to workspaces/rudder-import-and-evolveImports existing RudderStack workspace resources into YAML files for git-based management. Use when importing existing RudderStack resources to CLI management and evolving them safely/rudder-transformationsCreates and manages RudderStack transformations and libraries with local testing. Use when creating, editing, or managing RudderStack transformations and transformation libraries using the Rudder CLInpx claudepluginhub rudderlabs/rudder-agent-skills --plugin rudder-cliOther plugins' skills for the same job