Skip to main content

The App CLI

The epilot CLI is the primary way to build, validate and deploy apps. Everything it does is driven by your manifest.json โ€” commands scaffold code, keep the manifest in sync, and push the result to the platform.

# no install needed
npx @epilot/cli app <command>

# or globally
npm install -g @epilot/cli

Authenticationโ€‹

epilot auth login              # browser-based login
epilot auth login --token โ€ฆ # or paste a token

Commands that talk to the platform (deploy, dev, export, versions, review, api) also accept --token / the EPILOT_TOKEN env var, and --profile for switching between accounts. Use --server https://app.dev.sls.epilot.io to target a non-production environment.

Commands that work on the local project read manifest.json from the current directory. Pass --path to point them at another manifest.

Commandsโ€‹

epilot app init [name]โ€‹

Scaffolds a new app project: a monorepo with manifest.json, package.json, components/, Turborepo config and a README. Without a name the project is called my-epilot-app.

epilot app add-component <name> --type <TYPE>โ€‹

Adds a component package under components/<name>/ from a template and registers it in the manifest. Types: CUSTOM_CAPABILITY, CUSTOM_PAGE, CUSTOM_JOURNEY_BLOCK, CUSTOM_PORTAL_BLOCK, CUSTOM_FLOW_ACTION_FUNCTION (flow action running a workflow function), CUSTOM_FLOW_ACTION_EXTERNAL (webhook), PORTAL_EXTENSION, EXTERNAL_PRODUCT_CATALOG, API_PROXY.

For CUSTOM_CAPABILITY, --capability-type tab|group|widget chooses where the capability appears on an entity.

epilot app add-function <name> [--type workflow|scheduled] [--schedule "<expr>"] [--timezone "<tz>"] [--label "<text>"]โ€‹

Adds a server-side function under functions/<name>/ and registers it in the manifest. --schedule implies --type scheduled; --timezone sets the IANA timezone for a cron schedule (default Europe/Berlin). Workflow functions are wired into the flow builder via a CUSTOM_FLOW_ACTION component that references them (add-component โ€ฆ --type CUSTOM_FLOW_ACTION_FUNCTION).

epilot app add-function reserve-slot --type workflow
epilot app add-function nightly-sync --schedule "0 3 * * *"

epilot app remove-component <name> [--keep-files]โ€‹

Removes a component from the manifest and deletes its directory. Pass --keep-files to keep the directory.

epilot app validateโ€‹

Validates manifest.json locally โ€” required fields, component and function types, schedule expressions (minimum interval, format), counts. Run it in CI. It catches the common mistakes before a deploy; the platform runs the full schema validation when you deploy.

epilot app deploy [--dry-run] [--new-version] [--changelog "<text>"]โ€‹

The sync command. It:

  1. creates the app on first deploy (writes app_id back into the manifest),
  2. updates metadata, the logo, permissions and blueprint references,
  3. inlines each function's built handler as code,
  4. syncs app-level options and option groups,
  5. uploads component bundles/zips and upserts all components,
  6. deletes remote components that are no longer in the manifest (functions, options and option groups are only replaced when the manifest contains that key),
  7. creates a new version automatically when the latest one is published (published versions are immutable),
  8. re-syncs your own org's installation if the app is installed there.

--dry-run prints what would change without touching anything. --changelog (-m) describes what a new version changes, up to 250 characters.

epilot app dev [--component <name>] [--url <url>] [--off]โ€‹

Local development loop โ€” serve a component from localhost and preview it in epilot via development mode without deploying. --component (-c) picks the component to override, --url (-u) the URL it is served from, and --off switches development mode off again and removes the override.

epilot app export --app-id <id> [--version <version>] [-o <file>]โ€‹

Reconstructs a local manifest.json from a deployed app โ€” useful for migrating an app that was originally created in the UI to the CLI workflow. Exports the latest version unless you pass --version.

epilot app versions / epilot app reviewโ€‹

List an app's versions, and submit a version for marketplace review.

epilot app review --technical-contact dev@example.com --marketing-contact marketing@example.com

review needs both contacts. --demo-url adds a link to a demo, and --version picks the version (default: latest).

epilot app api <operation>โ€‹

Escape hatch: call any App API operation directly (epilot app api getInstallation, โ€ฆ) with your CLI credentials.

epilot app init my-app && cd my-app
epilot app add-component my-tab --type CUSTOM_CAPABILITY
epilot app add-function nightly-sync --schedule "0 3 * * *"
npm install && npm run build
epilot app validate
epilot app deploy

Commit the whole project โ€” manifest and code together are the reproducible definition of your app. The UI's app builder remains available for exploring, but repository + CLI is the recommended path for anything you intend to maintain.