| index 1cc1f793f..8fefd6e7e 100644 |
| --- a/testdata/clireg-golden.jsonl |
| +++ b/testdata/clireg-golden.jsonl |
| @@ -68,8 +68,8 @@ |
| {"case":"apps region | -h","argv":["apps","region","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps region --app <name> [--set <region>] [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app whose region to show or change\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --set <string> the region where this app's new instances start. existing instances stay where they are. only account owners and deployment operators can change it\n"} |
| {"case":"apps restore | --zz-unknown-flag","argv":["apps","restore","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps restore [flags]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --console <string> console origin to restore through (signed-in mode only; default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| {"case":"apps restore | -h","argv":["apps","restore","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps restore [flags]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --console <string> console origin to restore through (signed-in mode only; default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"apps set | --zz-unknown-flag","argv":["apps","set","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps set <app> [--copies <n>] [--swap overlap|hold] [--swap-concurrency <n>] [--interactive on|off] [--account <sqid|name>] [--account-id <sqid>] [--console <origin>] [--egress-allow <ip,...>] [--size <size>]\n\n --swap overlap|hold how a running instance takes a new build. overlap\n starts the new build beside the old one and switches\n once it answers its health check, so no request\n waits. hold stops the old one first, and requests\n wait until the new one is up. Use hold when two\n builds cannot share the database.\n --swap-concurrency <n> how many instances of the app may swap at once on\n one box, after the first has stayed up for ten\n seconds. 1 or more; it starts at 1.\n\nAny member of the app may change these. They reach the app's boxes with its\nconfig, within seconds.\n\n --interactive on|off whether members may open a terminal session on the app's instances, with carlos run -it or carlos console. it is off until an owner turns it on. a session can read and change everything the instance can\n\n carlos apps set <app> [--instance-control <settings>] [--default-updates auto|manual] [--default-channel <channel>] [--default-major <n>]\n\n --instance-control <settings> the settings an instance may change itself:\n any of updates, channel, major and pin,\n comma-separated. Empty keeps them all for\n the app.\n --default-updates auto|manual what instances do when they have not\n chosen. Empty restores auto.\n --default-channel <channel> the channel new instances follow.\n --default-major <n> hold instances on stable at this major\n version. Empty clears it.\n\nOnly system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose swap or instance policy to set\n --console <string> console to act through (default: the only logged-in one)\n --copies <int> number of copies for each instance on different boxes in the app's fleet (default 1)\n --default-channel <string> the channel new instances follow\n --default-major <string> hold instances on stable at this major version; empty clears\n --default-updates <string> auto or manual: what instances do when they have not chosen; empty restores auto\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --egress-allow <string> private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only\n --instance-control <string> settings an instance may change itself: any of updates, channel, major, pin, comma-separated; empty keeps them all for the app\n --interactive <string> on or off: whether members may open terminal sessions on the app's instances\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n --size <string> the size the app's instances run at: small, standard, large or xlarge. default uses the build's size. system operators only\n --swap <string> overlap or hold: how a running instance takes a new build\n --swap-concurrency <int> how many instances of the app may swap at once on one box (1 or more)\n"} |
| -{"case":"apps set | -h","argv":["apps","set","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps set <app> [--copies <n>] [--swap overlap|hold] [--swap-concurrency <n>] [--interactive on|off] [--account <sqid|name>] [--account-id <sqid>] [--console <origin>] [--egress-allow <ip,...>] [--size <size>]\n\n --swap overlap|hold how a running instance takes a new build. overlap\n starts the new build beside the old one and switches\n once it answers its health check, so no request\n waits. hold stops the old one first, and requests\n wait until the new one is up. Use hold when two\n builds cannot share the database.\n --swap-concurrency <n> how many instances of the app may swap at once on\n one box, after the first has stayed up for ten\n seconds. 1 or more; it starts at 1.\n\nAny member of the app may change these. They reach the app's boxes with its\nconfig, within seconds.\n\n --interactive on|off whether members may open a terminal session on the app's instances, with carlos run -it or carlos console. it is off until an owner turns it on. a session can read and change everything the instance can\n\n carlos apps set <app> [--instance-control <settings>] [--default-updates auto|manual] [--default-channel <channel>] [--default-major <n>]\n\n --instance-control <settings> the settings an instance may change itself:\n any of updates, channel, major and pin,\n comma-separated. Empty keeps them all for\n the app.\n --default-updates auto|manual what instances do when they have not\n chosen. Empty restores auto.\n --default-channel <channel> the channel new instances follow.\n --default-major <n> hold instances on stable at this major\n version. Empty clears it.\n\nOnly system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose swap or instance policy to set\n --console <string> console to act through (default: the only logged-in one)\n --copies <int> number of copies for each instance on different boxes in the app's fleet (default 1)\n --default-channel <string> the channel new instances follow\n --default-major <string> hold instances on stable at this major version; empty clears\n --default-updates <string> auto or manual: what instances do when they have not chosen; empty restores auto\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --egress-allow <string> private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only\n --instance-control <string> settings an instance may change itself: any of updates, channel, major, pin, comma-separated; empty keeps them all for the app\n --interactive <string> on or off: whether members may open terminal sessions on the app's instances\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n --size <string> the size the app's instances run at: small, standard, large or xlarge. default uses the build's size. system operators only\n --swap <string> overlap or hold: how a running instance takes a new build\n --swap-concurrency <int> how many instances of the app may swap at once on one box (1 or more)\n"} |
| +{"case":"apps set | --zz-unknown-flag","argv":["apps","set","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps set <app> [--copies <n>] [--swap overlap|hold] [--swap-concurrency <n>] [--interactive on|off] [--account <sqid|name>] [--account-id <sqid>] [--console <origin>] [--egress-allow <ip,...>] [--size <size>]\n\n --swap overlap|hold how a running instance takes a new build. overlap\n starts the new build beside the old one and switches\n once it answers its health check, so no request\n waits. hold stops the old one first, and requests\n wait until the new one is up. Use hold when two\n builds cannot share the database.\n --swap-concurrency <n> how many instances of the app may swap at once on\n one box, after the first has stayed up for ten\n seconds. 1 or more; it starts at 1.\n\nAny member of the app may change these. They reach the app's boxes with its\nconfig, within seconds.\n\n --interactive on|off whether members may open a terminal session on the app's instances, with carlos run -it or carlos console. it is off until an owner turns it on. a session can read and change everything the instance can\n\n carlos apps set <app> [--instance-control <settings>] [--default-updates auto|manual] [--default-channel <channel>] [--default-major <n>]\n\n --instance-control <settings> the settings an instance may change itself:\n any of updates, channel, major and pin,\n comma-separated. Empty keeps them all for\n the app.\n --default-updates auto|manual what instances do when they have not\n chosen. Empty restores auto.\n --default-channel <channel> the channel new instances follow.\n --default-major <n> hold instances on stable at this major\n version. Empty clears it.\n\nOnly system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose swap or instance policy to set\n --console <string> console to act through (default: the only logged-in one)\n --copies <int> number of copies for each instance on different boxes in the app's fleet (default 1)\n --default-channel <string> the channel new instances follow\n --default-major <string> hold instances on stable at this major version; empty clears\n --default-updates <string> auto or manual: what instances do when they have not chosen; empty restores auto\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --egress-allow <string> private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only\n --instance-control <string> settings an instance may change itself: any of updates, channel, major, pin, comma-separated; empty keeps them all for the app\n --interactive <string> on or off: whether members may open terminal sessions on the app's instances\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n --size <string> the size the app's instances run at: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default uses the build's size. system operators only\n --swap <string> overlap or hold: how a running instance takes a new build\n --swap-concurrency <int> how many instances of the app may swap at once on one box (1 or more)\n"} |
| +{"case":"apps set | -h","argv":["apps","set","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps set <app> [--copies <n>] [--swap overlap|hold] [--swap-concurrency <n>] [--interactive on|off] [--account <sqid|name>] [--account-id <sqid>] [--console <origin>] [--egress-allow <ip,...>] [--size <size>]\n\n --swap overlap|hold how a running instance takes a new build. overlap\n starts the new build beside the old one and switches\n once it answers its health check, so no request\n waits. hold stops the old one first, and requests\n wait until the new one is up. Use hold when two\n builds cannot share the database.\n --swap-concurrency <n> how many instances of the app may swap at once on\n one box, after the first has stayed up for ten\n seconds. 1 or more; it starts at 1.\n\nAny member of the app may change these. They reach the app's boxes with its\nconfig, within seconds.\n\n --interactive on|off whether members may open a terminal session on the app's instances, with carlos run -it or carlos console. it is off until an owner turns it on. a session can read and change everything the instance can\n\n carlos apps set <app> [--instance-control <settings>] [--default-updates auto|manual] [--default-channel <channel>] [--default-major <n>]\n\n --instance-control <settings> the settings an instance may change itself:\n any of updates, channel, major and pin,\n comma-separated. Empty keeps them all for\n the app.\n --default-updates auto|manual what instances do when they have not\n chosen. Empty restores auto.\n --default-channel <channel> the channel new instances follow.\n --default-major <n> hold instances on stable at this major\n version. Empty clears it.\n\nOnly system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose swap or instance policy to set\n --console <string> console to act through (default: the only logged-in one)\n --copies <int> number of copies for each instance on different boxes in the app's fleet (default 1)\n --default-channel <string> the channel new instances follow\n --default-major <string> hold instances on stable at this major version; empty clears\n --default-updates <string> auto or manual: what instances do when they have not chosen; empty restores auto\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --egress-allow <string> private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only\n --instance-control <string> settings an instance may change itself: any of updates, channel, major, pin, comma-separated; empty keeps them all for the app\n --interactive <string> on or off: whether members may open terminal sessions on the app's instances\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n --size <string> the size the app's instances run at: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default uses the build's size. system operators only\n --swap <string> overlap or hold: how a running instance takes a new build\n --swap-concurrency <int> how many instances of the app may swap at once on one box (1 or more)\n"} |
| {"case":"apps show | --zz-unknown-flag","argv":["apps","show","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps show <app> [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n"} |
| {"case":"apps show | -h","argv":["apps","show","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps show <app> [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n"} |
| {"case":"apps source delete | extra","argv":["apps","source","delete"],"exit":1,"stdout":"","stderr":"carlos apps source pull --app <app> [--account <name-or-sqid> | --account-id <sqid>] --console <origin> [--output <path>]\n"} |
| @@ -465,8 +465,8 @@ |
| {"case":"instances list | -h","argv":["instances","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances create --app <a> --host <h> [--region <r>] [--channel <c>]\n [--kind instance|service|static] [--environment <e>] [--scope <s>]\n [--addr <a:p,...>] [--health-path <p>] [--health-status <n>]\n carlos instances list --app <a> [--match <substr>] [--health <slug>]\n carlos instances delete --app <a> --host <h>\n carlos instances set-upstreams --app <a> --host <h> [--addrs <a:p,...>]\n [--health-path <p>] [--health-status <n>]\n carlos instances set-channel --app <a> --host <h> --channel <c>\n carlos instances set-environment --app <a> --host <h> --environment <e> [--scope <s>]\n carlos instances set-assets --app <a> <host> on|off\n carlos instances set-pages --app <a> <host> on|off\n carlos instances retry --app <a> <host>\n carlos instances label --app <a> <host> [--box <b>] [--dry-run]\n carlos instances set --app <a> <host> [--updates auto|manual]\n [--channel <c>] [--major <n>] [--pin <build>]\n carlos instances update --app <a> <host> [--fast-track]\n\nSigned-in only (carlos auth login): instance records are console-authorized\nwrites — the console checks the host against the app's manifest and the\nbox's reconcile pass materializes the route.\n\ncreate stamps a channel on the record, and prints the one it chose. Named\nwith --channel it is yours; omitted, it is the app's own enable channel, else\nthe channel this app's other instances already follow, else its pipeline\nentry — where \"carlos deploy\" lands, so a brand-new app's first instance is\ndeployable without a passkey. Instances that follow SEVERAL channels are\nrefused rather than guessed at: pass --channel.\n\nset-channel moves ONE route onto a different release channel. The channel\nlives in the instance record, which the box converges the route from every\npass — so this is the verb that changes it, not \"carlos route --channel\",\nwhich edits a row the next reconcile overwrites. A move that the app's\npipeline gates is proposed and finished in the console, like a promote.\n\nretry clears the failure hold on one instance: the build that failed on its\nbox is tried again there, as a canary. \"carlos promote --retry <version>\n<channel>\" does the same on every box.\n\nlabel ties an instance on a fleet to the box serving it now. without --box, or with --dry-run, it only shows what it found and changes nothing\n\nset changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.\n\n--environment binds a route to one of the app's named config bundles\n(\"carlos env environments\" lists them; \"carlos env --environment <e>\" writes\nthem). Omitted, a route serves the app's default bundle — which matters most\nwhen a route stands ALONGSIDE a live one: config is per-app, so a second\ninstance inherits values naming the first one's host, and anything the app\nkeys off a single origin (the Origin header it checks, magic-link URLs, a\nWebAuthn RP ID, the cookie Secure flag) fails closed on the new host while\nGETs look healthy. set-environment rebinds an existing route the same way,\nand for the same reason set-channel exists rather than \"carlos route\n--environment\": the reconciler reverts the box-side edit within seconds.\nRestart the instance afterwards to pick the new values up.\n\nset-upstreams-only flags:\n\n --addrs <a:p,...> comma-separated TCP upstream set, host:port each,\n replacing the record's whole upstream set;\n omitted leaves the existing set alone, an\n explicit --addrs \"\" clears it to empty (refused\n with a 400 for a kind:instance record — emptying\n an addr-backed instance route reverts it to a\n socket-backed shape, and the DerivesPaths rail\n refuses that transition in place; delete and\n re-create instead)\n --health-path <p> states the WHOLE probe block, replacing whatever\n was there — NOT a per-field update: a field\n neither flag names reverts to the platform's own\n default, even if a prior probe had set it\n --health-status <n> probe's expected response status; --health-path\n and --health-status may be given together or\n alone — either one, given at all, replaces the\n whole probe (omitting both leaves the existing\n probe untouched)\n\nOperators placing routes by hand on a box use carlos add, not this.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose instance records to list\n --console <string> console to list through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --health <string> only this state: running, serving, setting-up, asleep, no-readings, not-responding, failed\n --match <string> only hosts containing this substring\n"} |
| {"case":"instances retry | --zz-unknown-flag","argv":["instances","retry","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances create --app <a> --host <h> [--region <r>] [--channel <c>]\n [--kind instance|service|static] [--environment <e>] [--scope <s>]\n [--addr <a:p,...>] [--health-path <p>] [--health-status <n>]\n carlos instances list --app <a> [--match <substr>] [--health <slug>]\n carlos instances delete --app <a> --host <h>\n carlos instances set-upstreams --app <a> --host <h> [--addrs <a:p,...>]\n [--health-path <p>] [--health-status <n>]\n carlos instances set-channel --app <a> --host <h> --channel <c>\n carlos instances set-environment --app <a> --host <h> --environment <e> [--scope <s>]\n carlos instances set-assets --app <a> <host> on|off\n carlos instances set-pages --app <a> <host> on|off\n carlos instances retry --app <a> <host>\n carlos instances label --app <a> <host> [--box <b>] [--dry-run]\n carlos instances set --app <a> <host> [--updates auto|manual]\n [--channel <c>] [--major <n>] [--pin <build>]\n carlos instances update --app <a> <host> [--fast-track]\n\nSigned-in only (carlos auth login): instance records are console-authorized\nwrites — the console checks the host against the app's manifest and the\nbox's reconcile pass materializes the route.\n\ncreate stamps a channel on the record, and prints the one it chose. Named\nwith --channel it is yours; omitted, it is the app's own enable channel, else\nthe channel this app's other instances already follow, else its pipeline\nentry — where \"carlos deploy\" lands, so a brand-new app's first instance is\ndeployable without a passkey. Instances that follow SEVERAL channels are\nrefused rather than guessed at: pass --channel.\n\nset-channel moves ONE route onto a different release channel. The channel\nlives in the instance record, which the box converges the route from every\npass — so this is the verb that changes it, not \"carlos route --channel\",\nwhich edits a row the next reconcile overwrites. A move that the app's\npipeline gates is proposed and finished in the console, like a promote.\n\nretry clears the failure hold on one instance: the build that failed on its\nbox is tried again there, as a canary. \"carlos promote --retry <version>\n<channel>\" does the same on every box.\n\nlabel ties an instance on a fleet to the box serving it now. without --box, or with --dry-run, it only shows what it found and changes nothing\n\nset changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.\n\n--environment binds a route to one of the app's named config bundles\n(\"carlos env environments\" lists them; \"carlos env --environment <e>\" writes\nthem). Omitted, a route serves the app's default bundle — which matters most\nwhen a route stands ALONGSIDE a live one: config is per-app, so a second\ninstance inherits values naming the first one's host, and anything the app\nkeys off a single origin (the Origin header it checks, magic-link URLs, a\nWebAuthn RP ID, the cookie Secure flag) fails closed on the new host while\nGETs look healthy. set-environment rebinds an existing route the same way,\nand for the same reason set-channel exists rather than \"carlos route\n--environment\": the reconciler reverts the box-side edit within seconds.\nRestart the instance afterwards to pick the new values up.\n\nset-upstreams-only flags:\n\n --addrs <a:p,...> comma-separated TCP upstream set, host:port each,\n replacing the record's whole upstream set;\n omitted leaves the existing set alone, an\n explicit --addrs \"\" clears it to empty (refused\n with a 400 for a kind:instance record — emptying\n an addr-backed instance route reverts it to a\n socket-backed shape, and the DerivesPaths rail\n refuses that transition in place; delete and\n re-create instead)\n --health-path <p> states the WHOLE probe block, replacing whatever\n was there — NOT a per-field update: a field\n neither flag names reverts to the platform's own\n default, even if a prior probe had set it\n --health-status <n> probe's expected response status; --health-path\n and --health-status may be given together or\n alone — either one, given at all, replaces the\n whole probe (omitting both leaves the existing\n probe untouched)\n\nOperators placing routes by hand on a box use carlos add, not this.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app the instance belongs to\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n"} |
| {"case":"instances retry | -h","argv":["instances","retry","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances create --app <a> --host <h> [--region <r>] [--channel <c>]\n [--kind instance|service|static] [--environment <e>] [--scope <s>]\n [--addr <a:p,...>] [--health-path <p>] [--health-status <n>]\n carlos instances list --app <a> [--match <substr>] [--health <slug>]\n carlos instances delete --app <a> --host <h>\n carlos instances set-upstreams --app <a> --host <h> [--addrs <a:p,...>]\n [--health-path <p>] [--health-status <n>]\n carlos instances set-channel --app <a> --host <h> --channel <c>\n carlos instances set-environment --app <a> --host <h> --environment <e> [--scope <s>]\n carlos instances set-assets --app <a> <host> on|off\n carlos instances set-pages --app <a> <host> on|off\n carlos instances retry --app <a> <host>\n carlos instances label --app <a> <host> [--box <b>] [--dry-run]\n carlos instances set --app <a> <host> [--updates auto|manual]\n [--channel <c>] [--major <n>] [--pin <build>]\n carlos instances update --app <a> <host> [--fast-track]\n\nSigned-in only (carlos auth login): instance records are console-authorized\nwrites — the console checks the host against the app's manifest and the\nbox's reconcile pass materializes the route.\n\ncreate stamps a channel on the record, and prints the one it chose. Named\nwith --channel it is yours; omitted, it is the app's own enable channel, else\nthe channel this app's other instances already follow, else its pipeline\nentry — where \"carlos deploy\" lands, so a brand-new app's first instance is\ndeployable without a passkey. Instances that follow SEVERAL channels are\nrefused rather than guessed at: pass --channel.\n\nset-channel moves ONE route onto a different release channel. The channel\nlives in the instance record, which the box converges the route from every\npass — so this is the verb that changes it, not \"carlos route --channel\",\nwhich edits a row the next reconcile overwrites. A move that the app's\npipeline gates is proposed and finished in the console, like a promote.\n\nretry clears the failure hold on one instance: the build that failed on its\nbox is tried again there, as a canary. \"carlos promote --retry <version>\n<channel>\" does the same on every box.\n\nlabel ties an instance on a fleet to the box serving it now. without --box, or with --dry-run, it only shows what it found and changes nothing\n\nset changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.\n\n--environment binds a route to one of the app's named config bundles\n(\"carlos env environments\" lists them; \"carlos env --environment <e>\" writes\nthem). Omitted, a route serves the app's default bundle — which matters most\nwhen a route stands ALONGSIDE a live one: config is per-app, so a second\ninstance inherits values naming the first one's host, and anything the app\nkeys off a single origin (the Origin header it checks, magic-link URLs, a\nWebAuthn RP ID, the cookie Secure flag) fails closed on the new host while\nGETs look healthy. set-environment rebinds an existing route the same way,\nand for the same reason set-channel exists rather than \"carlos route\n--environment\": the reconciler reverts the box-side edit within seconds.\nRestart the instance afterwards to pick the new values up.\n\nset-upstreams-only flags:\n\n --addrs <a:p,...> comma-separated TCP upstream set, host:port each,\n replacing the record's whole upstream set;\n omitted leaves the existing set alone, an\n explicit --addrs \"\" clears it to empty (refused\n with a 400 for a kind:instance record — emptying\n an addr-backed instance route reverts it to a\n socket-backed shape, and the DerivesPaths rail\n refuses that transition in place; delete and\n re-create instead)\n --health-path <p> states the WHOLE probe block, replacing whatever\n was there — NOT a per-field update: a field\n neither flag names reverts to the platform's own\n default, even if a prior probe had set it\n --health-status <n> probe's expected response status; --health-path\n and --health-status may be given together or\n alone — either one, given at all, replaces the\n whole probe (omitting both leaves the existing\n probe untouched)\n\nOperators placing routes by hand on a box use carlos add, not this.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app the instance belongs to\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n"} |
| -{"case":"instances set | --zz-unknown-flag","argv":["instances","set","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|default] (an empty value clears an update setting)\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> the channel to follow (the app's pipeline rules apply)\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --major <string> stay on this major version of stable; empty clears\n --pin <string> run exactly this build; empty clears\n --size <string> this instance's size: small, standard, large or xlarge. default follows the app's size. system operators only\n --updates <string> auto or manual; empty restores the app's default\n"} |
| -{"case":"instances set | -h","argv":["instances","set","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|default] (an empty value clears an update setting)\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> the channel to follow (the app's pipeline rules apply)\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --major <string> stay on this major version of stable; empty clears\n --pin <string> run exactly this build; empty clears\n --size <string> this instance's size: small, standard, large or xlarge. default follows the app's size. system operators only\n --updates <string> auto or manual; empty restores the app's default\n"} |
| +{"case":"instances set | --zz-unknown-flag","argv":["instances","set","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|4g|6g|8g|12g|16g|24g|32g|48g|96g|192g|default] (an empty value clears an update setting)\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> the channel to follow (the app's pipeline rules apply)\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --major <string> stay on this major version of stable; empty clears\n --pin <string> run exactly this build; empty clears\n --size <string> this instance's size: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default follows the app's size. system operators only\n --updates <string> auto or manual; empty restores the app's default\n"} |
| +{"case":"instances set | -h","argv":["instances","set","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|4g|6g|8g|12g|16g|24g|32g|48g|96g|192g|default] (an empty value clears an update setting)\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> the channel to follow (the app's pipeline rules apply)\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --major <string> stay on this major version of stable; empty clears\n --pin <string> run exactly this build; empty clears\n --size <string> this instance's size: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default follows the app's size. system operators only\n --updates <string> auto or manual; empty restores the app's default\n"} |
| {"case":"instances set-assets | --zz-unknown-flag","argv":["instances","set-assets","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances set-assets --app <a> [--account <a>] [--account-id <id>] [--console <origin>] <host> on|off\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY, supersedes --account\n --app, -a <string> app the instance belongs to\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n"} |
| {"case":"instances set-assets | -h","argv":["instances","set-assets","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances set-assets --app <a> [--account <a>] [--account-id <id>] [--console <origin>] <host> on|off\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY, supersedes --account\n --app, -a <string> app the instance belongs to\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n"} |
| {"case":"instances set-channel | --zz-unknown-flag","argv":["instances","set-channel","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances create --app <a> --host <h> [--region <r>] [--channel <c>]\n [--kind instance|service|static] [--environment <e>] [--scope <s>]\n [--addr <a:p,...>] [--health-path <p>] [--health-status <n>]\n carlos instances list --app <a> [--match <substr>] [--health <slug>]\n carlos instances delete --app <a> --host <h>\n carlos instances set-upstreams --app <a> --host <h> [--addrs <a:p,...>]\n [--health-path <p>] [--health-status <n>]\n carlos instances set-channel --app <a> --host <h> --channel <c>\n carlos instances set-environment --app <a> --host <h> --environment <e> [--scope <s>]\n carlos instances set-assets --app <a> <host> on|off\n carlos instances set-pages --app <a> <host> on|off\n carlos instances retry --app <a> <host>\n carlos instances label --app <a> <host> [--box <b>] [--dry-run]\n carlos instances set --app <a> <host> [--updates auto|manual]\n [--channel <c>] [--major <n>] [--pin <build>]\n carlos instances update --app <a> <host> [--fast-track]\n\nSigned-in only (carlos auth login): instance records are console-authorized\nwrites — the console checks the host against the app's manifest and the\nbox's reconcile pass materializes the route.\n\ncreate stamps a channel on the record, and prints the one it chose. Named\nwith --channel it is yours; omitted, it is the app's own enable channel, else\nthe channel this app's other instances already follow, else its pipeline\nentry — where \"carlos deploy\" lands, so a brand-new app's first instance is\ndeployable without a passkey. Instances that follow SEVERAL channels are\nrefused rather than guessed at: pass --channel.\n\nset-channel moves ONE route onto a different release channel. The channel\nlives in the instance record, which the box converges the route from every\npass — so this is the verb that changes it, not \"carlos route --channel\",\nwhich edits a row the next reconcile overwrites. A move that the app's\npipeline gates is proposed and finished in the console, like a promote.\n\nretry clears the failure hold on one instance: the build that failed on its\nbox is tried again there, as a canary. \"carlos promote --retry <version>\n<channel>\" does the same on every box.\n\nlabel ties an instance on a fleet to the box serving it now. without --box, or with --dry-run, it only shows what it found and changes nothing\n\nset changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.\n\n--environment binds a route to one of the app's named config bundles\n(\"carlos env environments\" lists them; \"carlos env --environment <e>\" writes\nthem). Omitted, a route serves the app's default bundle — which matters most\nwhen a route stands ALONGSIDE a live one: config is per-app, so a second\ninstance inherits values naming the first one's host, and anything the app\nkeys off a single origin (the Origin header it checks, magic-link URLs, a\nWebAuthn RP ID, the cookie Secure flag) fails closed on the new host while\nGETs look healthy. set-environment rebinds an existing route the same way,\nand for the same reason set-channel exists rather than \"carlos route\n--environment\": the reconciler reverts the box-side edit within seconds.\nRestart the instance afterwards to pick the new values up.\n\nset-upstreams-only flags:\n\n --addrs <a:p,...> comma-separated TCP upstream set, host:port each,\n replacing the record's whole upstream set;\n omitted leaves the existing set alone, an\n explicit --addrs \"\" clears it to empty (refused\n with a 400 for a kind:instance record — emptying\n an addr-backed instance route reverts it to a\n socket-backed shape, and the DerivesPaths rail\n refuses that transition in place; delete and\n re-create instead)\n --health-path <p> states the WHOLE probe block, replacing whatever\n was there — NOT a per-field update: a field\n neither flag names reverts to the platform's own\n default, even if a prior probe had set it\n --health-status <n> probe's expected response status; --health-path\n and --health-status may be given together or\n alone — either one, given at all, replaces the\n whole probe (omitting both leaves the existing\n probe untouched)\n\nOperators placing routes by hand on a box use carlos add, not this.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> release channel the route should follow\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --host <string> instance host whose channel to change\n"} |