id = "mikro-orm" name = "MikroORM" description = "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns." homepage = "https://mikro-orm.io" executables = ["mikro-orm"] [commands] format = 1 label = "MikroORM CLI" description = "Create migrations and update the schema. Entity generation, seeders and cache commands are left out." quality = "ai-draft" base = "fig:mikro-orm" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/mikro-orm.ts" license = "MIT" [[commands.subcommand]] path = ["migration:create"] label = "Create a migration" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/mikro-orm.ts" license = "MIT" [[commands.subcommand.field]] id = "blank" label = "Blank migration" type = "boolean" option = ["--blank", "-b"] sources = ["fig"] [[commands.subcommand.field]] id = "initial" label = "Initial migration" type = "boolean" option = ["--initial", "-i"] sources = ["fig"] [[commands.subcommand.field]] id = "dump" label = "Dump queries" type = "boolean" option = ["--dump", "-d"] sources = ["fig"] [[commands.subcommand.task]] id = "create" label = "Create from schema diff" fields = ["blank", "initial", "dump"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["blank", "initial", "dump"] [[commands.subcommand]] path = ["schema:update"] label = "Update the schema" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/mikro-orm.ts" license = "MIT" [[commands.subcommand.field]] id = "dump" label = "Dump queries" type = "boolean" option = ["--dump", "-d"] sources = ["fig"] [[commands.subcommand.field]] id = "run" label = "Run queries" type = "boolean" option = ["--run", "-r"] effect = "exec" sources = ["fig"] [[commands.subcommand.field]] id = "safe" label = "Safe" description = "Disable table and column dropping." type = "boolean" option = ["--safe"] sources = ["fig"] [[commands.subcommand.task]] id = "preview" label = "Preview SQL" set = { dump = [true] } lock = ["dump"] fields = ["dump", "safe"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["dump", "run", "safe"]