Команды CLI
Все консольные команды ядра Flute: аргументы, опции и значения по умолчанию.
Справочник собран из php flute list --format=json версии 2.0.0. Описания команд и опций даны так, как их печатает сама консоль, по-английски.
Команды запускаются из каталога сайта:
php flute list
php flute help migrateВ Docker-стеке команда идёт внутри контейнера php:
docker compose exec php php flute cache:clearМодули добавляют свои команды. На сайте с установленными модулями php flute list покажет больше, чем эта страница.
Без группы
migrate
Applies pending database migrations (core + installed modules) and syncs seed data.
Вызов
php flute migrate [--module MODULE] [--no-seed]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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.
Вызов
php flute optimize [--warm-home]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--warm-home | Prepare the anonymous homepage at the configured URL in performance mode. | — |
serve
Run the local development server.
Вызов
php flute serve [--host HOST] [--port PORT] [--watch] [--worker] [--workers WORKERS] [--no-jobs]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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. | — |
Группа api
api:demo
Run every API feature end-to-end and write an HTML report.
Вызов
php flute api:demo [--html HTML]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--html=VALUE | Output HTML path | storage/app/api-demo.html |
Группа backup
backup:create
Create an offsite backup bundle (manifest, DB dump, config and private files) on the configured storage disk.
Вызов
php flute backup:create [--disk DISK] [--no-db]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--disk=VALUE | Target storage disk (defaults to filesystems.backup_disk). | — |
--no-db | Skip the database dump. | — |
Группа cache
cache:clear
Clears application cache (with SWR rotation) and asset caches.
Вызов
php flute cache:clear [--full]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--full | Also clears logs and proxies (may be expensive under load). | — |
cache:prune
Prunes expired cache entries from both main and stale caches.
Вызов
php flute cache:prune [--lock-age LOCK-AGE] [--sweep-orphans]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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
Вызов
php flute cache:warmupГруппа cron
cron:run
Runs all due scheduled tasks
Вызов
php flute cron:runГруппа db
db:seed
Runs the idempotent core seeders (permission catalog, default roles).
Вызов
php flute db:seedГруппа demo
demo:seed
Fills the site and every active extension with sample data for development.
Вызов
php flute demo:seed [--only ONLY]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--only=VALUE | Comma-separated module keys to seed | — |
Группа generate
generate:migration
Generates a real schema-diff migration (up/down) from entity attributes vs the database.
Вызов
php flute generate:migration [--global] [--module MODULE]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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
Вызов
php flute generate:store-typesГруппа i18n
i18n:sync
Downloads approved community translations for the site languages.
Вызов
php flute i18n:syncГруппа icons
icons:compile
Compiles SVG icons into indexed binary map files.
Вызов
php flute icons:compile [--cleanup] [--dry-run]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--cleanup | Remove original SVG files after compilation. | — |
--dry-run | Show what would be done without writing files. | — |
Группа install
install:reset
Resets installation markers so the installer can run again.
Вызов
php flute install:reset [--force] [--] <site-name>Аргументы
| Имя | Что делает | По умолчанию |
|---|---|---|
site-name (обязательный) | Confirmation: must equal the configured site name (config app.name). | — |
Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--force | Required to confirm this destructive reset. | — |
Группа logs
logs:cleanup
Clean up old log files and archive logs
Вызов
php flute logs:cleanuplogs:clear
Clears the logs in storage/logs.
Вызов
php flute logs:clearГруппа migrate
migrate:rollback
Rolls back the last executed migration(s).
Вызов
php flute migrate:rollback [--steps STEPS] [--module MODULE] [--force]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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).
Вызов
php flute migrate:statusГруппа oauth
oauth:client
Register an OAuth2/OIDC client (Login with your site).
Вызов
php flute oauth:client [--name NAME] [--redirect REDIRECT] [--scope SCOPE] [--grants GRANTS] [--public]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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) | — |
Группа optimize
optimize:clear
Remove precompiled production artifacts.
Вызов
php flute optimize:clearГруппа payments
payments:encrypt-gateways
Encrypts payment gateway credentials that are still stored as plaintext JSON.
Вызов
php flute payments:encrypt-gatewaysГруппа players
players:backfill
Creates a Player (+ identity type=user) for every site account that has none. Idempotent.
Вызов
php flute players:backfillГруппа profile
profile:stack
Report a stored call-graph profile; pass two tokens for a cold/warm diff.
Вызов
php flute profile:stack [--url URL] [--top TOP] [--raw] [--] [<token>...]Аргументы
| Имя | Что делает | По умолчанию |
|---|---|---|
token (необязательный) | One profile token, or two (cold warm) for a diff. | — |
Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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. | — |
Группа queue
queue:work
Process queued jobs.
Вызов
php flute queue:work [--once] [--sleep SLEEP] [--max-time MAX-TIME]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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 |
Группа route
route:detail
Displays detailed information about a specified route
Вызов
php flute route:detail <path>Аргументы
| Имя | Что делает | По умолчанию |
|---|---|---|
path (обязательный) | Route path (URI) | — |
route:list
Displays a list of all registered routes
Вызов
php flute route:listГруппа 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.
Вызов
php flute sections:migrate-legacy-pages [--dry-run] [--write] [--rollback ROLLBACK] [--page PAGE]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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.
Вызов
php flute sections:seed-home [--replace]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--replace | Overwrite an existing home page with the starter content and publish it | — |
Группа studio
studio:adopt-home
Give the home document the slug "home" and publish it, so "/" is served by Studio. Dry-run by default.
Вызов
php flute studio:adopt-home [--dry-run] [--write] [--force] [--page PAGE]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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.
Вызов
php flute studio:adopt-page [--dry-run] [--write] [--] <page>Аргументы
| Имя | Что делает | По умолчанию |
|---|---|---|
page (обязательный) | Legacy page id, route (/rules) or slug (rules). | — |
Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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.
Вызов
php flute studio:check-pack [--install] [--] [<pack>]Аргументы
| Имя | Что делает | По умолчанию |
|---|---|---|
pack (необязательный) | Pack key or folder name; omit to check every pack. | — |
Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--install | Publish assets and fonts when the pack passes. | — |
studio:doctor
Show which pages Studio actually renders and why the others do not.
Вызов
php flute studio:doctor [--dry-run] [--problems]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--dry-run | Accepted and ignored: studio:doctor never writes. | — |
--problems | Print only the pages that do not render. | — |
Группа template
template:clear
Clears the template cache.
Вызов
php flute template:clearГруппа update
update:core
Update the engine, restore a version an update kept, or drive the update in progress.
Вызов
php flute update:core [--feed FEED] [--to TO] [--restore RESTORE] [--skip-dump] [--cancel] [--step] [--retry-rollback] [--continue]Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--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. | — |
Группа user
user:password
Sets a new password for a user and signs the account out everywhere.
Вызов
php flute user:password [--no-2fa] [--] <user>Аргументы
| Имя | Что делает | По умолчанию |
|---|---|---|
user (обязательный) | Login, e-mail or id of the user | — |
Опции
| Имя | Что делает | По умолчанию |
|---|---|---|
--no-2fa | Also turn off two-factor sign-in of the account | — |
Общие опции
Эти опции принимает любая команда.
| Имя | Что делает | По умолчанию |
|---|---|---|
-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 | — |