Next Steps

CLI

Install and use the Laioutr CLI to manage project configuration, publish app versions, and trigger deployments.

Installation

Install the Laioutr CLI globally:

pnpm install -g @laioutr/cli@latest

Or run commands directly without installing:

npx @laioutr/cli@latest <command>

Global flags

All commands accept these flags:

FlagEnv variableDefaultDescription
--cockpitApiHostCOCKPIT_API_HOSThttps://cockpit.laioutr.cloudCockpit API host
--cwdCWDCurrent directoryWorking directory

Authentication

Some commands require authentication. Two mechanisms exist depending on the command:

  • Project secret — used by rc fetch to download project configuration. Find it in the Cockpit under Settings > Project Secrets.
  • Organization API key — used by app release and deploy commands. Create one in the Cockpit under Organization Settings > API Keys. Pass via --key flag or LAIOUTR_API_KEY environment variable.

Commands

rc fetch

Fetches the laioutrrc.json of a project from the Cockpit API.

laioutr rc fetch -p <org>/<project> -s <projectSecret> [filename]
Flag / ArgRequiredDefaultDescription
-p, --projectYes<organization slug>/<project slug>
-s, --projectSecretYesProject secret key
-e, --environmentNameNomainEnvironment name
filenameNolaioutrrc.jsonOutput file path

rc update

Updates an existing laioutrrc.json with the latest data from the Cockpit API. Reads project and secret from the laioutr metadata inside the file, so no flags are needed.

laioutr rc update [filename]
Flag / ArgRequiredDefaultDescription
filenameNolaioutrrc.jsonFile to update

app release

Publishes an app version to the Laioutr platform. Run this from the app's package directory after the npm package has been published.

laioutr app release --key orgKey_xxx

The command reads name, version, and peerDependencies from package.json and extracts configSchema from src/module.ts automatically.

FlagRequiredDefaultDescription
-k, --keyYesOrganization API key (LAIOUTR_API_KEY)
-c, --channelNoAuto-detectedRelease channel: stable or testing. Pre-release versions default to testing.

deploy trigger

Triggers a project deployment and polls until completion.

# Production deployment
laioutr deploy trigger --project <org>/<project> --key orgKey_xxx

# Preview deployment with app version override
laioutr deploy trigger \
  --project <org>/<project> \
  --key orgKey_xxx \
  --preview my-feature \
  --with-app @laioutr-app/[email protected]

# Preview deployment with app version and config overrides
laioutr deploy trigger \
  --project <org>/<project> \
  --key orgKey_xxx \
  --preview test-new-store \
  --with-app @laioutr-app/[email protected] \
  --with-app-config '@laioutr-app/shopify={"shopId":"99900011122","storeDomain":"staging.myshopify.com","publicAccessKey":"074478fbce..."}'
FlagRequiredDefaultDescription
--projectYes<organization slug>/<project slug>
-k, --keyYesOrganization API key (LAIOUTR_API_KEY)
--preview [name]NoCreate a preview deployment with an optional label
--with-appNoOverride an app version for this deployment (repeatable)
--with-app-configNoOverride app config JSON for this deployment (repeatable, requires --with-app)
--no-waitNoExit immediately after triggering instead of polling
--jsonNoOutput final state as JSON

deploy status

Shows the status of a specific deployment.

laioutr deploy status --project <org>/<project> --key orgKey_xxx --deploymentId dep_abc123
FlagRequiredDefaultDescription
--projectYes<organization slug>/<project slug>
-k, --keyYesOrganization API key (LAIOUTR_API_KEY)
--deploymentIdYesDeployment ID to check
--jsonNoOutput as JSON

deploy list

Lists recent deployments for a project.

laioutr deploy list --project <org>/<project> --key orgKey_xxx
FlagRequiredDefaultDescription
--projectYes<organization slug>/<project slug>
-k, --keyYesOrganization API key (LAIOUTR_API_KEY)
--jsonNoOutput as JSON