Work seamlessly with Buddy from the command line.
bdy is Buddy's official command-line interface for managing CI/CD pipelines, agents, tests, artifacts, sandboxes, distributions, and more — straight from your terminal.
📚 Full documentation: https://buddy.works/docs/cli/getting-started
Requires Node.js 24+.
# macOS / Linux
sudo npm i -g bdy
# Windows
npm i -g bdybrew tap buddy/bdy
brew install bdysudo apt-get update && sudo apt-get install -y software-properties-common
sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/buddy.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys eb39332e766364ca6220e8dc631c5a16310cc0ad
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/buddy.gpg] https://es.buddy.works/bdy/apt-repo prod main" | sudo tee /etc/apt/sources.list.d/buddy.list > /dev/null
sudo apt-get update && sudo apt-get install -y bdyOn ARM64, replace
arch=amd64witharch=arm64in theechocommand above.
choco install bdy --prePrebuilt binaries are available for macOS (Apple Silicon), Linux (x64/ARM64), and Windows (x64) on the installation page.
bdy version # show current and latest version
sudo npm i -g bdy # update (or use your package manager's upgrade command)A Buddy account is required to use the CLI.
Log in interactively:
bdy loginNew to Buddy? Create an account from the CLI:
bdy registerOnce logged in, link a directory to a Buddy project:
mkdir my-proj
cd my-proj
bdy proj linkAfter linking, every bdy command run from this directory is executed against the linked project — no need to pass the project name each time.
Check who you're logged in as, or log out:
bdy whoami
bdy logoutFor CI/CD pipelines and non-browser environments, authenticate with a personal access token:
bdy login --token <token>The login command accepts the following options:
| Option | Description | Environment variable |
|---|---|---|
--token <token> |
Personal access token | BUDDY_TOKEN |
--api <url> |
API URL for On-Premises installations | BUDDY_API_ENDPOINT |
--region <region> |
Region: us, eu, or as |
BUDDY_REGION |
-w, --workspace <domain> |
Workspace URL handle | BUDDY_WORKSPACE |
Each option can be supplied as a flag or via its environment variable — handy for pipelines and headless setups:
export BUDDY_TOKEN=<token>
export BUDDY_WORKSPACE=<your-workspace>
bdy loginThe Buddy Plugin lets coding agents deploy applications, expose local services, and manage infrastructure on Buddy. It bundles a consolidated skill covering sandboxes, artifacts, tunnels, domains, distributions, and pipelines, plus two commands:
/deploy [name] [path]— deploy a static site or server application/expose [port]— open a tunnel to a locally running service
Make sure the CLI is installed first (sudo npm install -g bdy), then:
Claude Code — install the plugin (commands + skills):
claude plugin marketplace add buddy/buddy-plugin
claude plugin install buddy@buddy-pluginOther agents — install the skills only:
npx skills add buddy/buddy-pluginThen authenticate and link your project:
bdy login
cd your-project
bdy proj linkThe plugin auto-detects your project type: static sites generate versioned artifacts with public URLs, while server applications deploy to sandboxes with HTTPS endpoints. Monorepos can deploy multiple applications, each getting its own URL and endpoint.
| Command | Description |
|---|---|
bdy login / sign-in |
Log in to Buddy |
bdy register / sign-up |
Register a new Buddy account |
bdy whoami |
Check login information |
bdy logout |
Log out from Buddy |
bdy workspace / ws |
Manage workspaces |
bdy project / proj |
Manage projects |
bdy pipeline / pip |
Interact with the pipeline service |
bdy artifact / art |
Interact with the artifact service |
bdy sandbox / sb |
Interact with sandboxes |
bdy agent |
Install and run bdy as an OS service (Windows, macOS, Linux) |
bdy tunnel |
Manage tunnel configuration |
bdy crawl |
Manage web crawls (Markdown, HTML, PNG/JPEG screenshots; suite linking) |
bdy tests |
Manage unit tests and visual regression (Storybook, URL captures, runners) |
bdy domain |
Manage zones used in distribution routes |
bdy distro |
Manage distributions |
bdy api |
Contact the Buddy API directly |
bdy update / version |
Show version and update the CLI |
Run any command with -h / --help for detailed usage:
bdy --help
bdy pipeline --helpFound a bug or have a feature request? Let us know through Buddy support or the documentation.