id = "enapter" name = "Enapter CLI" description = "Cross-platform device management command-line tool for the Enapter Energy Management System Toolkit." executables = ["enapter"] [commands] format = 1 label = "Enapter" description = "Upload a blueprint to a device or run a device command. Logs, rules and other subcommands are left out." quality = "ai-draft" base = "fig:enapter" 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/enapter.ts" license = "MIT" [[commands.subcommand]] path = ["devices", "upload"] label = "Upload blueprint" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/enapter.ts" license = "MIT" [[commands.subcommand.field]] id = "hardware_id" label = "Hardware ID (UCM ID)" description = "Can be obtained in cloud.enapter.com." type = "string" option = ["--hardware-id"] sources = ["fig"] [[commands.subcommand.field]] id = "blueprint_dir" label = "Blueprint directory" type = "path" option = ["--blueprint-dir"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.subcommand.task]] id = "upload" label = "Upload blueprint" fields = ["hardware_id", "blueprint_dir"] required = ["hardware_id", "blueprint_dir"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["hardware_id", "blueprint_dir"] [[commands.subcommand]] path = ["devices", "execute"] label = "Execute device command" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/enapter.ts" license = "MIT" [[commands.subcommand.field]] id = "hardware_id" label = "Hardware ID (UCM ID)" description = "Can be obtained in cloud.enapter.com." type = "string" option = ["--hardware-id"] sources = ["fig"] [[commands.subcommand.field]] id = "command" label = "Command name" type = "string" option = ["--command"] sources = ["fig"] [[commands.subcommand.field]] id = "arguments" label = "Arguments (JSON object)" type = "string" option = ["--arguments"] sources = ["fig"] [[commands.subcommand.field]] id = "show_progress" label = "Stream in-progress responses" type = "boolean" option = ["--show-progress"] sources = ["fig"] [[commands.subcommand.task]] id = "execute" label = "Execute command" fields = ["hardware_id", "command", "arguments", "show_progress"] required = ["hardware_id", "command"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["hardware_id", "command", "arguments", "show_progress"]