Skip to content

CLI

A CLI for your API, generated from your docs.

docstar-cli turns any DocStar docs site into a command-line tool: each published endpoint becomes a real command, required parameters and all, and the same commands run as a local MCP server. No SDK to generate, nothing to keep in sync.

CLI docs
terminal
  1. youdocstar-cli init docs.msg91.com
  2. agentPick modules: ◉ WhatsApp ◯ Email ◯ OTP
  3. agentInstalled msg91 · whatsapp✓
  4. youdocstar-cli msg91 whatsapp check-whatsapp-prepaid-balance
  5. agent? Enter value for authkey
  6. agent200 OK✓

How it works

From docs site to terminal in three steps.

  1. 1

    Run init against any DocStar docs site

    It reads the site once and fetches each module's endpoint contract: method, URL, headers, body and parameters.

    docstar-cli init docs.msg91.com
  2. 2

    Pick the modules you need

    An interactive checklist shows every published module. Each endpoint becomes a real, inspectable command on disk.

    ◉ WhatsApp (whatsapp)
    ◯ Email (email)
    ◯ OTP (otp)
  3. 3

    Run commands

    Pass flags, or leave them out and get prompted. Method, URL, headers and body come from the published endpoint; you supply the values.

    docstar-cli msg91 whatsapp <endpoint> --flag value

Built for real use

Only what's actually documented.

  • Prompts for what's missing

    Skip a required flag and the CLI asks for it, so a command works before you've read the docs.

  • Local-first

    Contracts are saved to ~/.docstar after install. No round-trip to the docs site per call.

  • Predictable commands

    Commands follow API → module → endpoint, and list lets you browse what's installed.

    docstar-cli list
  • Published endpoints only

    Never drafts, internal notes or raw credentials.

  • Credentials per API

    Save keys once per API; they're sent as the headers or params the docs describe.

    docstar-cli config set msg91 authkey <value>
  • Always current

    Re-run init any time to pick up newly published endpoints.

For agents

Your installed APIs, as a local MCP server.

Run docstar-cli mcp to expose every installed endpoint as an MCP tool over stdio, named <api>__<module>__<endpoint>. Agents call your APIs with your saved credentials.

docstar-cli mcp

MCP server on stdio · tools:
msg91__whatsapp__check-whatsapp-prepaid-balance
msg91__whatsapp__send-message-on-group
…

FAQ

CLI questions.

Which APIs can I install?

Any API documented on DocStar. Point init at its docs site, a custom domain or sub-path, or the collection's slug.

How do I keep the commands up to date?

Re-run init. The CLI reads the published docs, so new and changed endpoints arrive with the next install.

How are API keys handled?

Save a key once per API with config set, or sign in. You can also write a key into your project's env file. Keys are sent only as the headers or parameters the docs describe.

Can my company ship it under our own name?

Yes. With white-label, your users run your CLI name with your branding, generated from the same docs.

Does the CLI send my credentials anywhere?

No. Credentials stay in ~/.docstar on your machine and are only sent to the API you call.

Give your users a CLI, without writing one.

One prompt. Your docs, MCP server and CLI, live.

Start free