testdata: golden cases for carlos usage and the usage role help
Adds the two usage cases and re-records the services help lines that Task 5's usage role changed (the role list), which the golden replay had been failing on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+10
−8
testdata/clireg-golden.jsonl+10 −8
diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl| index 0213ffa85..3f7f941db 100644 |
| --- a/testdata/clireg-golden.jsonl |
| +++ b/testdata/clireg-golden.jsonl |
| @@ -790,20 +790,20 @@ |
| {"case":"secrets | bare","argv":["secrets"],"exit":1,"stdout":"","stderr":"usage: carlos secrets <command>\n\ncommands:\n set --app <a> [--environment <name>] [--if-version <v>] KEY=value [KEY2=value2 ...] seal and set one or more secrets\n --app <a> [--environment <name>] [--if-version <v>] KEY - the same, reading KEY's value from stdin\n unset --app <a> [--environment <name>] [--if-version <v>] KEY [KEY2 ...] remove secrets\n list --app <a> [--environment <name>] [--digests] [--json] list a secret's key names only — never values\n genkey mint a CARLOS_SECRETS_KEY/PUBKEY pair\n fingerprint [--file <path>] print the fingerprint of the key in a host.env, never the key\n\n--environment names a bundle at apps/<acct>/<app>/environments/<name>.json —\nsee \"carlos env\" for the full explanation; the same bundle backs both env\nvars and secrets, sealed or not. \"carlos env environments --app <a>\" lists\nan app's bundle names.\n\nset/unset/list also work through a logged-in console (carlos auth login)\nwhen CARLOS_DEPLOYMENT_BUCKET/CARLOS_DEPLOYMENT_DIR are unset —\n[--console <origin>] picks which logged-in console when more than one is\nconfigured; the store env vars win outright when set (direct-bucket mode,\nunchanged). In that mode \"secrets set\" seals with CARLOS_SECRETS_PUBKEY if\nit's set in this terminal's own environment, otherwise the console's own\nserved public key (Config.SecretsPub) if it has one — CARLOS_SECRETS_KEY\n(the PRIVATE half) never leaves the box holding it either way.\ngenkey and fingerprint are always local, in both modes.\n\nversions, digests and --if-version work as for \"carlos env\". a secret's\ndigest is computed from its sealed envelope, so it reveals nothing about the\nvalue and changes every time the secret is set, even to the same value\n\nfor an app placed on a fleet the console serves the fleet's own key, so leave\nCARLOS_SECRETS_PUBKEY unset. register that key with \"carlos fleets secrets-key\".\n"} |
| {"case":"secrets | help","argv":["secrets","help"],"exit":1,"stdout":"","stderr":"usage: carlos secrets <command>\n\ncommands:\n set --app <a> [--environment <name>] [--if-version <v>] KEY=value [KEY2=value2 ...] seal and set one or more secrets\n --app <a> [--environment <name>] [--if-version <v>] KEY - the same, reading KEY's value from stdin\n unset --app <a> [--environment <name>] [--if-version <v>] KEY [KEY2 ...] remove secrets\n list --app <a> [--environment <name>] [--digests] [--json] list a secret's key names only — never values\n genkey mint a CARLOS_SECRETS_KEY/PUBKEY pair\n fingerprint [--file <path>] print the fingerprint of the key in a host.env, never the key\n\n--environment names a bundle at apps/<acct>/<app>/environments/<name>.json —\nsee \"carlos env\" for the full explanation; the same bundle backs both env\nvars and secrets, sealed or not. \"carlos env environments --app <a>\" lists\nan app's bundle names.\n\nset/unset/list also work through a logged-in console (carlos auth login)\nwhen CARLOS_DEPLOYMENT_BUCKET/CARLOS_DEPLOYMENT_DIR are unset —\n[--console <origin>] picks which logged-in console when more than one is\nconfigured; the store env vars win outright when set (direct-bucket mode,\nunchanged). In that mode \"secrets set\" seals with CARLOS_SECRETS_PUBKEY if\nit's set in this terminal's own environment, otherwise the console's own\nserved public key (Config.SecretsPub) if it has one — CARLOS_SECRETS_KEY\n(the PRIVATE half) never leaves the box holding it either way.\ngenkey and fingerprint are always local, in both modes.\n\nversions, digests and --if-version work as for \"carlos env\". a secret's\ndigest is computed from its sealed envelope, so it reveals nothing about the\nvalue and changes every time the secret is set, even to the same value\n\nfor an app placed on a fleet the console serves the fleet's own key, so leave\nCARLOS_SECRETS_PUBKEY unset. register that key with \"carlos fleets secrets-key\".\n"} |
| {"case":"secrets | zz-unknown","argv":["secrets","zz-unknown"],"exit":1,"stdout":"","stderr":"usage: carlos secrets <command>\n\ncommands:\n set --app <a> [--environment <name>] [--if-version <v>] KEY=value [KEY2=value2 ...] seal and set one or more secrets\n --app <a> [--environment <name>] [--if-version <v>] KEY - the same, reading KEY's value from stdin\n unset --app <a> [--environment <name>] [--if-version <v>] KEY [KEY2 ...] remove secrets\n list --app <a> [--environment <name>] [--digests] [--json] list a secret's key names only — never values\n genkey mint a CARLOS_SECRETS_KEY/PUBKEY pair\n fingerprint [--file <path>] print the fingerprint of the key in a host.env, never the key\n\n--environment names a bundle at apps/<acct>/<app>/environments/<name>.json —\nsee \"carlos env\" for the full explanation; the same bundle backs both env\nvars and secrets, sealed or not. \"carlos env environments --app <a>\" lists\nan app's bundle names.\n\nset/unset/list also work through a logged-in console (carlos auth login)\nwhen CARLOS_DEPLOYMENT_BUCKET/CARLOS_DEPLOYMENT_DIR are unset —\n[--console <origin>] picks which logged-in console when more than one is\nconfigured; the store env vars win outright when set (direct-bucket mode,\nunchanged). In that mode \"secrets set\" seals with CARLOS_SECRETS_PUBKEY if\nit's set in this terminal's own environment, otherwise the console's own\nserved public key (Config.SecretsPub) if it has one — CARLOS_SECRETS_KEY\n(the PRIVATE half) never leaves the box holding it either way.\ngenkey and fingerprint are always local, in both modes.\n\nversions, digests and --if-version work as for \"carlos env\". a secret's\ndigest is computed from its sealed envelope, so it reveals nothing about the\nvalue and changes every time the secret is set, even to the same value\n\nfor an app placed on a fleet the console serves the fleet's own key, so leave\nCARLOS_SECRETS_PUBKEY unset. register that key with \"carlos fleets secrets-key\".\n"} |
| -{"case":"services create | --zz-unknown-flag","argv":["services","create","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos services create [flags]\nflags:\n --account <string> account (sqid or name) to mint the credential in (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> bind the credential to one app (default: account-wide)\n --commands <string> command prefixes a run credential may run, comma-separated, words space-separated: \"import classic,import sync\" (required with --role run)\n --console <string> console to create it 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 --json print the credential and its bare secret as one JSON object, for a script\n --role <string> role: publish, deploy, instance, operate, service, run, team or admin (required)\n --rungs <string> rungs a deploy credential may move, comma-separated: canary, edge, beta (required with --role deploy)\n --scope <string> scope name a team credential holds: the environments it owns (required with --role team, with --app)\n"} |
| -{"case":"services create | -h","argv":["services","create","-h"],"exit":0,"stdout":"","stderr":"usage: carlos services create [flags]\nflags:\n --account <string> account (sqid or name) to mint the credential in (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> bind the credential to one app (default: account-wide)\n --commands <string> command prefixes a run credential may run, comma-separated, words space-separated: \"import classic,import sync\" (required with --role run)\n --console <string> console to create it 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 --json print the credential and its bare secret as one JSON object, for a script\n --role <string> role: publish, deploy, instance, operate, service, run, team or admin (required)\n --rungs <string> rungs a deploy credential may move, comma-separated: canary, edge, beta (required with --role deploy)\n --scope <string> scope name a team credential holds: the environments it owns (required with --role team, with --app)\n"} |
| +{"case":"services create | --zz-unknown-flag","argv":["services","create","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos services create [flags]\nflags:\n --account <string> account (sqid or name) to mint the credential in (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> bind the credential to one app (default: account-wide)\n --commands <string> command prefixes a run credential may run, comma-separated, words space-separated: \"import classic,import sync\" (required with --role run)\n --console <string> console to create it 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 --json print the credential and its bare secret as one JSON object, for a script\n --role <string> role: publish, deploy, instance, operate, service, run, team, usage or admin (required)\n --rungs <string> rungs a deploy credential may move, comma-separated: canary, edge, beta (required with --role deploy)\n --scope <string> scope name a team credential holds: the environments it owns (required with --role team, with --app)\n"} |
| +{"case":"services create | -h","argv":["services","create","-h"],"exit":0,"stdout":"","stderr":"usage: carlos services create [flags]\nflags:\n --account <string> account (sqid or name) to mint the credential in (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> bind the credential to one app (default: account-wide)\n --commands <string> command prefixes a run credential may run, comma-separated, words space-separated: \"import classic,import sync\" (required with --role run)\n --console <string> console to create it 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 --json print the credential and its bare secret as one JSON object, for a script\n --role <string> role: publish, deploy, instance, operate, service, run, team, usage or admin (required)\n --rungs <string> rungs a deploy credential may move, comma-separated: canary, edge, beta (required with --role deploy)\n --scope <string> scope name a team credential holds: the environments it owns (required with --role team, with --app)\n"} |
| {"case":"services ls | --zz-unknown-flag","argv":["services","ls","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos services ls [flags]\nflags:\n --account <string> account (sqid or name) to list credentials for (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 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"} |
| {"case":"services ls | -h","argv":["services","ls","-h"],"exit":0,"stdout":"","stderr":"usage: carlos services ls [flags]\nflags:\n --account <string> account (sqid or name) to list credentials for (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 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"} |
| {"case":"services revoke | --zz-unknown-flag","argv":["services","revoke","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos services revoke [flags]\nflags:\n --account <string> account (sqid or name) the credential 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 revoke 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":"services revoke | -h","argv":["services","revoke","-h"],"exit":0,"stdout":"","stderr":"usage: carlos services revoke [flags]\nflags:\n --account <string> account (sqid or name) the credential 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 revoke 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":"services rotate | --zz-unknown-flag","argv":["services","rotate","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos services rotate [flags]\nflags:\n --account <string> account (sqid or name) the credential 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 rotate 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 --json print the name, account and bare secret as one JSON object, for a script\n"} |
| {"case":"services rotate | -h","argv":["services","rotate","-h"],"exit":0,"stdout":"","stderr":"usage: carlos services rotate [flags]\nflags:\n --account <string> account (sqid or name) the credential 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 rotate 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 --json print the name, account and bare secret as one JSON object, for a script\n"} |
| -{"case":"services | --help","argv":["services","--help"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| -{"case":"services | --zz-unknown-flag","argv":["services","--zz-unknown-flag"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| -{"case":"services | -h","argv":["services","-h"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| -{"case":"services | bare","argv":["services"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| -{"case":"services | help","argv":["services","help"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| -{"case":"services | zz-unknown","argv":["services","zz-unknown"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| +{"case":"services | --help","argv":["services","--help"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|usage|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| +{"case":"services | --zz-unknown-flag","argv":["services","--zz-unknown-flag"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|usage|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| +{"case":"services | -h","argv":["services","-h"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|usage|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| +{"case":"services | bare","argv":["services"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|usage|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| +{"case":"services | help","argv":["services","help"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|usage|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| +{"case":"services | zz-unknown","argv":["services","zz-unknown"],"exit":1,"stdout":"","stderr":"usage: carlos services <create|ls|rotate|revoke> [flags]\n\n create --role <publish|deploy|instance|operate|service|run|usage|admin> [--app <app>] [--account <sqid|name>] [--json] <name>\n mint a credential a SERVER holds, bound to this account —\n not to you. Unlike your own CLI token, its reach is fixed\n at mint: adding you to another account later does not widen\n it, and it draws on its own rate-limit budgets rather than\n yours.\n THE SECRET IS PRINTED EXACTLY ONCE, HERE. Only its hash is\n stored, so losing this output means rotate, not a re-run.\n --role admin INCLUDES `store grant`, which mints a\n path-scoped IAM user. It is a real handover, not a\n convenience bundle. Prefer the narrowest role that works.\n --app binds it to ONE app, which also means it cannot create\n apps. Omit --app for an account-scoped credential.\n --role run needs --app and --commands, the command\n prefixes it may run: --commands \"import classic,import sync\".\n Words are matched exactly, from the start of the command.\n --json prints one JSON object and nothing else, the bare\n secret in its \"secret\" field: carlos services create\n ... --json name | jq -r .secret\n\n ls [--account <sqid|name>]\n list every LIVE credential the account owns — name, role,\n scope, when it was minted and last rotated and used, and\n who minted it. A revoked credential does not appear; there\n is no history view here.\n\n rotate [--account <sqid|name>] [--json] <name>\n mint a FRESH secret for a credential that already exists,\n printed exactly once. This refuses the credential's NEXT\n call with the old secret. ROTATION IS NOT REVOCATION: it\n does not stop work already in flight, and a credential that\n may be COMPROMISED needs revoke. --json prints one JSON\n object, {\"name\", \"account\", \"secret\"}, and nothing else.\n\n revoke [--account <sqid|name>] <name-or-id>\n the hard stop rotate is not: the credential's next call\n fails, whatever secret it holds. Idempotent — revoking a\n name twice, or one that never existed, answers the same.\n Takes a credential's name, or the listing id `ls` shows\n (the only handle a nameless legacy credential has).\n\n --account <sqid|name> account the credential belongs to (default: your only\n account, or the configured/chosen one) —\n resolved by the console against your own\n memberships.\n --account-id <sqid> account sqid, matched as a sqid ONLY — supersedes\n --account\n --console <origin> which logged-in console to use (only needed with\n several)\n\nEvery verb here is signed-in only (carlos auth login), owner-only, and\nclosed to a service credential itself — no service credential can create,\nrotate or revoke any credential, not even itself, not even an admin one.\nService credentials are console-tracked state with no bucket-direct fallback.\n"} |
| {"case":"share | --zz-unknown-flag","argv":["share","--zz-unknown-flag"],"exit":1,"stdout":"","stderr":"carlos share: usage: carlos share <port | host:port | socket> [--account <account>] [--name <name>]\n"} |
| {"case":"share | -h","argv":["share","-h"],"exit":1,"stdout":"","stderr":"carlos share: usage: carlos share <port | host:port | socket> [--account <account>] [--name <name>]\n"} |
| {"case":"ship | --zz-unknown-flag","argv":["ship","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos ship [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 name\n --assets <value> a folder your build writes files to, for example /assets/. repeat the flag for up to 8 folders. servers near your visitors may keep copies of the files in them\n --capabilities <string> path to a JSON capability block (internal/caps) to embed in the manifest\n --check run the rootfs image here with Docker or Podman, the way a box would, and ship nothing\n --console <string> console origin to ship through (API 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 --env <value> with --check, give every process a variable as KEY=VALUE, such as a placeholder secret. repeat it for more than one\n --from-release <string> a directory written by carlos releases pull. ships its files and settings unchanged\n --hibernate let this rootfs app hibernate when idle. rootfs apps are always on unless their first release opts in\n --jit let this rootfs release's processes run a JIT compiler, as Node, Bun, Deno, the JVM and Ruby's YJIT need. without it a box never lets memory be writable and executable at once\n --kind <string> binary | static (default: binary)\n --label <string> one-line human label for this release (\"fixing modals\")\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\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 --notes <string> changelog fragment for this release\n --notes-file <string> file holding the changelog fragment (mutually exclusive with --notes)\n --processes <string> JSON file holding the rootfs release's processes: web, any workers, release and console\n --program-change accept that this release's Go main package differs from the app's previous release (recorded in the manifest)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --rootfs <string> an OCI image (a layout directory, a docker save archive or a local image name) or a directory, shipped as a rootfs release\n --stateless this release keeps no local database. CARLOS_DB, SQLite, restore and Litestream are off\n --swap <string> hold: this release stops each instance before starting it, for a migration the previous build cannot share the database with\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --version, -v <string> version (git short sha); omit to mint the next iteration under the app's version target\n"} |
| @@ -1164,6 +1164,8 @@ |
| {"case":"system | zz-unknown","argv":["system","zz-unknown"],"exit":2,"stdout":"","stderr":"system: unknown verb \"zz-unknown\"\n\nusage: carlos system <verb> [flags]\n carlos system router <verb> [flags]\n carlos system demos <status|serving on|serving off|takedown|takedown-status>\n carlos system managed-fleets <show|set --file f.json>\n carlos system antivirus <status|enable|disable|rotate-webhook-key> [flags]\n carlos system pdf status\n carlos system media status\n carlos system geoip <publish|status|off> [flags]\n carlos system seeds-floor publish --min-release <release>\n carlos system legacy-routes assign --name <name> --to <account>/<app>\n carlos system lifetimes cutover [--no-wait]\n carlos system hosts-used status\n carlos system named-units install <file>\n carlos system named-units <put|show> --instance <id> [flags]\n carlos system box role <box> <default|legacy|platform>\n carlos system box publish-record\n carlos system group role <region> <default|legacy>\n carlos system host-env <write|seed> --deployment <name> --region <code> [flags]\n\nThe platform's own binary (ops account owners and CARLOS_SYSTEM_OPERATORS):\n\n update promote a platform release to a channel; every box on it rolls itself\n status every box: platform, channel, running build, channel target, last apply outcome\n rollback point a channel back at the release before this one\n hold keep boxes on the release they run: they start no platform\n update until released or the hold ends (--for, 2h by default)\n release let a held box take the channel's release\n cancel-activation\n release a channel's activation reservation that was never\n published, so promote and rollback work again\n apply (root oneshot behind carlos-system-update.service; not for operators)\n layout migrate|revert|status: move every instance into its own directory\n and namespace, or back; see carlos system layout help\n seeds-floor publish --min-release <release>\n the first release whose boxes can place a seed, such as v0.27.0\n legacy-routes assign --name <name> --to <account>/<app>\n say which account and app the routes an operator filed by hand belong to\n lifetimes cutover [--no-wait]\n switch a console without host claims onto instance lifetimes,\n once, after the old console has stopped. Waits until they are on\n hosts-used status\n the hostname history: its mode, how many hostnames it has\n recorded, its closed fleets and its floor\n box role <box> <default|legacy|platform>\n whether new instances may be placed on a box. A legacy or\n platform box keeps the instances it has and takes no new ones\n group role <region> <default|legacy>\n the same for every box a region's group has enrolled, and for\n every box it enrolls later\n box publish-record\n run on a box as the agent user, with systemd-run -p User=carlos:\n publish its AWS-signed identity record to the deployment\n bucket, once. It never replaces or deletes a record\n\nA box a region's group launches (region HA):\n\n host-env write build host.env from the deployment's parameters (root)\n host-env seed copy a box's host.env into the deployment's parameters\n install-channel install the release this box's channel names (root)\n\nA fixed box's named units (see carlos system named-units help):\n\n named-units install install a declaration file on the box (root)\n named-units put write a box's declarations to its parameter\n named-units show the box's parameter and its last report\n\nDeployment-wide settings (CARLOS_STORE_OPERATORS):\n\n pdf status\n\n antivirus status is object scanning wired, switched on, and answering?\n Reports wiring and policy separately, because they fail\n separately.\n antivirus enable turn object scanning on for this deployment. Refused if\n no engine is wired: a record claiming enabled with\n nothing behind it would report health where no scan can\n run.\n antivirus disable turn it off. Takes effect on the next tick — no restart,\n which is the point of the switch living in a record\n rather than in the unit file.\n antivirus rotate-webhook-key\n deliver the current master-derived callback secret to\n every scanning-enabled app, one bounded batch at a\n time. Skips apps already on that key, restarts the\n rest, and is safe to run again.\n\nPlatform GeoIP (ops account owners and CARLOS_SYSTEM_OPERATORS):\n\n geoip publish <file.mmdb> publish a MaxMind-format database (DB-IP Lite or\n GeoLite2) to every edge. -force skips the shrink check\n geoip status the published database, and whether every box\n strips forged headers and has it\n geoip off stop: edges drop the database and send no geo headers\n\nEnabling antivirus scans nothing by itself: a member still requests scanning\nfor their app, and an operator still grants it per store.\n\nThe platform is not an app: the console is updated with carlos deploy --app console.\n"} |
| {"case":"update | --zz-unknown-flag","argv":["update","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos update [flags]\nflags:\n -y replace without asking (plain-binary installs only)\n"} |
| {"case":"update | -h","argv":["update","-h"],"exit":0,"stdout":"","stderr":"usage: carlos update [flags]\nflags:\n -y replace without asking (plain-binary installs only)\n"} |
| +{"case":"usage | --zz-unknown-flag","argv":["usage","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos usage --app <a> [flags]\n\nBytes sent and requests served by each instance of an app in one UTC\nmonth, counted at the edge. Figures are what has been counted so far, so\nthey can be lower than what was served but never higher.\n\n--month is YYYY-MM and defaults to this month. --json prints the answer\nas the API returns it.\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 whose usage to read\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 --json print the API's answer as JSON\n --month <string> month to show, YYYY-MM (default: this month)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| +{"case":"usage | -h","argv":["usage","-h"],"exit":0,"stdout":"","stderr":"usage: carlos usage --app <a> [flags]\n\nBytes sent and requests served by each instance of an app in one UTC\nmonth, counted at the edge. Figures are what has been counted so far, so\nthey can be lower than what was served but never higher.\n\n--month is YYYY-MM and defaults to this month. --json prints the answer\nas the API returns it.\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 whose usage to read\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 --json print the API's answer as JSON\n --month <string> month to show, YYYY-MM (default: this month)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| {"case":"version foo | extra","argv":["version","foo"],"exit":0,"stdout":"carlos dev\n","stderr":""} |
| {"case":"version target | --zz-unknown-flag","argv":["version","target","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos version target [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 name\n --console <string> console origin to read or set through (API 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":"version target | -h","argv":["version","target","-h"],"exit":0,"stdout":"","stderr":"usage: carlos version target [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 name\n --console <string> console origin to read or set through (API 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"} |