id = "pocketbase" name = "PocketBase" description = "Open source backend in a single executable with an embedded database, auth and a REST API." homepage = "https://pocketbase.io" executables = ["pocketbase"] [commands] format = 1 label = "PocketBase" description = "Start the PocketBase web server. Migration subcommands are not covered." quality = "ai-draft" base = "fig:pocketbase" 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/pocketbase.ts" license = "MIT" [[commands.field]] id = "dir" label = "Data directory" description = "Default is pb_data." type = "path" option = ["--dir"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.field]] id = "debug" label = "Debug logs" type = "boolean" option = ["--debug"] sources = ["fig"] [[commands.group]] id = "basic" label = "Basic" fields = ["dir", "debug"] [[commands.subcommand]] path = ["serve"] label = "Start server" description = "Start the web server (default 127.0.0.1:8090)." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/pocketbase.ts" license = "MIT" [[commands.subcommand.field]] id = "http" label = "HTTP address" type = "string" option = ["--http"] sources = ["fig"] [[commands.subcommand.field]] id = "https" label = "HTTPS address" type = "string" option = ["--https"] sources = ["fig"] [[commands.subcommand.field]] id = "origins" label = "CORS origins" type = "string" option = ["--origins"] sources = ["fig"] [[commands.subcommand.task]] id = "serve" label = "Serve" fields = ["http", "https", "origins"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["http", "https", "origins"]