CLI Reference

Utility Commands

whatalo whoami, logout, info, doctor, and upgrade — tools for managing your session and environment.

whatalo whoami

Show the currently authenticated developer and session details.

Syntax

whatalo whoami [options]

Options

FlagTypeDescription
--portal-url <url>stringDeveloper Portal URL

Output

FieldDescription
EmailYour developer account email
CompanyAssociated company name
VerifiedWhether your account email is verified
Session remainingTime left on the current access token (auto-refreshed if expired)

If your access token has expired but the refresh token is still valid, whatalo whoami refreshes it silently before displaying.

Example

whatalo whoami

whatalo logout

Sign out and revoke your session.

Syntax

whatalo logout [options]

Options

FlagTypeDescription
--portal-url <url>stringDeveloper Portal URL

What it does

  1. Sends a revocation request to the portal for the refresh token (best-effort, 5-second timeout — continues even if the request fails)
  2. Deletes ~/.whatalo/session.json

Example

whatalo logout

whatalo info

Show project and environment information without making any API calls.

Syntax

whatalo info [options]

Options

FlagTypeDescription
--jsonbooleanOutput as JSON
--portal-url <url>stringDeveloper Portal URL

Output sections

Project (reads from whatalo.app.toml and package.json)

FieldSource
Namewhatalo.app.toml
Slugwhatalo.app.toml
Plugin IDwhatalo.app.toml
Portwhatalo.app.toml dev config
Versionpackage.json

Environment (reads from the local system)

FieldDescription
Node.jsInstalled version
CLI@whatalo/cli version
pnpmInstalled version
ViteVersion from package.json
TypeScriptVersion from package.json
SDK@whatalo/plugin-sdk version

Auth (reads from ~/.whatalo/session.json)

FieldDescription
EmailLogged-in account
Session validityWhether the session is active
Portal URLResolved portal URL

Example

whatalo info --json

whatalo doctor

Check your full development environment and report any issues.

Syntax

whatalo doctor [options]

Options

FlagTypeDescription
--jsonbooleanOutput as JSON
--verbosebooleanShow detail for passing checks too
--category <cat>stringRun only one category of checks
--portal-url <url>stringDeveloper Portal URL

Check categories

Run a single category with --category <name>.

system — Local toolchain

CheckRequirement
Node.js version>= 18
pnpm installedAny version
git installedAny version

auth — Session state

CheckWhat is verified
Session file exists~/.whatalo/session.json present
Session validAccess or refresh token is not expired

project — Plugin project

CheckWhat is verified
Config presentwhatalo.app.toml found
Plugin linkedplugin_id set in config
SDK installed@whatalo/plugin-sdk in node_modules
Dependencies installednode_modules present

network — Connectivity

CheckWhat is verified
Portal reachableHTTP GET to portal health endpoint
npm registry reachableHTTP GET to registry.npmjs.org
cloudflared availableBinary present at ~/.whatalo/bin/cloudflared

Total: 11 checks across 4 categories.

Exit codes

CodeMeaning
0All checks passed
1One or more checks failed

Example

whatalo doctor
whatalo doctor --category network
whatalo doctor --verbose --json

whatalo upgrade

Check for a newer version of @whatalo/cli and show the correct upgrade command.

Syntax

whatalo upgrade [options]

Options

FlagTypeDescription
--jsonbooleanOutput as JSON

What it does

  • Checks the npm registry for the latest version of @whatalo/cli
  • Compares it to the currently installed version
  • If a newer version is available, prints the correct upgrade command based on the detected package manager (pnpm, yarn, or npm)
  • No authentication required

Example output (update available)

  Current version:  1.2.0
  Latest version:   1.5.0

  Run to upgrade:
    pnpm add -g @whatalo/cli

Example

whatalo upgrade

On this page