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

Install the CLI

Use the apitogo CLI (@lukoweb/apitogo) to scaffold a local portal, shape apitogo.config.json, preview with apitogo run, and publish with apitogo deploy. The MCP tools run these same commands for an agent.

Examples in these docs run apitogo directly, so they assume you have installed the CLI globally (see Install).

Prerequisites

  • Node.js 20+
  • Platform API credentials from apitogo.com when you run apitogo deploy (API key id + secret)

Install

The CLI is the npm package @lukoweb/apitogo. It exposes the apitogo binary. Install it globally once:

TerminalCode
npm install -g @lukoweb/apitogo

Then check that it works from any folder:

TerminalCode
apitogo --help

Upgrade later with npm install -g @lukoweb/apitogo@latest. Uninstall with npm uninstall -g @lukoweb/apitogo.

New project (recommended)

apitogo init creates a config version 2 project in the current folder. It shows what it will create and asks first (pass --yes to skip the question), writes apitogo.config.json, uses an existing docs/ folder in place, and, in a new folder, creates package.json and installs @lukoweb/apitogo, react and react-dom:

TerminalCode
mkdir my-portal && cd my-portal apitogo init --name "Books API" apitogo run

In an existing project the tool never edits your package.json. It prints the install command to run instead.

Named folder or site name:

TerminalCode
apitogo init ./my-portal --name "Books API" cd ./my-portal apitogo run

Scaffold options

FlagEffect
[dir]Target folder (default: the current folder)
--name <string>Project name (default: the folder's name)
--yesDo not ask for confirmation
--dry-runShow what would be created, and write nothing
--forceReplace an existing apitogo.config.json
--jsonPrint a JSON result payload on stdout

apitogo init is local only — it does not call the platform. After config, run apitogo run to preview, then apitogo deploy when ready to go live.

Global CLI and project scripts

With the global install, run apitogo <command> from any folder (for example apitogo config).

Projects made by init or create also list @lukoweb/apitogo in their package.json, so npm run dev and npm run build use the version pinned in that project.

Platform credentials

Export these before apitogo deploy, apitogo status, or apitogo teardown:

VariableRequiredPurpose
APITOGO_API_KEY_IDYesPlatform API auth
APITOGO_API_SECRETYesPlatform API auth

Optional:

VariablePurpose
APITOGO_API_URLOverride platform API base URL
APITOGO_CLI_PATHLocal @lukoweb/apitogo / doc-tool checkout for MCP spawn

Never commit secrets. Secrets such as the Stripe key are project secrets: deploy asks for them, and apitogo secrets set <NAME> changes them. See Go live.

Verify

TerminalCode
apitogo --help

You should see init, config, run, build, deploy, status, and teardown.

With credentials set:

TerminalCode
apitogo status

Next

  • CLI overview
  • Shape — scaffold and local preview
  • Go live — apitogo deploy
  • Commands — full catalog
Last modified on November 10, 2026
QuickstartInstall the CLI
On this page
  • Prerequisites
  • Install
    • New project (recommended)
    • Global CLI and project scripts
  • Platform credentials
  • Verify
  • Next