К содержанию
Справочник

Команды 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=VALUEOnly run migrations of this module key—
--no-seedSkip the idempotent seeders (permissions, roles)—

optimize

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

Вызов

php flute optimize [--warm-home]

Опции

ИмяЧто делаетПо умолчанию
--warm-homePrepare 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=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.—

Группа api

api:demo

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

Вызов

php flute api:demo [--html HTML]

Опции

ИмяЧто делаетПо умолчанию
--html=VALUEOutput HTML pathstorage/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=VALUETarget storage disk (defaults to filesystems.backup_disk).—
--no-dbSkip the database dump.—

Группа cache

cache:clear

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

Вызов

php flute cache:clear [--full]

Опции

ИмяЧто делаетПо умолчанию
--fullAlso 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=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

Вызов

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=VALUEComma-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]

Опции

ИмяЧто делаетПо умолчанию
--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

Вызов

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]

Опции

ИмяЧто делаетПо умолчанию
--cleanupRemove original SVG files after compilation.—
--dry-runShow 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).—

Опции

ИмяЧто делаетПо умолчанию
--forceRequired to confirm this destructive reset.—

Группа logs

logs:cleanup

Clean up old log files and archive logs

Вызов

php flute logs:cleanup

logs: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=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).

Вызов

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=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)—

Группа 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=VALUENewest profile whose URL contains this, when no token is given.—
--top=VALUERows per table.20
--rawPrint the raw edge file path too.—

Группа queue

queue:work

Process queued jobs.

Вызов

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

Опции

ИмяЧто делаетПо умолчанию
--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

Группа 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-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.

Вызов

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

Опции

ИмяЧто делаетПо умолчанию
--replaceOverwrite 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-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.

Вызов

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

Аргументы

ИмяЧто делаетПо умолчанию
page (обязательный)Legacy page id, route (/rules) or slug (rules).—

Опции

ИмяЧто делаетПо умолчанию
--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.

Вызов

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

Аргументы

ИмяЧто делаетПо умолчанию
pack (необязательный)Pack key or folder name; omit to check every pack.—

Опции

ИмяЧто делаетПо умолчанию
--installPublish 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-runAccepted and ignored: studio:doctor never writes.—
--problemsPrint 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=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.—

Группа 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-2faAlso turn off two-factor sign-in of the account—

Общие опции

Эти опции принимает любая команда.

ИмяЧто делаетПо умолчанию
-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—

На странице