@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
3 lines • 2.77 kB
JavaScript
import{version as e}from"../../packages/core/package.mjs";import t from"./commands/migrate.mjs";import n from"./commands/build.mjs";import r from"./commands/cron.mjs";import i from"./commands/dev.mjs";import a from"./commands/migrate-reset.mjs";import o from"./commands/migrate-fresh.mjs";import s from"./commands/migrate-new.mjs";import c from"./commands/migrate-rollback.mjs";import l from"./commands/migrate-status.mjs";import u from"./commands/serve.mjs";import d from"./commands/sync.mjs";import f from"./commands/typegen.mjs";import{Command as p}from"commander";const m=new p,h=`Use remote runtime resources when supported`;m.name(`lucidcms`).description(`Lucid CMS CLI`).version(e),m.command(`dev`).description(`Start development server`).option(`-w, --watch [path]`,`Watch for file changes (optionally specify path to watch)`).option(`--remote`,h).action(i),m.command(`serve`).description(`Serve the application`).option(`--remote`,h).action(u),m.command(`build`).description(`Build for production`).option(`--cache-spa`,`Skip clearing SPA build output during clean. The SPA will only be rebuilt when changes are detected.`).option(`--silent`,`Suppress all logging output`).option(`--remote`,h).action(n),m.command(`typegen`).description(`Generate Lucid type files`).option(`--remote`,h).action(f),m.command(`migrate`).description(`Run database migrations (also runs sync as a side effect)`).option(`-y, --yes`,`Accept warning-level migrations without prompting`).option(`--allow-destructive`,`Run destructive collection migrations without prompting. Existing data may be permanently lost.`).option(`--remote`,h).action(t({mode:`process`})),m.command(`sync`).description(`Run sync`).option(`--remote`,h).action(d),m.command(`migrate:status`).description(`Show pending migrations and migration history health`).option(`--check`,`Exit with a non-zero code when migrations are pending or history is unhealthy`).option(`--remote`,h).action(l),m.command(`migrate:rollback`).description(`Rollback the last database migration`).option(`-s, --steps <number>`,`Number of migrations to rollback`,`1`).option(`-f, --force`,`Skip confirmation prompt`).option(`--remote`,h).action(c),m.command(`migrate:reset`).description(`Drop all database tables`).option(`-f, --force`,`Skip confirmation prompt`).option(`--remote`,h).action(a({mode:`process`})),m.command(`migrate:new <name>`).description(`Create a new timestamped migration file`).action(s),m.command(`migrate:fresh`).description(`Drop all tables and re-run all migrations`).option(`-f, --force`,`Skip confirmation prompt`).option(`--remote`,h).action(o),m.command(`cron [job]`).description(`Run a cron job manually`).option(`--remote`,h).action(r),m.parse();export{};
//# sourceMappingURL=index.mjs.map