id = "sequelize" name = "Sequelize CLI" description = "Command line interface for the Sequelize ORM." homepage = "https://sequelize.org" executables = ["sequelize"] [commands] format = 1 label = "Sequelize" description = "Run migrations and generate models. Seeders and project init are left out." quality = "ai-draft" base = "fig:sequelize" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sequelize.ts" license = "MIT" [[commands.subcommand]] path = ["db:migrate"] label = "Run migrations" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sequelize.ts" license = "MIT" [[commands.subcommand.field]] id = "to" label = "Migrate up to" type = "string" option = ["--to"] sources = ["fig"] [[commands.subcommand.field]] id = "from" label = "Start after" type = "string" option = ["--from"] sources = ["fig"] [[commands.subcommand.field]] id = "env" label = "Environment" type = "string" option = ["--env"] sources = ["fig"] [[commands.subcommand.field]] id = "config" label = "Config file" type = "path" option = ["--config"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "migrations_path" label = "Migrations folder" type = "path" option = ["--migrations-path"] path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "url" label = "Connection string" type = "string" option = ["--url"] sources = ["fig"] [[commands.subcommand.field]] id = "debug" label = "Debug output" type = "boolean" option = ["--debug"] sources = ["fig"] [[commands.subcommand.task]] id = "run" label = "Run pending migrations" fields = ["env", "to"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["to", "env"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["from", "url", "debug", "migrations_path", "config"] [[commands.subcommand]] path = ["db:migrate:undo"] label = "Undo last migration" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sequelize.ts" license = "MIT" [[commands.subcommand.field]] id = "env" label = "Environment" type = "string" option = ["--env"] sources = ["fig"] [[commands.subcommand.field]] id = "config" label = "Config file" type = "path" option = ["--config"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "migrations_path" label = "Migrations folder" type = "path" option = ["--migrations-path"] path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "url" label = "Connection string" type = "string" option = ["--url"] sources = ["fig"] [[commands.subcommand.field]] id = "debug" label = "Debug output" type = "boolean" option = ["--debug"] sources = ["fig"] [[commands.subcommand.task]] id = "undo" label = "Undo last migration" fields = ["env"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["env"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["config", "migrations_path", "url", "debug"] [[commands.subcommand]] path = ["model:generate"] label = "Generate a model" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sequelize.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Model name" type = "string" option = ["--name"] sources = ["fig"] [[commands.subcommand.field]] id = "attributes" label = "Attributes" description = "e.g. name:string,age:integer" type = "string" option = ["--attributes"] sources = ["fig"] [[commands.subcommand.field]] id = "force" label = "Overwrite existing" type = "boolean" option = ["--force"] sources = ["fig"] [[commands.subcommand.field]] id = "underscored" label = "snake_case timestamps" type = "boolean" option = ["--underscored"] sources = ["fig"] [[commands.subcommand.field]] id = "env" label = "Environment" type = "string" option = ["--env"] sources = ["fig"] [[commands.subcommand.field]] id = "config" label = "Config file" type = "path" option = ["--config"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "migrations_path" label = "Migrations folder" type = "path" option = ["--migrations-path"] path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "url" label = "Connection string" type = "string" option = ["--url"] sources = ["fig"] [[commands.subcommand.field]] id = "debug" label = "Debug output" type = "boolean" option = ["--debug"] sources = ["fig"] [[commands.subcommand.task]] id = "generate" label = "Generate model" fields = ["name", "attributes"] required = ["name", "attributes"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name", "attributes"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["force", "underscored", "env", "config", "migrations_path", "url", "debug"]