Skip to Content
Reference

CLI commands

Every console command of the Flute core: arguments, options and defaults.

Generated from php flute list --format=json, version 2.0.0. Command and option descriptions are the ones the console prints.

Run commands from the site directory:

php flute list
php flute help migrate

In the Docker stack, run them inside the php container:

docker compose exec php php flute cache:clear

Modules add commands of their own. On a site with modules installed, php flute list shows more than this page.

No namespace

migrate

Applies pending database migrations (core + installed modules) and syncs seed data.

Usage

php flute migrate [--module MODULE] [--no-seed]

Options

NameWhat it doesDefault
--module=VALUEOnly run migrations of this module key—
--no-seedSkip the idempotent seeders (permissions, roles)—

optimize

Precompile config, providers, views, and assets for production.

Usage

php flute optimize [--warm-home]

Options

NameWhat it doesDefault
--warm-homePrepare the anonymous homepage at the configured URL in performance mode.—

serve

Run the local development server.

Usage

php flute serve [--host HOST] [--port PORT] [--watch] [--worker] [--workers WORKERS] [--no-jobs]

Options

NameWhat it doesDefault
--host=VALUEHost to bind to.127.0.0.1
--port=VALUEPort to listen on.8088
--watchRestart on PHP file changes (FrankenPHP only).—
--workerServe from a resident worker: the app boots once per worker, not per request (FrankenPHP only).—
--workers=VALUEResident workers to start.4
--no-jobsDo not run the scheduler (cron:run every minute) and the queue worker alongside the server.—

Namespace api

api:demo

Run every API feature end-to-end and write an HTML report.

Usage

php flute api:demo [--html HTML]

Options

NameWhat it doesDefault
--html=VALUEOutput HTML pathstorage/app/api-demo.html

Namespace backup

backup:create

Create an offsite backup bundle (manifest, DB dump, config and private files) on the configured storage disk.

Usage

php flute backup:create [--disk DISK] [--no-db]

Options

NameWhat it doesDefault
--disk=VALUETarget storage disk (defaults to filesystems.backup_disk).—
--no-dbSkip the database dump.—

Namespace cache

cache:clear

Clears application cache (with SWR rotation) and asset caches.

Usage

php flute cache:clear [--full]

Options

NameWhat it doesDefault
--fullAlso clears logs and proxies (may be expensive under load).—

cache:prune

Prunes expired cache entries from both main and stale caches.

Usage

php flute cache:prune [--lock-age LOCK-AGE] [--sweep-orphans]

Options

NameWhat it doesDefault
--lock-age=VALUEMax age of lock files in seconds3600
--sweep-orphansAlso sweep orphan temp directories—

cache:warmup

Warms up caches (modules, routes, ORM schema) for CRON mode

Usage

php flute cache:warmup

Namespace cron

cron:run

Runs all due scheduled tasks

Usage

php flute cron:run

Namespace db

db:seed

Runs the idempotent core seeders (permission catalog, default roles).

Usage

php flute db:seed

Namespace demo

demo:seed

Fills the site and every active extension with sample data for development.

Usage

php flute demo:seed [--only ONLY]

Options

NameWhat it doesDefault
--only=VALUEComma-separated module keys to seed—

Namespace generate

generate:migration

Generates a real schema-diff migration (up/down) from entity attributes vs the database.

Usage

php flute generate:migration [--global] [--module MODULE]

Options

NameWhat it doesDefault
--globalCore tables only, into storage/migrations—
--module=VALUETables of this module only, into its database/migrations; the module need not be installed—

generate:store-types

Generate TypeScript declarations for FluteStore from PHP store schemas

Usage

php flute generate:store-types

Namespace i18n

i18n:sync

Downloads approved community translations for the site languages.

Usage

php flute i18n:sync

Namespace icons

icons:compile

Compiles SVG icons into indexed binary map files.

Usage

php flute icons:compile [--cleanup] [--dry-run]

Options

NameWhat it doesDefault
--cleanupRemove original SVG files after compilation.—
--dry-runShow what would be done without writing files.—

Namespace install

install:reset

Resets installation markers so the installer can run again.

Usage

php flute install:reset [--force] [--] <site-name>

Arguments

NameWhat it doesDefault
site-name (required)Confirmation: must equal the configured site name (config app.name).—

Options

NameWhat it doesDefault
--forceRequired to confirm this destructive reset.—

Namespace logs

logs:cleanup

Clean up old log files and archive logs

Usage

php flute logs:cleanup

logs:clear

Clears the logs in storage/logs.

Usage

php flute logs:clear

Namespace migrate

migrate:rollback

Rolls back the last executed migration(s).

Usage

php flute migrate:rollback [--steps STEPS] [--module MODULE] [--force]

Options

NameWhat it doesDefault
--steps=VALUEHow many migrations to roll back1
--module=VALUERoll back this module's migrations instead of core—
--forceSkip the confirmation prompt—

migrate:status

Shows executed/pending state of every migration (core + installed modules).

Usage

php flute migrate:status

Namespace oauth

oauth:client

Register an OAuth2/OIDC client (Login with your site).

Usage

php flute oauth:client [--name NAME] [--redirect REDIRECT] [--scope SCOPE] [--grants GRANTS] [--public]

Options

NameWhat it doesDefault
--name=VALUEHuman-readable application name—
--redirect=VALUEAllowed redirect URI (repeatable)—
--scope=VALUEComma-separated scopes (OIDC and/or api resource scopes)openid,profile,email
--grants=VALUEComma-separated grant typesauthorization_code,refresh_token
--publicPublic client (no secret, PKCE required)—

Namespace optimize

optimize:clear

Remove precompiled production artifacts.

Usage

php flute optimize:clear

Namespace payments

payments:encrypt-gateways

Encrypts payment gateway credentials that are still stored as plaintext JSON.

Usage

php flute payments:encrypt-gateways

Namespace players

players:backfill

Creates a Player (+ identity type=user) for every site account that has none. Idempotent.

Usage

php flute players:backfill

Namespace profile

profile:stack

Report a stored call-graph profile; pass two tokens for a cold/warm diff.

Usage

php flute profile:stack [--url URL] [--top TOP] [--raw] [--] [<token>...]

Arguments

NameWhat it doesDefault
token (optional)One profile token, or two (cold warm) for a diff.—

Options

NameWhat it doesDefault
--url=VALUENewest profile whose URL contains this, when no token is given.—
--top=VALUERows per table.20
--rawPrint the raw edge file path too.—

Namespace queue

queue:work

Process queued jobs.

Usage

php flute queue:work [--once] [--sleep SLEEP] [--max-time MAX-TIME]

Options

NameWhat it doesDefault
--onceProcess a single job and exit.—
--sleep=VALUESeconds to sleep when idle.1
--max-time=VALUEExit after this many seconds, once the job in hand is done; a supervisor starts a fresh process. 0 = no limit.0

Namespace route

route:detail

Displays detailed information about a specified route

Usage

php flute route:detail <path>

Arguments

NameWhat it doesDefault
path (required)Route path (URI)—

route:list

Displays a list of all registered routes

Usage

php flute route:list

Namespace sections

sections:migrate-legacy-pages

Convert legacy pages to section pages. Dry-run by default; --write performs the cutover, --rollback=<legacyPageId> restores the legacy route.

Usage

php flute sections:migrate-legacy-pages [--dry-run] [--write] [--rollback ROLLBACK] [--page PAGE]

Options

NameWhat it doesDefault
--dry-runReport only, write nothing (default).—
--writeConvert + publish + cutover (idempotent by legacy_page_id).—
--rollback=VALUERestore the legacy route for the given legacy page id (keeps the SectionPage).—
--page=VALUEScope the run to a single legacy page id.—

sections:seed-home

Seed a starter section-based home page (slug "home"). Idempotent.

Usage

php flute sections:seed-home [--replace]

Options

NameWhat it doesDefault
--replaceOverwrite an existing home page with the starter content and publish it—

Namespace studio

studio:adopt-home

Give the home document the slug "home" and publish it, so "/" is served by Studio. Dry-run by default.

Usage

php flute studio:adopt-home [--dry-run] [--write] [--force] [--page PAGE]

Options

NameWhat it doesDefault
--dry-runPrint the plan and write nothing (default).—
--writeApply the plan.—
--forceRe-publish even when a published home already exists.—
--page=VALUEAdopt this document id instead of the detected candidate.—

studio:adopt-page

Turn one legacy page into a published Studio document. Dry-run by default.

Usage

php flute studio:adopt-page [--dry-run] [--write] [--] <page>

Arguments

NameWhat it doesDefault
page (required)Legacy page id, route (/rules) or slug (rules).—

Options

NameWhat it doesDefault
--dry-runPrint the plan and write nothing (default).—
--writeConvert, publish and cut the route over to the document.—

studio:check-pack

Validate a Studio decor pack against the contract whitelist.

Usage

php flute studio:check-pack [--install] [--] [<pack>]

Arguments

NameWhat it doesDefault
pack (optional)Pack key or folder name; omit to check every pack.—

Options

NameWhat it doesDefault
--installPublish assets and fonts when the pack passes.—

studio:doctor

Show which pages Studio actually renders and why the others do not.

Usage

php flute studio:doctor [--dry-run] [--problems]

Options

NameWhat it doesDefault
--dry-runAccepted and ignored: studio:doctor never writes.—
--problemsPrint only the pages that do not render.—

Namespace template

template:clear

Clears the template cache.

Usage

php flute template:clear

Namespace update

update:core

Update the engine, restore a version an update kept, or drive the update in progress.

Usage

php flute update:core [--feed FEED] [--to TO] [--restore RESTORE] [--skip-dump] [--cancel] [--step] [--retry-rollback] [--continue]

Options

NameWhat it doesDefault
--feed=VALUERelease feed file (defaults to app.update_feed_file).—
--to=VALUEInstall this version instead of the newest.—
--restore=VALUEBring back a version an earlier update kept.—
--skip-dumpUpdate without dumping the database first.—
--cancelCancel an update that has not touched the site yet.—
--stepRun one step and exit.—
--retry-rollbackRetry the rollback of an update that got stuck, once its cause is fixed.—
--continueOnly drive the update in progress, never start one.—

Namespace user

user:password

Sets a new password for a user and signs the account out everywhere.

Usage

php flute user:password [--no-2fa] [--] <user>

Arguments

NameWhat it doesDefault
user (required)Login, e-mail or id of the user—

Options

NameWhat it doesDefault
--no-2faAlso turn off two-factor sign-in of the account—

Global options

Every command accepts these options.

NameWhat it doesDefault
-h, --helpDisplay help for the given command. When no command is given display help for the list command—
--silentDo not output any message—
-q, --quietOnly errors are displayed. All other output is suppressed—
`-v-vv-vvv, --verbose`
-V, --versionDisplay this application version—
--ansiForce (or disable --no-ansi) ANSI output—
--no-ansiNegate the "--ansi" option—
-n, --no-interactionDo not ask any interactive question—

On this page