mo is a command-line client over the MerchantOps API. You authenticate once
with OAuth 2.0 (PKCE) — a browser sign-in that stores tokens in your OS
keychain — and the CLI then rides the same authenticated, organization-scoped
API as the dashboard. It holds no database credentials or service secrets.
A packaged install (Homebrew / PyPI) is on the way. For now, install from source
as shown below.
Install
Configure
Settings resolve in order: environment variable →~/.config/merchantops/config.toml → default.
| Setting | Env var | Notes |
|---|---|---|
| API base URL | MERCHANTOPS_API_URL | default http://localhost:8000 |
| OAuth issuer | MERCHANTOPS_OAUTH_ISSUER | the Stytch Connected Apps authorization server |
| CLI client id | MERCHANTOPS_OAUTH_CLIENT_ID | the CLI’s public OAuth client (PKCE, no secret) |
| API audience | MERCHANTOPS_API_AUDIENCE | the resource the access token is bound to |
config.toml
Sign in
Commands
jq: