Visit APIToGo on LinkedIn
  • Documentation
  • Components
  • Themes
Quickstart
CLI
    Install the CLIWalkthrough: from an empty folder to a customer's first callCLI overviewShape with CLIGo live with CLICLI commands
MCP
Configuration
Look and feel
Writing
Guides
Deployment
powered by apitogo
CLI

CLI overview

The apitogo CLI lets you manage developer portals from the terminal. You scaffold and shape local files, preview with apitogo run, and publish to APItoGo hosting with apitogo deploy.

First time? Install and wire credentials → Install the CLI. Then follow Shape and Go live.

What you get

  • Scaffold a local portal site (apitogo init)
  • Shape backend, OpenAPI, plans, and docs pages via apitogo config and file edits
  • Preview locally (apitogo run)
  • Publish to APItoGo hosting (apitogo deploy) with platform plans Free, Starter, or Professional
  • Check live status (apitogo status) and tear down (apitogo teardown --yes)

Prerequisites

Shell environment (for deploy / status / teardown)

VariableRequiredPurpose
APITOGO_API_KEY_IDYesPlatform API auth
APITOGO_API_SECRETYesPlatform API auth

Local machine

  • Node.js 20+ (scaffold, build, preview)
  • Network access to the npm registry during install/build
  • OIDC credentials at publish time (site .env only — never in shell history for sharing)
  • Stripe secrets at publish only when you have paid project plans

Changing your site

ApproachWhen it helps
apitogo configWire OpenAPI, custom pages, gateway plans, and site title from the terminal. See Make config.
Edit files directlyFull control — apitogo.config.json, pages/**, landing/LandingPage.tsx, etc.

Common CLI shape tasks:

ChangeHow
Backend runtimeapitogo config (backend)
OpenAPI files (gateway.specs)apitogo config (openapi)
Custom docs pagesapitogo config (page) or add under apitogo/portal/pages/
Gateway / API plansapitogo config (plan) or edit apitogo/plans.json
Site title--title or edit apitogo.config.json
Theme and fontsEdit apitogo/portal/theme.json

The home page is apitogo/portal/landing/LandingPage.tsx and the footer apitogo/portal/footer/Footer.tsx, named by portal.landing and portal.footer.

Config model (local site)

FileRole
apitogo.config.jsonThe services: portal, gateway, identity, plans
apitogo/Pages, plans, theme, OpenAPI files

Secrets are project secrets (apitogo secrets set), never files. Details: Configuration overview.

CLI vs MCP

Each MCP tool runs one CLI command in the project folder, so both give the same result.

TaskCLIMCP (agent)
Createapitogo createapitogo_create
Shape configapitogo config + file editsapitogo_config + file edits
Previewapitogo runapitogo run (you start it)
Deployapitogo plan / apitogo deployapitogo_plan / apitogo_deploy
Status / teardownapitogo status / apitogo teardownapitogo_status / apitogo_teardown

Prefer MCP when an agent should drive changes. Prefer CLI for CI, scripts, or terminal-only workflows.

Next

  • Install the CLI
  • Shape · Go live · Commands
  • MCP overview — agent-driven workflow
  • Manifest
Last modified on November 10, 2026
Walkthrough: from an empty folder to a customer's first callShape with CLI
On this page
  • What you get
  • Prerequisites
    • Shell environment (for deploy / status / teardown)
    • Local machine
  • Changing your site
  • Config model (local site)
  • CLI vs MCP
  • Next