Skip to main content
Docs/Docs
DocsGenMB CLI
Free

GenMB CLI

Generate, deploy, and orchestrate GenMB apps from your terminal.

Install

npm install -g @genmb/cli

Authenticate

Set your API key:

export GENMB_API_KEY=genmb_sk_...

Commands

genmb whoami                                    # confirm auth
genmb generate "A SaaS for invoicing freelancers"
genmb list                                      # list your apps
genmb deploy <appId> --subdomain my-app
genmb run <workflowId> --workflow
genmb run <agentId> --agent

Use cases

  • Trigger a scheduled agent from a CI step.
  • Generate apps in batches from a CSV of prompts.
  • Deploy after every merge to main with a one-line GitHub Action.
Use the MCP server for AI-driven flows; use the CLI for shell-driven ones. They share the same API keys.
The CLI is a thin wrapper over the same public REST endpoints exposed by the MCP server. Anything you can do here, you can also do programmatically.

FAQs

When should I use the CLI vs the MCP server?
Use the MCP server when you want a tool-calling AI client (Claude Code, Cursor) to operate GenMB on your behalf. Use the CLI when you want a shell user to script GenMB - CI pipelines, makefiles, batch operations.
Where do I get an API key?
Mint one at https://genmb.com/settings → API Keys. Keys are scoped to a single user and start with `genmb_sk_`. The same keys authenticate both the CLI and the MCP server.
Is the CLI open source?
Yes. The CLI source lives in the public GenMB repository under `/cli`. Pull requests are welcome.