| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611 |
- {
- "commands": {
- "dump:rcfile": {
- "settings": {},
- "commandPath": "@adonisjs/core/build/commands/DumpRc",
- "commandName": "dump:rcfile",
- "description": "Dump contents of .adonisrc.json file along with defaults",
- "args": [],
- "aliases": [],
- "flags": []
- },
- "list:routes": {
- "settings": {
- "loadApp": true,
- "stayAlive": true
- },
- "commandPath": "@adonisjs/core/build/commands/ListRoutes/index",
- "commandName": "list:routes",
- "description": "List application routes",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "verbose",
- "propertyName": "verbose",
- "type": "boolean",
- "description": "Display more information"
- },
- {
- "name": "reverse",
- "propertyName": "reverse",
- "type": "boolean",
- "alias": "r",
- "description": "Reverse routes display"
- },
- {
- "name": "methods",
- "propertyName": "methodsFilter",
- "type": "array",
- "alias": "m",
- "description": "Filter routes by method"
- },
- {
- "name": "patterns",
- "propertyName": "patternsFilter",
- "type": "array",
- "alias": "p",
- "description": "Filter routes by the route pattern"
- },
- {
- "name": "names",
- "propertyName": "namesFilter",
- "type": "array",
- "alias": "n",
- "description": "Filter routes by route name"
- },
- {
- "name": "json",
- "propertyName": "json",
- "type": "boolean",
- "description": "Output as JSON"
- },
- {
- "name": "table",
- "propertyName": "table",
- "type": "boolean",
- "description": "Output as Table"
- },
- {
- "name": "max-width",
- "propertyName": "maxWidth",
- "type": "number",
- "description": "Specify maximum rendering width. Ignored for JSON Output"
- }
- ]
- },
- "generate:key": {
- "settings": {},
- "commandPath": "@adonisjs/core/build/commands/GenerateKey",
- "commandName": "generate:key",
- "description": "Generate a new APP_KEY secret",
- "args": [],
- "aliases": [],
- "flags": []
- },
- "repl": {
- "settings": {
- "loadApp": true,
- "environment": "repl",
- "stayAlive": true
- },
- "commandPath": "@adonisjs/repl/build/commands/AdonisRepl",
- "commandName": "repl",
- "description": "Start a new REPL session",
- "args": [],
- "aliases": [],
- "flags": []
- },
- "db:seed": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/DbSeed",
- "commandName": "db:seed",
- "description": "Execute database seeders",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection for the seeders",
- "alias": "c"
- },
- {
- "name": "interactive",
- "propertyName": "interactive",
- "type": "boolean",
- "description": "Run seeders in interactive mode",
- "alias": "i"
- },
- {
- "name": "files",
- "propertyName": "files",
- "type": "array",
- "description": "Define a custom set of seeders files names to run",
- "alias": "f"
- },
- {
- "name": "compact-output",
- "propertyName": "compactOutput",
- "type": "boolean",
- "description": "A compact single-line output"
- }
- ]
- },
- "db:wipe": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/DbWipe",
- "commandName": "db:wipe",
- "description": "Drop all tables, views and types in database",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection",
- "alias": "c"
- },
- {
- "name": "drop-views",
- "propertyName": "dropViews",
- "type": "boolean",
- "description": "Drop all views"
- },
- {
- "name": "drop-types",
- "propertyName": "dropTypes",
- "type": "boolean",
- "description": "Drop all custom types (Postgres only)"
- },
- {
- "name": "force",
- "propertyName": "force",
- "type": "boolean",
- "description": "Explicitly force command to run in production"
- }
- ]
- },
- "db:truncate": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/DbTruncate",
- "commandName": "db:truncate",
- "description": "Truncate all tables in database",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection",
- "alias": "c"
- },
- {
- "name": "force",
- "propertyName": "force",
- "type": "boolean",
- "description": "Explicitly force command to run in production"
- }
- ]
- },
- "make:model": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/MakeModel",
- "commandName": "make:model",
- "description": "Make a new Lucid model",
- "args": [
- {
- "type": "string",
- "propertyName": "name",
- "name": "name",
- "required": true,
- "description": "Name of the model class"
- }
- ],
- "aliases": [],
- "flags": [
- {
- "name": "migration",
- "propertyName": "migration",
- "type": "boolean",
- "alias": "m",
- "description": "Generate the migration for the model"
- },
- {
- "name": "controller",
- "propertyName": "controller",
- "type": "boolean",
- "alias": "c",
- "description": "Generate the controller for the model"
- },
- {
- "name": "factory",
- "propertyName": "factory",
- "type": "boolean",
- "alias": "f",
- "description": "Generate a factory for the model"
- }
- ]
- },
- "make:migration": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/MakeMigration",
- "commandName": "make:migration",
- "description": "Make a new migration file",
- "args": [
- {
- "type": "string",
- "propertyName": "name",
- "name": "name",
- "required": true,
- "description": "Name of the migration file"
- }
- ],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "The connection flag is used to lookup the directory for the migration file"
- },
- {
- "name": "folder",
- "propertyName": "folder",
- "type": "string",
- "description": "Pre-select a migration directory"
- },
- {
- "name": "create",
- "propertyName": "create",
- "type": "string",
- "description": "Define the table name for creating a new table"
- },
- {
- "name": "table",
- "propertyName": "table",
- "type": "string",
- "description": "Define the table name for altering an existing table"
- }
- ]
- },
- "make:seeder": {
- "settings": {},
- "commandPath": "@adonisjs/lucid/build/commands/MakeSeeder",
- "commandName": "make:seeder",
- "description": "Make a new Seeder file",
- "args": [
- {
- "type": "string",
- "propertyName": "name",
- "name": "name",
- "required": true,
- "description": "Name of the seeder class"
- }
- ],
- "aliases": [],
- "flags": []
- },
- "make:factory": {
- "settings": {},
- "commandPath": "@adonisjs/lucid/build/commands/MakeFactory",
- "commandName": "make:factory",
- "description": "Make a new factory",
- "args": [
- {
- "type": "string",
- "propertyName": "model",
- "name": "model",
- "required": true,
- "description": "The name of the model"
- }
- ],
- "aliases": [],
- "flags": [
- {
- "name": "model-path",
- "propertyName": "modelPath",
- "type": "string",
- "description": "The path to the model"
- },
- {
- "name": "exact",
- "propertyName": "exact",
- "type": "boolean",
- "description": "Create the factory with the exact name as provided",
- "alias": "e"
- }
- ]
- },
- "migration:run": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/Migration/Run",
- "commandName": "migration:run",
- "description": "Migrate database by running pending migrations",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection",
- "alias": "c"
- },
- {
- "name": "force",
- "propertyName": "force",
- "type": "boolean",
- "description": "Explicitly force to run migrations in production"
- },
- {
- "name": "dry-run",
- "propertyName": "dryRun",
- "type": "boolean",
- "description": "Do not run actual queries. Instead view the SQL output"
- },
- {
- "name": "compact-output",
- "propertyName": "compactOutput",
- "type": "boolean",
- "description": "A compact single-line output"
- },
- {
- "name": "disable-locks",
- "propertyName": "disableLocks",
- "type": "boolean",
- "description": "Disable locks acquired to run migrations safely"
- }
- ]
- },
- "migration:rollback": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/Migration/Rollback",
- "commandName": "migration:rollback",
- "description": "Rollback migrations to a specific batch number",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection",
- "alias": "c"
- },
- {
- "name": "force",
- "propertyName": "force",
- "type": "boolean",
- "description": "Explictly force to run migrations in production"
- },
- {
- "name": "dry-run",
- "propertyName": "dryRun",
- "type": "boolean",
- "description": "Do not run actual queries. Instead view the SQL output"
- },
- {
- "name": "batch",
- "propertyName": "batch",
- "type": "number",
- "description": "Define custom batch number for rollback. Use 0 to rollback to initial state"
- },
- {
- "name": "compact-output",
- "propertyName": "compactOutput",
- "type": "boolean",
- "description": "A compact single-line output"
- },
- {
- "name": "disable-locks",
- "propertyName": "disableLocks",
- "type": "boolean",
- "description": "Disable locks acquired to run migrations safely"
- }
- ]
- },
- "migration:status": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/Migration/Status",
- "commandName": "migration:status",
- "description": "View migrations status",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection",
- "alias": "c"
- }
- ]
- },
- "migration:reset": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/Migration/Reset",
- "commandName": "migration:reset",
- "description": "Rollback all migrations",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection",
- "alias": "c"
- },
- {
- "name": "force",
- "propertyName": "force",
- "type": "boolean",
- "description": "Explicitly force command to run in production"
- },
- {
- "name": "dry-run",
- "propertyName": "dryRun",
- "type": "boolean",
- "description": "Do not run actual queries. Instead view the SQL output"
- },
- {
- "name": "disable-locks",
- "propertyName": "disableLocks",
- "type": "boolean",
- "description": "Disable locks acquired to run migrations safely"
- }
- ]
- },
- "migration:refresh": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/Migration/Refresh",
- "commandName": "migration:refresh",
- "description": "Rollback and migrate database",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection",
- "alias": "c"
- },
- {
- "name": "force",
- "propertyName": "force",
- "type": "boolean",
- "description": "Explicitly force command to run in production"
- },
- {
- "name": "dry-run",
- "propertyName": "dryRun",
- "type": "boolean",
- "description": "Do not run actual queries. Instead view the SQL output"
- },
- {
- "name": "seed",
- "propertyName": "seed",
- "type": "boolean",
- "description": "Run seeders"
- },
- {
- "name": "disable-locks",
- "propertyName": "disableLocks",
- "type": "boolean",
- "description": "Disable locks acquired to run migrations safely"
- }
- ]
- },
- "migration:fresh": {
- "settings": {
- "loadApp": true
- },
- "commandPath": "@adonisjs/lucid/build/commands/Migration/Fresh",
- "commandName": "migration:fresh",
- "description": "Drop all tables and re-migrate the database",
- "args": [],
- "aliases": [],
- "flags": [
- {
- "name": "connection",
- "propertyName": "connection",
- "type": "string",
- "description": "Define a custom database connection",
- "alias": "c"
- },
- {
- "name": "force",
- "propertyName": "force",
- "type": "boolean",
- "description": "Explicitly force command to run in production"
- },
- {
- "name": "seed",
- "propertyName": "seed",
- "type": "boolean",
- "description": "Run seeders"
- },
- {
- "name": "drop-views",
- "propertyName": "dropViews",
- "type": "boolean",
- "description": "Drop all views"
- },
- {
- "name": "drop-types",
- "propertyName": "dropTypes",
- "type": "boolean",
- "description": "Drop all custom types (Postgres only)"
- },
- {
- "name": "disable-locks",
- "propertyName": "disableLocks",
- "type": "boolean",
- "description": "Disable locks acquired to run migrations safely"
- }
- ]
- },
- "make:policy": {
- "settings": {},
- "commandPath": "@adonisjs/bouncer/build/commands/MakePolicy",
- "commandName": "make:policy",
- "description": "Make a new bouncer policy",
- "args": [
- {
- "type": "string",
- "propertyName": "name",
- "name": "name",
- "required": true,
- "description": "Name of the policy to create"
- }
- ],
- "aliases": [],
- "flags": [
- {
- "name": "resource-model",
- "propertyName": "resourceModel",
- "type": "string",
- "description": "Name of the resource model to authorize"
- },
- {
- "name": "user-model",
- "propertyName": "userModel",
- "type": "string",
- "description": "Name of the user model to be authorized"
- },
- {
- "name": "actions",
- "propertyName": "actions",
- "type": "array",
- "description": "Actions to implement"
- }
- ]
- }
- },
- "aliases": {}
- }
|