From 790267c330bd4d6adb92eee31dca90b160f836d1 Mon Sep 17 00:00:00 2001 From: Raj Nakarja Date: Wed, 28 Oct 2026 10:43:35 +0100 Subject: [PATCH] Read CLI commands from superstack help instead of the docs The docs CLI page now copies the CLI's own help, so the skill reads the installed version's help directly and the generated cli.md reference goes. --- .../superstack/skills/superstack-cli/SKILL.md | 7 +- .../skills/superstack-cli/references/cli.md | 71 ------------------- scripts/generate-references.py | 2 - 3 files changed, 3 insertions(+), 77 deletions(-) delete mode 100644 plugins/superstack/skills/superstack-cli/references/cli.md diff --git a/plugins/superstack/skills/superstack-cli/SKILL.md b/plugins/superstack/skills/superstack-cli/SKILL.md index e8f995e..333ffdf 100644 --- a/plugins/superstack/skills/superstack-cli/SKILL.md +++ b/plugins/superstack/skills/superstack-cli/SKILL.md @@ -202,11 +202,10 @@ The user's software reaches a device with a fleet key over plain HTTPS. 4. The device receives the message at its next check-in, through `network.assign_message_event` in its Lua (see the `s2-lua` skill). -Full reference: [references/api.md](references/api.md). Command reference: -[references/cli.md](references/cli.md). +Full reference: [references/api.md](references/api.md). -Don't invent endpoints, webhooks or a WebSocket API. Use only what the -references document. +Don't invent commands, endpoints, webhooks or a WebSocket API. Use only what +`superstack help` and the references document. ## Checklist diff --git a/plugins/superstack/skills/superstack-cli/references/cli.md b/plugins/superstack/skills/superstack-cli/references/cli.md deleted file mode 100644 index 1718f28..0000000 --- a/plugins/superstack/skills/superstack-cli/references/cli.md +++ /dev/null @@ -1,71 +0,0 @@ - - -# Superstack CLI reference - ---- - -`superstack` is the command line interface to Superstack. It logs you in, pairs S2 Modules with fleets, uploads Lua to them, streams their logs and manages credit. It is a single static binary. - ---- - -## Commands - -`superstack help` prints every command. `superstack help ` prints the help for one command. - -``` -superstack 0.0.4 - -Usage: superstack [arguments] - -Getting started - login Log in with the selected provider - logout Log out of your account - -Fleets - fleet create Create a fleet - fleet list [--json] List the fleets you can reach - fleet rename Rename a fleet - fleet transfer Hand a fleet to a new owner - fleet delete Delete a fleet and unpair its devices - -Devices - device pair [name] Pair a device with a fleet - device list [fleet_id] [--json] List devices and when they were last seen - device rename Rename a device - device unpair Remove a device from its fleet - device start Start the code on a device - device stop Stop the code on a device - device restart Restart the code on a device - -Files - upload ... Upload files or directories to a device or fleet - download Download the code last uploaded to a device into - dev ... [--log-file ] Upload on every change, and tail - -Logs - tail [-n num] [--log-file ] Stream a device or fleet's log as it arrives - -People - member add Add a member to a fleet - member list [--json] List a fleet's owner and members - member remove Remove a member from a fleet - -Keys - key create