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 migrateIn the Docker stack, run them inside the php container:
docker compose exec php php flute cache:clearModules 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
| Name | What it does | Default |
|---|---|---|
--module=VALUE | Only run migrations of this module key | — |
--no-seed | Skip the idempotent seeders (permissions, roles) | — |
optimize
Precompile config, providers, views, and assets for production.
Usage
php flute optimize [--warm-home]Options
| Name | What it does | Default |
|---|---|---|
--warm-home | Prepare 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
| Name | What it does | Default |
|---|---|---|
--host=VALUE | Host to bind to. | 127.0.0.1 |
--port=VALUE | Port to listen on. | 8088 |
--watch | Restart on PHP file changes (FrankenPHP only). | — |
--worker | Serve from a resident worker: the app boots once per worker, not per request (FrankenPHP only). | — |
--workers=VALUE | Resident workers to start. | 4 |
--no-jobs | Do 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
| Name | What it does | Default |
|---|---|---|
--html=VALUE | Output HTML path | storage/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
| Name | What it does | Default |
|---|---|---|
--disk=VALUE | Target storage disk (defaults to filesystems.backup_disk). | — |
--no-db | Skip the database dump. | — |
Namespace cache
cache:clear
Clears application cache (with SWR rotation) and asset caches.
Usage
php flute cache:clear [--full]Options
| Name | What it does | Default |
|---|---|---|
--full | Also 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
| Name | What it does | Default |
|---|---|---|
--lock-age=VALUE | Max age of lock files in seconds | 3600 |
--sweep-orphans | Also sweep orphan temp directories | — |
cache:warmup
Warms up caches (modules, routes, ORM schema) for CRON mode
Usage
php flute cache:warmupNamespace cron
cron:run
Runs all due scheduled tasks
Usage
php flute cron:runNamespace db
db:seed
Runs the idempotent core seeders (permission catalog, default roles).
Usage
php flute db:seedNamespace demo
demo:seed
Fills the site and every active extension with sample data for development.
Usage
php flute demo:seed [--only ONLY]Options
| Name | What it does | Default |
|---|---|---|
--only=VALUE | Comma-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
| Name | What it does | Default |
|---|---|---|
--global | Core tables only, into storage/migrations | — |
--module=VALUE | Tables 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-typesNamespace i18n
i18n:sync
Downloads approved community translations for the site languages.
Usage
php flute i18n:syncNamespace icons
icons:compile
Compiles SVG icons into indexed binary map files.
Usage
php flute icons:compile [--cleanup] [--dry-run]Options
| Name | What it does | Default |
|---|---|---|
--cleanup | Remove original SVG files after compilation. | — |
--dry-run | Show 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
| Name | What it does | Default |
|---|---|---|
site-name (required) | Confirmation: must equal the configured site name (config app.name). | — |
Options
| Name | What it does | Default |
|---|---|---|
--force | Required to confirm this destructive reset. | — |
Namespace logs
logs:cleanup
Clean up old log files and archive logs
Usage
php flute logs:cleanuplogs:clear
Clears the logs in storage/logs.
Usage
php flute logs:clearNamespace migrate
migrate:rollback
Rolls back the last executed migration(s).
Usage
php flute migrate:rollback [--steps STEPS] [--module MODULE] [--force]Options
| Name | What it does | Default |
|---|---|---|
--steps=VALUE | How many migrations to roll back | 1 |
--module=VALUE | Roll back this module's migrations instead of core | — |
--force | Skip the confirmation prompt | — |
migrate:status
Shows executed/pending state of every migration (core + installed modules).
Usage
php flute migrate:statusNamespace 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
| Name | What it does | Default |
|---|---|---|
--name=VALUE | Human-readable application name | — |
--redirect=VALUE | Allowed redirect URI (repeatable) | — |
--scope=VALUE | Comma-separated scopes (OIDC and/or api resource scopes) | openid,profile,email |
--grants=VALUE | Comma-separated grant types | authorization_code,refresh_token |
--public | Public client (no secret, PKCE required) | — |
Namespace optimize
optimize:clear
Remove precompiled production artifacts.
Usage
php flute optimize:clearNamespace payments
payments:encrypt-gateways
Encrypts payment gateway credentials that are still stored as plaintext JSON.
Usage
php flute payments:encrypt-gatewaysNamespace players
players:backfill
Creates a Player (+ identity type=user) for every site account that has none. Idempotent.
Usage
php flute players:backfillNamespace 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
| Name | What it does | Default |
|---|---|---|
token (optional) | One profile token, or two (cold warm) for a diff. | — |
Options
| Name | What it does | Default |
|---|---|---|
--url=VALUE | Newest profile whose URL contains this, when no token is given. | — |
--top=VALUE | Rows per table. | 20 |
--raw | Print 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
| Name | What it does | Default |
|---|---|---|
--once | Process a single job and exit. | — |
--sleep=VALUE | Seconds to sleep when idle. | 1 |
--max-time=VALUE | Exit 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
| Name | What it does | Default |
|---|---|---|
path (required) | Route path (URI) | — |
route:list
Displays a list of all registered routes
Usage
php flute route:listNamespace 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
| Name | What it does | Default |
|---|---|---|
--dry-run | Report only, write nothing (default). | — |
--write | Convert + publish + cutover (idempotent by legacy_page_id). | — |
--rollback=VALUE | Restore the legacy route for the given legacy page id (keeps the SectionPage). | — |
--page=VALUE | Scope 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
| Name | What it does | Default |
|---|---|---|
--replace | Overwrite 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
| Name | What it does | Default |
|---|---|---|
--dry-run | Print the plan and write nothing (default). | — |
--write | Apply the plan. | — |
--force | Re-publish even when a published home already exists. | — |
--page=VALUE | Adopt 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
| Name | What it does | Default |
|---|---|---|
page (required) | Legacy page id, route (/rules) or slug (rules). | — |
Options
| Name | What it does | Default |
|---|---|---|
--dry-run | Print the plan and write nothing (default). | — |
--write | Convert, 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
| Name | What it does | Default |
|---|---|---|
pack (optional) | Pack key or folder name; omit to check every pack. | — |
Options
| Name | What it does | Default |
|---|---|---|
--install | Publish 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
| Name | What it does | Default |
|---|---|---|
--dry-run | Accepted and ignored: studio:doctor never writes. | — |
--problems | Print only the pages that do not render. | — |
Namespace template
template:clear
Clears the template cache.
Usage
php flute template:clearNamespace 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
| Name | What it does | Default |
|---|---|---|
--feed=VALUE | Release feed file (defaults to app.update_feed_file). | — |
--to=VALUE | Install this version instead of the newest. | — |
--restore=VALUE | Bring back a version an earlier update kept. | — |
--skip-dump | Update without dumping the database first. | — |
--cancel | Cancel an update that has not touched the site yet. | — |
--step | Run one step and exit. | — |
--retry-rollback | Retry the rollback of an update that got stuck, once its cause is fixed. | — |
--continue | Only 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
| Name | What it does | Default |
|---|---|---|
user (required) | Login, e-mail or id of the user | — |
Options
| Name | What it does | Default |
|---|---|---|
--no-2fa | Also turn off two-factor sign-in of the account | — |
Global options
Every command accepts these options.
| Name | What it does | Default |
|---|---|---|
-h, --help | Display help for the given command. When no command is given display help for the list command | — |
--silent | Do not output any message | — |
-q, --quiet | Only errors are displayed. All other output is suppressed | — |
| `-v | -vv | -vvv, --verbose` |
-V, --version | Display this application version | — |
--ansi | Force (or disable --no-ansi) ANSI output | — |
--no-ansi | Negate the "--ansi" option | — |
-n, --no-interaction | Do not ask any interactive question | — |