moreflow modules
List the operation modules.
Usage
moreflow modules
Prints { modules: [...] }: every module id. Pass one to moreflow find --module.
Examples
moreflow modulesYour privacy, your choice
We use optional analytics and advertising tools (including Meta Pixel and Google Ads on sign-up) only with your consent. Essential language and security functions always remain active. Privacy Policy
@moreflow/cli runs the same operations as the moreflow MCP server from your terminal. Find an operation, read its contract, call it with JSON. Built for scripts, CI jobs, bulk exports and coding agents that work in a shell.
@moreflow/cli@0.1.0Full developer guideRun it without installing:
npx @moreflow/cli@0.1.0Or install it globally:
npm install -g @moreflow/cli@0.1.0This puts the moreflow command on your PATH. Without installing, put npx @moreflow/cli in front of each command instead.
npm install -g @moreflow/cli@0.1.0A browser window opens. Sign in to moreflow, choose the workspace and decide which business areas the CLI may use and how much it may change without asking.
moreflow auth login --oauthList the modules, such as clients, deals or invoices.
moreflow modulesSearch in plain words. You only see operations your sign-in allows.
moreflow find send invoiceInput schema, example inputs, possible errors and whether a write needs confirmation.
moreflow describe clients.createPass the input as JSON. List operations can follow every page for you.
moreflow call clients.list '{"limit":5}'
moreflow call clients.list --all --max-items 200Use your browser for your own machine and an API token for servers and CI. Saved credentials stay in a file only you can read.
Browser login
Sign in through the browser; the person chooses what the CLI may do.
moreflow auth login --oauthAPI token profile
Save an API token as a profile (asks for it, or reads stdin).
moreflow auth loginAPI token in the environment
Use a token for one shell without saving it.
MOREFLOW_API_TOKENProfile selection
Pick a saved profile per command; moreflow auth use sets the active one.
--profile <name>When several are set, a command uses them in this order:
--profileMOREFLOW_API_TOKENMOREFLOW_PROFILEthe active profileMOREFLOW_API_TOKENMOREFLOW_PROFILEMOREFLOW_API_BASE_URLBoth run the same moreflow operations with the same permissions. Pick by where the work happens.
| CLI | MCP server | |
|---|---|---|
| Best for | Scripts, CI jobs, bulk exports, coding agents with a shell | Chat assistants such as Claude and ChatGPT |
| Output | JSON on stdout, ready for pipes, files and jq | Answers inside the chat |
| Large reads | Follows every page of a list into a file | One page per tool call |
| Sign-in | Browser login or a saved API token | OAuth connector or API token |
| Errors | Stable exit codes for scripts | Error messages for the assistant |
Generated from the same spec as moreflow --help.
List the operation modules.
Usage
moreflow modules
Prints { modules: [...] }: every module id. Pass one to moreflow find --module.
Examples
moreflow modulesSearch operations.
Usage
moreflow find [query] [--module <id>] [--limit <n>]
Searches the operations this credential can see, best match first. Without a query it lists them by id. Prints { items, nextCursor }; each item has the id, name, summary, kind and effect.
Options
--module <id>--limit <n>Examples
moreflow find send invoice
moreflow find --module clients --limit 100Input, examples, errors and safety of one operation.
Usage
moreflow describe <operationId> [--related] [--full]
Prints the live contract of one operation: description, effect and whether it needs confirmation, the input JSON Schema, example inputs and declared errors with their recovery.
Options
--related--fullExamples
moreflow describe clients.create
moreflow describe clients.create --relatedRun an operation.
Usage
moreflow call <operationId> [input] [options]
Runs one operation. input is a JSON object: inline, @file, or - for stdin. Omit it for an operation without required input.
Options
--all--max-items <n>--idempotency-key <key>--confirm--approval-token <token>Examples
moreflow call clients.list '{"limit":5}'
moreflow call clients.list --all --max-items 200
moreflow call clients.create '{"firstName":"Ada","lastName":"Lovelace"}'The account and grant the credential acts as.
Usage
moreflow whoami
Asks the API which account and grant the current credential acts as, and prints { profile, tokenSource, baseUrl, caller }. Run it before a write when more than one token is in play.
Examples
moreflow whoamiManage saved credential profiles.
Usage
moreflow auth login [--oauth [--no-browser]] [--profile <name>] [--base-url <url>] moreflow auth status moreflow auth use <profile> moreflow auth logout [--profile <name>]
Saved credential profiles, kept in a file only you can read.
Options
--oauth--no-browserSubcommands
moreflow auth login --oauthmoreflow auth loginmoreflow auth statusmoreflow auth usemoreflow auth logoutA command uses, in this order: --profile, MOREFLOW_API_TOKEN, MOREFLOW_PROFILE, the active profile.
Examples
moreflow auth login --oauth
moreflow auth login --oauth --profile dev --base-url https://dev-api.moreflow.io
moreflow auth status
moreflow auth use dev
moreflow auth logout --profile dev--profile <name>--base-url <url>--timeout-ms <n>--max-retries <n>--help--versionScripts can branch on the exit code instead of parsing error text.
| Code | Category | Meaning |
|---|---|---|
| 0 | OK | Success |
| 1 | INTERNAL | Internal error |
| 2 | USAGE | Wrong command line; nothing was sent |
| 3 | UNAUTHENTICATED | Unauthenticated |
| 4 | PERMISSION_DENIED | Permission denied (scope, plan or policy) |
| 5 | NOT_FOUND | Not found |
| 6 | INVALID_ARGUMENT | Invalid argument |
| 7 | FAILED_PRECONDITION | Failed precondition, including a required confirmation |
| 8 | CONFLICT | Conflict |
| 9 | RESOURCE_EXHAUSTED | Rate or quota limit |
| 10 | UNAVAILABLE | Unavailable (network, timeout or server failure) |
@moreflow/cli is moreflow's official command-line tool. It calls the moreflow operations API from a shell: the same operations an AI assistant uses over MCP, with JSON in and JSON out.
Not for chatting. The MCP server is the better fit for Claude, ChatGPT and other chat assistants. The CLI is for work a chat can't do well: exporting thousands of records into a file, scheduled scripts, CI jobs, and coding agents that already work in a terminal.
Yes, within the limits you set. At sign-in you choose the business areas and how much the CLI may change without asking. A write that needs confirmation stops with exit code 7 until you approve it, and every write carries an idempotency key, so you can repeat a failed write without running it twice.
No. API, MCP and CLI access are included in every moreflow plan, including the 14-day free trial.
Node.js with npm. Run it with npx, or install it globally with npm, then sign in with your browser or an API token.