def help_text

cswap-bend-cli@0.1.0.0 · exec.bend:21

import cswap-bend-cli@0.1.0.0/exec.bend as Exec
import Base

21def help_text() -> String:
22  "usage: cswap <command> [args] [options]\n\nMulti-Account Switcher for Claude Code\n\nCommands:\n"
23    ++ "  cswap help                       show this help\n"
24    ++ "  cswap list                       list managed accounts\n"
25    ++ "  cswap status                     show current account\n"
26    ++ "  cswap switch                     rotate to the next account\n"
27    ++ "  cswap switch <num|email>         switch to a specific account\n"
28    ++ "  cswap add                        add the current account\n"
29    ++ "  cswap add-token [TOKEN|-]        register a setup-token or API key\n"
30    ++ "  cswap remove <num|email>         remove an account\n"
31    ++ "  cswap auto                       auto-switch when nearing rate limits\n"
32    ++ "  cswap config [set KEY VALUE]     show or change settings (settings.json)\n"
33    ++ "  cswap profile [list|show|use|set|remove]  behaviour profiles (strategy, threshold, models, cooldown, interval)\n"
34    ++ "  cswap import-usage <path>        adopt usage another machine read (list --json)\n"
35    ++ "  cswap config export              the whole settings.json (profiles included); --format json|yaml|toon|csv\n"
36    ++ "  cswap config import FILE|-       merge a settings file in (.json .yaml .yml .toon, .csv as key,value rows)\n"
37    ++ "  cswap profile export [NAME]      the profiles (or one) as a document\n"
38    ++ "  cswap profile import FILE|-      merge profiles in\n"
39    ++ "  cswap rpc                        one request per line on stdin, one response per line on stdout (docs/API.md)\n"
40    ++ "  cswap serve --socket PATH        the same protocol on a unix socket (mode 0600)\n"
41    ++ "  cswap tui                        read-only dashboard, redrawn every 2 s until killed (--once, --interval N)\n"
42    ++ "  cswap watch                      same dashboard as tui (periodic refresh, no key bindings)\n"
43    ++ "  cswap menubar                    not supported in cswap-bend (exit 2); use cswap tui\n"
44    ++ "  cswap upgrade                    show how to upgrade this build (rebuild from the repo)\n\n"
45    ++ "Aliases: ls=list  rm=remove  update=upgrade\n\n"
46    ++ "options:\n"
47    ++ "  -h, --help            show this help message and exit\n"
48    ++ "  --version             show program's version number and exit\n"
49    ++ "  --debug               Enable debug logging\n"
50    ++ "  --json                Emit machine-readable JSON to stdout (use with 'list', 'status', or 'switch').\n"
51    ++ "  --format FORMAT       text (default), json (same as --json), csv, yaml or toon, for list, status, switch,\n"
52    ++ "                        config, profile, import-usage and the 'auto' event stream\n"
53    ++ "  --no-input            Never read standard input; a prompt becomes an error\n"
54    ++ "  --yes                 Answer the 'remove' confirmation\n"
55    ++ "  --slot NUM            Specify slot number when adding account (use with 'add' or 'add-token')\n"
56    ++ "  --email EMAIL         Email address for the account. Optional with 'add-token'; defaults to\n"
57    ++ "                        setup-token-{slot}@token.local (or api-key-{slot}@token.local for API keys)\n"
58    ++ "  --alias NAME          Set a short display alias for the account (use with 'add')\n"
59    ++ "  --hold SECONDS        With 'import-usage': keep this machine from fetching the imported accounts\n"
60    ++ "                        for this many seconds (0 lifts an earlier hold)\n\n"
61    ++ "Flags combine with subcommands:\n"
62    ++ "  cswap list --json\n"
63    ++ "  cswap import-usage usage.json --hold 600  # adopt another machine's list --json\n"
64    ++ "  cswap add --slot 3                        # add to a specific slot\n"
65    ++ "  cswap add-token sk-ant-oat01-... --email me@example.com\n"
66    ++ "  cswap config set autoswitch.threshold 80\n"

Uses (2)

Used by (1)