majordomo CLI lets you authenticate, manage API keys, and administer self-hosted Steward instances without leaving the terminal.
Install
Requires Go 1.25+.Global flags
| Flag | Default | Description |
|---|---|---|
--api-url <url> | https://butler.gomajordomo.com | Butler API base URL. Override for self-hosted deployments. |
Authentication
login
Opens a browser window, completes the OAuth flow, and stores your token locally at~/.majordomo/config.yaml.
logout
Removes stored credentials.whoami
Shows the currently authenticated user.API keys
Manage the Majordomo API keys (mdm_sk_...) used to authenticate gateway requests.
keys create
| Flag | Required | Description |
|---|---|---|
--name | Yes | Display name for the key. |
--description | No | Optional description. |
keys list
keys revoke
Stewards
Manage self-hosted Steward instances registered to your account. Each Steward gets a token (mdm_st_...) it uses to authenticate with Butler.
stewards create
| Flag | Required | Description |
|---|---|---|
--name | Yes | Display name for the Steward. |
MAJORDOMO_STEWARD_TOKEN.
stewards list
stewards revoke
Steward admin
Commands for administering a running Steward instance directly. Requires the Steward’s admin token.| Flag | Default | Description |
|---|---|---|
--url | http://localhost:7680 | Steward base URL. |
--admin-token | — | Admin token for the Steward. Can also be set via MAJORDOMO_STEWARD_ADMIN_TOKEN. |
steward orgs
List orgs registered on this Steward instance.steward register
Register an org on this Steward instance. Run this once during initial setup to connect the Steward to Butler.| Flag | Required | Description |
|---|---|---|
--token | Yes | Steward token (mdm_st_...) obtained from stewards create. |
--butler-url | Yes | Butler base URL. |