Visit APIToGo on LinkedIn
  • Documentation
  • Components
  • Themes
Quickstart
CLI
MCP
Configuration
    Configuration overviewPortalProtect your API with the gatewaySign-inPlansAPI referenceMake config
Look and feel
Writing
Guides
Deployment
powered by apitogo
Configuration

Make config (CLI)

The apitogo config command changes a project made by apitogo create or apitogo init (config version 2). It edits apitogo.config.json, writes docs pages under apitogo/portal/pages/, and keeps plans in apitogo/plans.json.

Every change to apitogo.config.json is checked against the version 2 schema before it is written. An invalid change is refused and the file stays as it was.

The command does not create a project. In a folder without apitogo.config.json, or with an old version 1 config, it stops and points to apitogo create.

What goes where

You changeWhere it is written
Portal display nameportal.name in apitogo.config.json
API code (backend)gateway.origin (mode: managed, source, runtime, version)
OpenAPI filegateway.specs in apitogo.config.json
Docs pageapitogo/portal/pages/<slug>.tsx, a React page (config unchanged)
Planapitogo/plans.json (or the file in plans.file)

The portal builds its sidebar from the pages folder, so adding a page needs no navigation entry. A page in guides/quickstart.tsx shows under a Guides section at /guides/quickstart. New pages are React components by default; pass --page-format mdx for a Markdown page. See Custom pages.

A page that belongs in the header's top menu instead of the sidebar (Partners, About, Contact) takes --page-header: the React page goes to apitogo/portal/header-pages/<slug>.tsx (.mdx with --page-format mdx) and a link is added to portal.header.links. See Header links.

TerminalCode
apitogo config --page-slug partners --page-title Partners --page-header

Changing a gateway or plan needs that service in the project. Add it first with apitogo add gateway or apitogo add plans.

Interactive wizard

On a TTY, bare apitogo config opens the wizard. Each answer is applied at once. Type done (the default) to finish.

  • backend: folder of your API code, runtime (nodejs / python / dotnet) and version
  • openapi: an OpenAPI file to add to gateway.specs
  • page: page title and URL path; writes the React page apitogo/portal/pages/<slug>.tsx
  • plan: title, fixed or custom price, rate limit per minute, quota per 30 days; added to plans.json

Payments go through Stripe. When you add a paid plan, apitogo deploy asks for your Stripe secret key the first time (if the project has none yet). Free and contact-us plans need no key. Paid plans also need Starter or Professional platform hosting.

Options

OptionDescription
--interactive / -iForce the wizard (default on TTY). Use --no-interactive to skip it.
--title <name>Set portal.name
--source <dir>Folder of your API code (gateway.origin.source, mode managed)
--runtime <name>Runtime of --source: nodejs (default), python or dotnet
--runtime-version <v>Runtime version, for example NODE_22_LTS
--openapi <file>Add an OpenAPI file to gateway.specs
--page-slug <path>Add a page at apitogo/portal/pages/<path>.tsx
--page-format <tsx|mdx>Format of a new page: tsx (React, the default) or mdx
--page-title <title>Title of the page (required when adding)
--page-content <markdown>Markdown body of the page
--page-updateChange an existing page instead of adding one
--page-headerLink the page from the header's top menu instead of the sidebar
--plan <json>Add a plan to plans.json, or replace the plan with the same sku
--patch <json>Deep-merge a JSON object into apitogo.config.json
--jsonPrint a JSON summary on stdout

A plan uses the plans.json shape:

Code
{ "sku": "starter", "displayName": "Starter", "limits": { "rateLimit": { "calls": 100, "periodSeconds": 60 }, "quota": { "calls": 50000, "periodDays": 30 } } }

Examples:

TerminalCode
apitogo config apitogo config --title "Books API" apitogo config --page-slug guides/quickstart --page-title "Quickstart" apitogo config --plan '{"sku":"free","displayName":"Free"}' apitogo config --source server --runtime nodejs --runtime-version NODE_22_LTS apitogo config --patch '{"portal":{"search":"none"}}'

See also

  • Manifest (apitogo.config.json)
  • Gateway plans
  • Shape with CLI
Last modified on November 10, 2026
API referenceColors & Theme
On this page
  • What goes where
  • Interactive wizard
  • Options
  • See also
JSON