| index 163926aa7..4bdbef9dd 100644 |
| --- a/testdata/clireg-golden.jsonl |
| +++ b/testdata/clireg-golden.jsonl |
| @@ -414,8 +414,8 @@ |
| {"case":"instance-stop | -h","argv":["instance-stop","-h"],"exit":2,"stdout":"","stderr":"usage: carlos instance-stop <main-pid>\n"} |
| {"case":"instances backups | --zz-unknown-flag","argv":["instances","backups","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances backups --app <a> [--instance <host>] [--json] [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 --app, -a <string> app the instance belongs to\n --console <string> console to read 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 --instance <string> the instance whose database to read (may be left out when the app has one)\n --json print the console's answer as JSON\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| {"case":"instances backups | -h","argv":["instances","backups","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances backups --app <a> [--instance <host>] [--json] [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 --app, -a <string> app the instance belongs to\n --console <string> console to read 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 --instance <string> the instance whose database to read (may be left out when the app has one)\n --json print the console's answer as JSON\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| -{"case":"instances create | --zz-unknown-flag","argv":["instances","create","--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 --addr <string> comma-separated TCP upstream set, host:port each (e.g. 10.0.0.1:8090,10.0.0.2:8090); omitted means the platform's own default upstream\n --app, -a <string> app the instance belongs to\n --at <int> with --from, the transaction id to copy at (default: the latest)\n --channel, -c <string> release channel the instance follows (default: the manifest's, then this app's other instances, then its pipeline entry)\n --console <string> console to create 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 --environment <string> named config bundle this route binds to (default: the app's default bundle) — carlos env environments lists them\n --from <string> copy this instance's database into the new one. The source must be an instance of the same app, in this console's region\n --health-path <string> states the whole probe alongside --health-status: request path (default \"/\"); honoured for a single --addr too\n --health-status <int> probe's expected response status (default 200); fields neither flag names take the platform's own defaults\n --host <string> instance host — one DNS label + \".\" + the app's instance domain\n --kind <string> route class: instance (default) | service | static — a static record serves a file tree off the channel pointer and has no process\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 --region <string> region for this instance (default: the app's region, subject to the manifest's allow-list)\n --replicas <string> comma-separated placement codes the account's replicas live in (the HOME record's opt-in; e.g. ie,uk) — this instance's own replica must be --role replica with --region\n --restore bring back a deleted instance on this host with the data it kept: the same app's plain instance, created and deleted after restore was available\n --role <string> instance role (default: the serving home); \"replica\" provisions a second instance of the account holding a one-way mirror of it, selling near the buyer — needs --region naming the replica's placement\n --scope <string> the team scope that owns --environment, named explicitly: binding an instance into an environment a team credential owns is a deliberate act (carlos env adopt)\n"} |
| -{"case":"instances create | -h","argv":["instances","create","-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 --addr <string> comma-separated TCP upstream set, host:port each (e.g. 10.0.0.1:8090,10.0.0.2:8090); omitted means the platform's own default upstream\n --app, -a <string> app the instance belongs to\n --at <int> with --from, the transaction id to copy at (default: the latest)\n --channel, -c <string> release channel the instance follows (default: the manifest's, then this app's other instances, then its pipeline entry)\n --console <string> console to create 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 --environment <string> named config bundle this route binds to (default: the app's default bundle) — carlos env environments lists them\n --from <string> copy this instance's database into the new one. The source must be an instance of the same app, in this console's region\n --health-path <string> states the whole probe alongside --health-status: request path (default \"/\"); honoured for a single --addr too\n --health-status <int> probe's expected response status (default 200); fields neither flag names take the platform's own defaults\n --host <string> instance host — one DNS label + \".\" + the app's instance domain\n --kind <string> route class: instance (default) | service | static — a static record serves a file tree off the channel pointer and has no process\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 --region <string> region for this instance (default: the app's region, subject to the manifest's allow-list)\n --replicas <string> comma-separated placement codes the account's replicas live in (the HOME record's opt-in; e.g. ie,uk) — this instance's own replica must be --role replica with --region\n --restore bring back a deleted instance on this host with the data it kept: the same app's plain instance, created and deleted after restore was available\n --role <string> instance role (default: the serving home); \"replica\" provisions a second instance of the account holding a one-way mirror of it, selling near the buyer — needs --region naming the replica's placement\n --scope <string> the team scope that owns --environment, named explicitly: binding an instance into an environment a team credential owns is a deliberate act (carlos env adopt)\n"} |
| +{"case":"instances create | --zz-unknown-flag","argv":["instances","create","--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 --addr <string> comma-separated TCP upstream set, host:port each (e.g. 10.0.0.1:8090,10.0.0.2:8090); omitted means the platform's own default upstream\n --app, -a <string> app the instance belongs to\n --at <int> with --from, the transaction id to copy at (default: the latest)\n --channel, -c <string> release channel the instance follows (default: the manifest's, then this app's other instances, then its pipeline entry)\n --console <string> console to create 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 --environment <string> named config bundle this route binds to (default: the app's default bundle) — carlos env environments lists them\n --from <string> copy this instance's database into the new one. The source must be an instance of the same app, in this console's region\n --health-path <string> states the whole probe alongside --health-status: request path (default \"/\"); honoured for a single --addr too\n --health-status <int> probe's expected response status (default 200); fields neither flag names take the platform's own defaults\n --host <string> instance host — one DNS label + \".\" + the app's instance domain\n --kind <string> route class: instance (default) | service | static — a static record serves a file tree off the channel pointer and has no process\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 --region <string> region for this instance (default: the app's region, subject to the manifest's allow-list)\n --replicas <string> comma-separated placement codes the account's replicas live in (the HOME record's opt-in; e.g. ie,uk) — this instance's own replica must be --role replica with --region\n --restore bring back a deleted instance on this host with the data it kept: the same app's plain instance, created and deleted after restore was available\n --role <string> instance role (default: the serving home); \"replica\" provisions a second instance of the account holding a one-way mirror of it, selling near the buyer — needs --region naming the replica's placement\n --scope <string> the team scope that owns --environment, named explicitly: binding an instance into an environment a team credential owns is a deliberate act (carlos env adopt)\n --seed-file <string> start the new instance from this SQLite database file, at most 4 GiB. Not with --from\n"} |
| +{"case":"instances create | -h","argv":["instances","create","-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 --addr <string> comma-separated TCP upstream set, host:port each (e.g. 10.0.0.1:8090,10.0.0.2:8090); omitted means the platform's own default upstream\n --app, -a <string> app the instance belongs to\n --at <int> with --from, the transaction id to copy at (default: the latest)\n --channel, -c <string> release channel the instance follows (default: the manifest's, then this app's other instances, then its pipeline entry)\n --console <string> console to create 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 --environment <string> named config bundle this route binds to (default: the app's default bundle) — carlos env environments lists them\n --from <string> copy this instance's database into the new one. The source must be an instance of the same app, in this console's region\n --health-path <string> states the whole probe alongside --health-status: request path (default \"/\"); honoured for a single --addr too\n --health-status <int> probe's expected response status (default 200); fields neither flag names take the platform's own defaults\n --host <string> instance host — one DNS label + \".\" + the app's instance domain\n --kind <string> route class: instance (default) | service | static — a static record serves a file tree off the channel pointer and has no process\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 --region <string> region for this instance (default: the app's region, subject to the manifest's allow-list)\n --replicas <string> comma-separated placement codes the account's replicas live in (the HOME record's opt-in; e.g. ie,uk) — this instance's own replica must be --role replica with --region\n --restore bring back a deleted instance on this host with the data it kept: the same app's plain instance, created and deleted after restore was available\n --role <string> instance role (default: the serving home); \"replica\" provisions a second instance of the account holding a one-way mirror of it, selling near the buyer — needs --region naming the replica's placement\n --scope <string> the team scope that owns --environment, named explicitly: binding an instance into an environment a team credential owns is a deliberate act (carlos env adopt)\n --seed-file <string> start the new instance from this SQLite database file, at most 4 GiB. Not with --from\n"} |
| {"case":"instances delete | --zz-unknown-flag","argv":["instances","delete","--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 delete 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 record to retire\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 delete | -h","argv":["instances","delete","-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 delete 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 record to retire\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 door-key create | --zz-unknown-flag","argv":["instances","door-key","create","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances door-key create --app <a> [--label <text>]\n carlos instances door-key list --app <a>\n carlos instances door-key revoke --app <a> <id>\n\n --account <a> account (sqid or name; default: your only account,\n or the configured/chosen one)\n --account-id <id> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> console to act through (default: the only\n logged-in one)\n\nSigned in only (carlos auth login). A door key is written through a console, which keeps it in its own database. There is no direct-bucket form.\n\ncreate mints a new key for the app and prints it once. Store it now: it cannot be shown again, and list only ever shows its id and label.\n\nlist shows the app's live keys: id, label and when each was created.\n\nrevoke takes an id from list and stops that key working.\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 to mint a door key for\n --console <string> console to create 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 --label <string> short note stored with the key and shown by list (default: none)\n"} |