Skip to main content
The majordomo CLI lets you authenticate, manage API keys, and administer self-hosted Steward instances without leaving the terminal.

Install

Install with Homebrew:
Verify:

Global flags

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.
Output: email, username, and user ID.

API keys

Manage the Majordomo API keys (mdm_sk_...) used to authenticate gateway requests.

keys create

The key value is shown once at creation and cannot be retrieved afterward. Store it in your secrets manager immediately.

keys list

Output columns: ID, NAME, STATUS, REQUESTS, CREATED.

keys revoke

Revokes the key immediately. All gateway requests using it will be rejected.

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

The token is shown once at creation. Pass it to your Steward instance as MAJORDOMO_STEWARD_TOKEN.

stewards list

Output columns: ID, NAME, STATUS, LAST SEEN, CREATED.

stewards revoke

Revokes the Steward token. The Steward will stop being able to sync metadata to Butler.

Steward admin

Commands for administering a running Steward instance directly. Requires the Steward’s admin token.

steward orgs

List orgs registered on this Steward instance.
Output columns: ORG ID, NAME, PENDING, BUTLER URL, REGISTERED.

steward register

Register an org on this Steward instance. Run this once during initial setup to connect the Steward to Butler.

steward deregister

Remove an org registration from this Steward instance.