Skip to content

ButeaLabs/butea-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

butea-cli

The official command-line interface for the Butea platform.
Deploy projects, manage deployments and more — without leaving your terminal or IDE.


Install

npm install -g butea-cli

Requires Node.js 18+. The correct binary for your OS/architecture is installed automatically.


Quick start

# 1. Authenticate (opens browser)
butea init

# 2. Link a repo to a project
cd my-app
butea init          # → creates .butea.toml

# 3. Deploy
butea deploy

# 4. Check status
butea deployments list <projectId>
butea health

Commands

Command Description
butea init Authenticate + optionally link a project
butea deploy [id] [-b branch] Trigger a deployment
butea projects list / get / delete Manage projects
butea deployments list / get / cancel Manage deployments
butea auth whoami Show authenticated user
butea auth logout Sign out
butea health Check API status

Configuration

~/.butea/
├── config.toml    # api_url, app_url
└── cred.toml      # tokens  [0600]

<repo>/
└── .butea.toml    # project_id, branch

Override via env vars for CI/CD:

BUTEA_API_URL=https://api.mycompany.com
BUTEA_APP_URL=https://app.mycompany.com

How authentication works

butea init opens your browser — you sign in once via GitHub, GitLab, or Google.
Tokens are stored in ~/.butea/cred.toml (mode 0600) and silently refreshed in the background.
Nothing is ever typed into the terminal.


Documentation

Full reference → docs.butea.in/cli


License

MIT — see LICENSE

About

CLI for managing our platform via CLI-based operations.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors