carlos / platform Public

cli: domains list keeps its app default; contacts doors off buy gate

- The saved-contact API doors use domainContactsAPIGate (person, owner,
  domains rate limit), the API twin of the browser's contactsGate: no
  domainBuyReady, so contacts list, add, edit and remove from the CLI
  while buying is off. Routes keep gateNoHostClaim.
- carlos domains list without --app resolves the app as before (the
  configured app, else the only app, else the chooser or the naming
  refusal) and lists its claims. It shows the account overview only when
  no app resolves (no apps, or a console that cannot say), or with the
  new --all; --all with --app is a usage error. Drafts for --all; help,
  parity row and docs/site/cli.md updated; CLI golden re-recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev b85f64b0e0de94ab87d396359a08d8194f4fe802 parent 6567efd
10 files changed, +215 −47
  • docs/parity.md +1 −1
  • docs/site/cli.md +9 −7
  • domains_account_cli_test.go +86 −4
  • domains_buy_copy.go +9 −7
  • domains_cli.go +29 −10
  • internal/console/apidomainbuy.go +33 −5
  • internal/console/apidomainbuy_test.go +35 −2
  • internal/console/routedecls.go +4 −2
  • parity/parity.tsv +1 −1
  • testdata/clireg-golden.jsonl +8 −8

CI failed — run details

diff --git a/docs/parity.md b/docs/parity.md
index 64ff28bff..7aca2e72e 100644
--- a/docs/parity.md
+++ b/docs/parity.md
@@ -103,7 +103,7 @@ CLI rows are checked against the command registry (`parity/cli.tsv`).
| Row | Status | CLI | Console | Package | Note |
|---|---|---|---|---|---|
| domains-list | both | `domains list [--app]` | `GET /a/{sqid}/apps/{app}/settings/{section}` | | |
-| domains-account | both | `domains list [account-wide]` | `GET /a/{sqid}/domains` | | The account's domains, bought here and registered elsewhere, each with its addresses. |
+| domains-account | both | `domains list [--all]` | `GET /a/{sqid}/domains` | | The account's domains, bought here and registered elsewhere, each with its addresses; list shows them too when no app resolves. |
| domains-account-page | console-only | | `GET /a/{sqid}/domains/{domain}` | | One domain's addresses, expiry and the records to set; the CLI list shows the addresses and expiry, and domains list --app the records. |
| domains-attach | both | `domains attach`<br>`domains detach` | `POST /a/{sqid}/apps/{app}/domains/attach`<br>`POST /a/{sqid}/apps/{app}/domains/detach` | | |
| domains-verify | partial | `domains verify` | `POST /a/{sqid}/apps/{app}/domains/attach` | | There is no Verify button; attaching again verifies. |
diff --git a/docs/site/cli.md b/docs/site/cli.md
index 9c6bd62e0..a74776883 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -1746,13 +1746,13 @@ carlos domains check shop.example
carlos domains buy shop.example --app shop
carlos domains buy shop.example --not-yet
carlos domains point shop.example --app shop
-carlos domains list
+carlos domains list --all
```
`buy` needs either `--app`, to point the new domain at that app, or
`--not-yet`, to buy it without pointing it anywhere. Point it later with
-`point`, which sets up the domain and its `www` for the app. Buying and
-pointing are for the account’s owners.
+`point`, which sets up the domain and its `www` for the app. Buying,
+pointing and saved contacts are for the account’s owners.
A domain is registered to a contact you save once and reuse. With no
contact flag, `buy` uses the one you used last and names it before you
@@ -1761,10 +1761,12 @@ uses new details and saves them. `carlos domains contacts` lists the saved
contacts, and `contacts add --file`, `contacts edit <id> --file` and
`contacts remove <id>` change them.
-`carlos domains list` with no `--app` shows every domain the account uses,
-whether bought here, still being bought or registered elsewhere, with each
-address under its domain. Any member of the account can run it. With
-`--app` it shows that app’s hostnames, as below.
+`carlos domains list --all` shows every domain the account uses, whether
+bought here, still being bought or registered elsewhere, with each address
+under its domain. Any member of the account can run it. Without `--all`,
+`list` shows one app’s hostnames, as below: the app you name with `--app`,
+else your configured app or the account’s only app. When there is no app
+to show, it lists every domain, as `--all` does.
Attaches a customer's own hostname to one of the app's routes, detaches it,
or lists what is claimed.
diff --git a/domains_account_cli_test.go b/domains_account_cli_test.go
index 5adb476e0..c74bbbf38 100644
--- a/domains_account_cli_test.go
+++ b/domains_account_cli_test.go
@@ -16,9 +16,14 @@ import (
"github.com/carlosframework/platform/internal/registrar"
)
-func TestDomainsListAccountOverview(t *testing.T) {
+// listTestServer answers the account overview, one app's claims and the
+// memberships listing (apps, nil: a console without it). It counts the
+// two list doors.
+func listTestServer(t *testing.T, apps []string, overview, perApp *int) *httptest.Server {
+ t.Helper()
mux := http.NewServeMux()
mux.HandleFunc("GET "+buyTestPath, func(w http.ResponseWriter, r *http.Request) {
+ *overview++
fmt.Fprint(w, `{"domains":[
{"domain":"new.com","bought":false,"purchase":{"id":"p1","state":"awaiting_payment"},"addresses":[]},
{"domain":"shop.com","bought":true,"expires":"2027-11-19T10:00:00Z","addresses":[]},
@@ -27,12 +32,89 @@ func TestDomainsListAccountOverview(t *testing.T) {
{"host":"www.shop.example","app":"kass","in_trash":false,"state":"pending-dns"},
{"host":"docs.shop.example","app":"old","in_trash":true,"state":"live"}]}]}`)
})
+ mux.HandleFunc("GET /api/cli/apps/bab/kass/domains", func(w http.ResponseWriter, r *http.Request) {
+ *perApp++
+ fmt.Fprint(w, `{"domains":[{"host":"shop.example","route":"kass.example","status":"live","state":"live"}]}`)
+ })
+ if apps != nil {
+ mux.HandleFunc("GET /api/cli/apps", func(w http.ResponseWriter, r *http.Request) {
+ json.NewEncoder(w).Encode(map[string]any{"accounts": []map[string]any{{"name": "bab", "sqid": "bab", "role": "owner", "apps": apps}}})
+ })
+ }
ts := httptest.NewServer(mux)
- defer ts.Close()
- var out bytes.Buffer
- if err := domainsAccountList(context.Background(), newTestSession(ts.URL), apiAcct{Seg: "bab"}, &out); err != nil {
+ t.Cleanup(ts.Close)
+ return ts
+}
+
+// TestDomainsListKeepsConfiguredAppDefault: without --app, list resolves
+// the app as it always has (the configured one, else the only one) and
+// prints that app's claims. Only when no app resolves does it show the
+// account overview. Several apps in a script is still the naming refusal.
+func TestDomainsListKeepsConfiguredAppDefault(t *testing.T) {
+ for _, tc := range []struct {
+ name string
+ apps []string
+ configured bool
+ wantPerApp bool
+ wantErr bool
+ }{
+ {name: "configured", apps: []string{"kass", "other"}, configured: true, wantPerApp: true},
+ {name: "only app", apps: []string{"kass"}, wantPerApp: true},
+ {name: "no apps", apps: []string{}},
+ {name: "console cannot answer"},
+ {name: "several apps in a script", apps: []string{"kass", "other"}, wantErr: true},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ useIsolatedConfig(t)
+ forceTerminal(t, false)
+ overview, perApp := 0, 0
+ ts := listTestServer(t, tc.apps, &overview, &perApp)
+ if tc.configured {
+ if err := os.WriteFile(os.Getenv("CARLOS_CONFIG"), []byte(`{"console":"`+ts.URL+`","app":"kass"}`), 0o600); err != nil {
+ t.Fatal(err)
+ }
+ }
+ out := captureStdout(t)
+ err := domainsList(context.Background(), newTestSession(ts.URL), apiAcct{Seg: "bab"}, "", false)
+ if (err != nil) != tc.wantErr {
+ t.Fatalf("err=%v output:\n%s", err, out)
+ }
+ if tc.wantErr {
+ if overview+perApp != 0 {
+ t.Fatalf("listed after the refusal: overview=%d perApp=%d", overview, perApp)
+ }
+ return
+ }
+ if tc.wantPerApp != (perApp == 1) || tc.wantPerApp == (overview == 1) {
+ t.Fatalf("overview=%d perApp=%d output:\n%s", overview, perApp, out)
+ }
+ if tc.wantPerApp && !strings.Contains(out.String(), "HOST") {
+ t.Fatalf("no claims table:\n%s", out)
+ }
+ })
+ }
+}
+
+// TestDomainsListAllShowsOverview: --all shows the account overview even
+// where an app resolves, one block per domain with its addresses indented;
+// --all with --app is a usage error.
+func TestDomainsListAllShowsOverview(t *testing.T) {
+ useIsolatedConfig(t)
+ overview, perApp := 0, 0
+ ts := listTestServer(t, []string{"kass"}, &overview, &perApp)
+ if err := os.WriteFile(os.Getenv("CARLOS_CONFIG"), []byte(`{"console":"`+ts.URL+`","app":"kass"}`), 0o600); err != nil {
+ t.Fatal(err)
+ }
+ out := captureStdout(t)
+ if err := domainsList(context.Background(), newTestSession(ts.URL), apiAcct{Seg: "bab"}, "kass", true); err == nil {
+ t.Fatal("--all with --app accepted")
+ }
+ if err := domainsList(context.Background(), newTestSession(ts.URL), apiAcct{Seg: "bab"}, "", true); err != nil {
t.Fatal(err)
}
+ if overview != 1 || perApp != 0 {
+ t.Fatalf("overview=%d perApp=%d", overview, perApp)
+ }
got := out.String()
lines := strings.Split(strings.TrimRight(got, "\n"), "\n")
var blocks, indented []string
diff --git a/domains_buy_copy.go b/domains_buy_copy.go
index 59dcaf4b3..08595d929 100644
--- a/domains_buy_copy.go
+++ b/domains_buy_copy.go
@@ -79,12 +79,13 @@ const domainsBuyNotYetHelp = ` buy <name> --not-yet [--contact <id> | --contact
const domainsBuyNotYetUsage = " carlos domains buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [--account <a>] [--account-id <id>] [--console <origin>]\n" +
"buy needs one of --app and --not-yet. either takes --contact <id> in place of --contact-file\n"
-const domainsAccountHelp = ` list [--app <a>] [flags]
- without --app, every domain the account uses: bought here,
- being bought, or registered elsewhere, each with its
- addresses. with --app, that app's hostname claims, joined
- to the fleet's own readings sweep
- (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION)
+const domainsAccountHelp = ` list [--app <a> | --all] [flags]
+ an app's hostname claims, joined to the fleet's own
+ readings sweep (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION).
+ without --app, the configured app or the account's only
+ app. with --all, or when no app is found, every domain
+ the account uses: bought here, being bought, or
+ registered elsewhere, each with its addresses
point <domain> --app <a> [flags]
point a domain bought here at an app: the domain and its
www serve the app. owners only
@@ -92,7 +93,7 @@ const domainsAccountHelp = ` list [--app <a>] [flags]
the contacts saved for registering domains. owners only
`
-const domainsListUsage = "usage: carlos domains list [--app <a>] [--account <a>] [--account-id <id>] [--console <origin>]\n"
+const domainsListUsage = "usage: carlos domains list [--app <a> | --all] [--account <a>] [--account-id <id>] [--console <origin>]\n"
const domainsPointUsage = "usage: carlos domains point <domain> --app <a> [--account <a>] [--account-id <id>] [--console <origin>]\n"
@@ -100,6 +101,7 @@ const domainsContactsUsage = "usage: carlos domains contacts [list | add --file
var domainsAccountCopy = map[string]string{
"notYetFlag": "buy the domain without pointing it at an app yet",
+ "allFlag": "list every domain the account uses, not one app's",
"contactFlag": "saved contact to register the domain to (carlos domains contacts lists them)",
"fileFlag": "JSON file containing the contact details",
"pointAppFlag": "app to point the domain at",
diff --git a/domains_cli.go b/domains_cli.go
index c003ea088..022024ea0 100644
--- a/domains_cli.go
+++ b/domains_cli.go
@@ -348,6 +348,7 @@ func runDomainsDetach(args []string) {
func runDomainsList(args []string) {
fs := flag.NewFlagSet("domains list", flag.ExitOnError)
app := appFlag(fs, "app whose hostname claims to list")
+ all := fs.Bool("all", false, domainsAccountCopy["allFlag"])
consoleFlag := consoleOption(fs, "console to list through (default: the only logged-in one)")
acctRaw := fs.String("account", "", "account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)")
acctIDRaw := fs.String("account-id", "", "account sqid, matched as a sqid ONLY — supersedes --account")
@@ -356,20 +357,38 @@ func runDomainsList(args []string) {
sess := requireAPISession("list", *consoleFlag)
printUsing(stdout, sess)
acct := resolvedAccount(sess, acctRaw, acctIDRaw)
- var err error
- if app2 := strings.TrimSpace(*app); app2 == "" {
- // Without --app, the account's domains (Plan 2a): one block per
- // domain, its addresses indented.
- err = domainsAccountList(context.Background(), sess, acct, stdout)
- } else {
- var recs []apiDomainRecord
- if recs, err = sess.domainList(context.Background(), acct, app2); err == nil {
- printDomainClaims(recs)
+ if err := domainsList(context.Background(), sess, acct, strings.TrimSpace(*app), *all); err != nil {
+ log.Fatalf("domains list: %v", err)
+ }
+}
+
+// domainsList is `domains list`. An omitted --app resolves as it always
+// has (the configured app, else the account's only app, else the chooser
+// or the naming refusal), and that app's claims are listed. When no app
+// resolves (the account has none, or the console cannot say), or with
+// --all, it is the account's domains (Plan 2a): one block per domain, its
+// addresses indented.
+func domainsList(ctx context.Context, sess *apiSession, acct apiAcct, app string, all bool) error {
+ if all && app != "" {
+ return errors.New(domainsListUsage)
+ }
+ if !all && app == "" {
+ var err error
+ app, err = sess.defaultApp(ctx, acct, true)
+ var none *noAppsError
+ if err != nil && !errors.As(err, &none) {
+ return err
}
}
+ if app == "" {
+ return domainsAccountList(ctx, sess, acct, stdout)
+ }
+ recs, err := sess.domainList(ctx, acct, app)
if err != nil {
- log.Fatalf("domains list: %v", err)
+ return err
}
+ printDomainClaims(recs)
+ return nil
}
// printDomainClaims is `domains list --app`'s table.
diff --git a/internal/console/apidomainbuy.go b/internal/console/apidomainbuy.go
index 5490c1358..d9a3c2c24 100644
--- a/internal/console/apidomainbuy.go
+++ b/internal/console/apidomainbuy.go
@@ -290,7 +290,35 @@ func (s *Server) handleAPIAccountDomains(w http.ResponseWriter, r *http.Request)
writeJSON(w, http.StatusOK, map[string]any{"domains": out})
}
-// ---- saved contacts (Plan 2a): the owner's, behind domainBuyAPIGate ----
+// ---- saved contacts (Plan 2a): the owner's ----
+
+// domainContactsAPIGate is the saved-contact doors' gate, the API twin of
+// the browser's contactsGate: a person (the bearer credential stands in
+// for the browser's CSRF check), the owner (anyone else gets the neutral
+// 404) and the domains rate ceiling. Saved contacts are personal data, so
+// it does not need domainBuyReady: they stay listable and removable while
+// buying is off. The routes keep gateNoHostClaim, as the browser's do.
+func (s *Server) domainContactsAPIGate(w http.ResponseWriter, r *http.Request) (*Account, bool) {
+ if !s.apiPerson(w, r) {
+ return nil, false
+ }
+ addr, acct, ok := s.apiAccount(w, r)
+ if !ok {
+ return nil, false
+ }
+ role, err := s.store.RoleContext(r.Context(), acct.ID, addr)
+ if err != nil || role != RoleOwner {
+ http.NotFound(w, r)
+ return nil, false
+ }
+ p, _ := principalFrom(r.Context())
+ if !s.allowDomains(p, time.Now()) {
+ jsonError(w, http.StatusTooManyRequests, domainBuyCopy["rate"])
+ return nil, false
+ }
+ w.Header().Set("Cache-Control", "no-store")
+ return acct, true
+}
type apiSavedContact struct {
ID string `json:"id"`
@@ -314,7 +342,7 @@ func writeContactRefusal(w http.ResponseWriter) {
// handleAPIDomainContacts is GET .../domains/contacts: most recently used
// first, the order a purchase with no contact picks from.
func (s *Server) handleAPIDomainContacts(w http.ResponseWriter, r *http.Request) {
- _, acct, ok := s.domainBuyAPIGate(w, r)
+ acct, ok := s.domainContactsAPIGate(w, r)
if !ok {
return
}
@@ -332,7 +360,7 @@ func (s *Server) handleAPIDomainContacts(w http.ResponseWriter, r *http.Request)
}
func (s *Server) handleAPIDomainContactAdd(w http.ResponseWriter, r *http.Request) {
- _, acct, ok := s.domainBuyAPIGate(w, r)
+ acct, ok := s.domainContactsAPIGate(w, r)
if !ok {
return
}
@@ -357,7 +385,7 @@ func (s *Server) handleAPIDomainContactAdd(w http.ResponseWriter, r *http.Reques
// bumps the version and clears the registrar handle; purchases already
// started keep their frozen copy.
func (s *Server) handleAPIDomainContactEdit(w http.ResponseWriter, r *http.Request) {
- _, acct, ok := s.domainBuyAPIGate(w, r)
+ acct, ok := s.domainContactsAPIGate(w, r)
if !ok {
return
}
@@ -383,7 +411,7 @@ func (s *Server) handleAPIDomainContactEdit(w http.ResponseWriter, r *http.Reque
}
func (s *Server) handleAPIDomainContactRemove(w http.ResponseWriter, r *http.Request) {
- _, acct, ok := s.domainBuyAPIGate(w, r)
+ acct, ok := s.domainContactsAPIGate(w, r)
if !ok {
return
}
diff --git a/internal/console/apidomainbuy_test.go b/internal/console/apidomainbuy_test.go
index 23dd40ca9..325a0de59 100644
--- a/internal/console/apidomainbuy_test.go
+++ b/internal/console/apidomainbuy_test.go
@@ -562,8 +562,41 @@ func TestAPIDomainsListWithoutBuyConfigured(t *testing.T) {
if len(got.Domains) != 1 || got.Domains[0].Domain != "shop.example" {
t.Fatalf("list: %+v", got)
}
- if status, b := buyRequest(t, f, "GET", buyAPIPath(f)+"/contacts", buyToken(t, f), ""); status != 404 {
- t.Fatalf("contacts without buying: %d %s", status, b)
+}
+
+// TestAPIContactsWorkWithBuyingOff: the saved-contact doors are the
+// owner's personal data, like the browser's (Task 9), so they list, add,
+// edit and remove while buying is not configured. Members still get 404.
+func TestAPIContactsWorkWithBuyingOff(t *testing.T) {
+ f := newPurchaseFixture(t)
+ f.srv.cfg.Registrar = nil
+ if f.srv.domainBuyReady() {
+ t.Fatal("buying still configured")
+ }
+ tok := buyToken(t, f)
+ path := buyAPIPath(f) + "/contacts"
+ contact, _ := json.Marshal(purchaseContact())
+ status, b := buyRequest(t, f, "POST", path, tok, string(contact))
+ var added struct{ ID string }
+ if status != 200 || json.Unmarshal([]byte(b), &added) != nil || added.ID == "" {
+ t.Fatalf("add: %d %s", status, b)
+ }
+ if status, b := buyRequest(t, f, "GET", path, tok, ""); status != 200 || !strings.Contains(b, added.ID) {
+ t.Fatalf("list: %d %s", status, b)
+ }
+ if status, b := buyRequest(t, f, "PUT", path+"/"+added.ID, tok, string(contact)); status != 200 {
+ t.Fatalf("edit: %d %s", status, b)
+ }
+ member := memberToken(t, f)
+ if status, b := buyRequest(t, f, "GET", path, member, ""); status != 404 {
+ t.Fatalf("member: %d %s", status, b)
+ }
+ if status, b := buyRequest(t, f, "DELETE", path+"/"+added.ID, tok, ""); status != 200 {
+ t.Fatalf("remove: %d %s", status, b)
+ }
+ // Buying itself stays off.
+ if status, b := buyRequest(t, f, "POST", buyAPIPath(f)+"/check", tok, `{"name":"shop.com"}`); status != 404 {
+ t.Fatalf("check with buying off: %d %s", status, b)
}
}
diff --git a/internal/console/routedecls.go b/internal/console/routedecls.go
index fe885c27d..40026518c 100644
--- a/internal/console/routedecls.go
+++ b/internal/console/routedecls.go
@@ -859,8 +859,10 @@ var routeDecls = []routeDecl{
{Pattern: "POST /api/cli/apps/{account}/{app}/domains", Kind: kindCLIScoped, Allow: svcrole.Allow(svcrole.Publish, svcrole.Instance), Target: scopeDomainBody, Handler: (*Server).handleAPIDomainAttach},
// The account's domains (apidomainbuy.go, Plan 2a): a person who is any
// member, not gated on buying, since a domain registered elsewhere needs
- // nothing bought. Every door below it is the owner's, behind
- // domainBuyAPIGate, and not registered on a host-claim console.
+ // nothing bought. Every door below it is the owner's and not
+ // registered on a host-claim console: the saved contacts behind
+ // domainContactsAPIGate (no domainBuyReady, as the browser's contact
+ // doors), the rest behind domainBuyAPIGate.
{Pattern: "GET /api/cli/accounts/{account}/domains", Kind: kindCLI, Allow: svcrole.Set{}, Handler: (*Server).handleAPIAccountDomains},
{Pattern: "GET /api/cli/accounts/{account}/domains/contacts", Kind: kindCLI, Gate: gateNoHostClaim, Allow: svcrole.Set{}, Handler: (*Server).handleAPIDomainContacts},
{Pattern: "POST /api/cli/accounts/{account}/domains/contacts", Kind: kindCLI, Gate: gateNoHostClaim, Allow: svcrole.Set{}, Handler: (*Server).handleAPIDomainContactAdd},
diff --git a/parity/parity.tsv b/parity/parity.tsv
index 21ef1b936..930f02c1b 100644
--- a/parity/parity.tsv
+++ b/parity/parity.tsv
@@ -82,7 +82,7 @@ move instances gap move ; move status ; move cut ; move abort ; move resolve [--
# domains
domains-list domains both domains list [--app] GET /a/{sqid}/apps/{app}/settings/{section}
-domains-account domains both domains list [account-wide] GET /a/{sqid}/domains The account's domains, bought here and registered elsewhere, each with its addresses.
+domains-account domains both domains list [--all] GET /a/{sqid}/domains The account's domains, bought here and registered elsewhere, each with its addresses; list shows them too when no app resolves.
domains-account-page domains console-only GET /a/{sqid}/domains/{domain} One domain's addresses, expiry and the records to set; the CLI list shows the addresses and expiry, and domains list --app the records.
domains-attach domains both domains attach ; domains detach POST /a/{sqid}/apps/{app}/domains/attach ; POST /a/{sqid}/apps/{app}/domains/detach
domains-verify domains partial domains verify POST /a/{sqid}/apps/{app}/domains/attach There is no Verify button; attaching again verifies.
diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl
index b474993d3..d92e981e8 100644
--- a/testdata/clireg-golden.jsonl
+++ b/testdata/clireg-golden.jsonl
@@ -238,8 +238,8 @@
{"case":"domains contacts | zz-unknown","argv":["domains","contacts","zz-unknown"],"exit":1,"stdout":"","stderr":"usage: carlos domains contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [--account <a>] [--account-id <id>] [--console <origin>]\n"}
{"case":"domains detach | --zz-unknown-flag","argv":["domains","detach","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos domains detach --app <a> [--account <a>] [--account-id <id>] [--console <origin>] <hostname>\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 hostname belongs to\n --console <string> console to detach 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":"domains detach | -h","argv":["domains","detach","-h"],"exit":0,"stdout":"","stderr":"usage: carlos domains detach --app <a> [--account <a>] [--account-id <id>] [--console <origin>] <hostname>\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 hostname belongs to\n --console <string> console to detach 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":"domains list | --zz-unknown-flag","argv":["domains","list","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos domains list [--app <a>] [--account <a>] [--account-id <id>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose hostname claims to list\n --console <string> console to list through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n"}
-{"case":"domains list | -h","argv":["domains","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos domains list [--app <a>] [--account <a>] [--account-id <id>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose hostname claims to list\n --console <string> console to list through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n"}
+{"case":"domains list | --zz-unknown-flag","argv":["domains","list","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos domains list [--app <a> | --all] [--account <a>] [--account-id <id>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --all list every domain the account uses, not one app's\n --app, -a <string> app whose hostname claims to list\n --console <string> console to list through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n"}
+{"case":"domains list | -h","argv":["domains","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos domains list [--app <a> | --all] [--account <a>] [--account-id <id>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --all list every domain the account uses, not one app's\n --app, -a <string> app whose hostname claims to list\n --console <string> console to list through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n"}
{"case":"domains paths | --zz-unknown-flag","argv":["domains","paths","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos domains paths --app <a> [--account <a>] [--account-id <id>] [--console <origin>] <hostname>\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 hostname 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"}
{"case":"domains paths | -h","argv":["domains","paths","-h"],"exit":0,"stdout":"","stderr":"usage: carlos domains paths --app <a> [--account <a>] [--account-id <id>] [--console <origin>] <hostname>\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 hostname 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"}
{"case":"domains placements | --zz-unknown-flag","argv":["domains","placements","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos domains placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [--account <a>] [--account-id <id>] [--console <origin>] <hostname>\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 hostname belongs to\n --catchall also serve every one-label name under the domain from the same instances. set it only when the domain is created. it requires --wildcard\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 --set <value> give the region and the instance that serves the hostname there, as region=instance. repeat this for each region\n --wildcard use one wildcard certificate for the domain. set it only when the domain is created. it needs a CNAME. the message says which CNAME is missing\n"}
@@ -248,12 +248,12 @@
{"case":"domains point | -h","argv":["domains","point","-h"],"exit":0,"stdout":"","stderr":"usage: carlos domains point <domain> --app <a> [--account <a>] [--account-id <id>] [--console <origin>]\nflags:\n --account <string> account (sqid or name)\n --account-id <string> account sqid, matched as a sqid only\n --app, -a <string> app to point the domain at\n --console <string> console to use (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":"domains verify | --zz-unknown-flag","argv":["domains","verify","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos domains verify --app <a> [--channel <c>] [--account <a>] [--account-id <id>] [--console <origin>] <hostname>\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 hostname belongs to\n --channel <string> channel a first-route hostname serves (only needed when the app follows several)\n --console <string> console to verify 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":"domains verify | -h","argv":["domains","verify","-h"],"exit":0,"stdout":"","stderr":"usage: carlos domains verify --app <a> [--channel <c>] [--account <a>] [--account-id <id>] [--console <origin>] <hostname>\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 hostname belongs to\n --channel <string> channel a first-route hostname serves (only needed when the app follows several)\n --console <string> console to verify 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":"domains | --help","argv":["domains","--help"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a>] [flags]\n without --app, every domain the account uses: bought here,\n being bought, or registered elsewhere, each with its\n addresses. with --app, that app's hostname claims, joined\n to the fleet's own readings sweep\n (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION)\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
-{"case":"domains | --zz-unknown-flag","argv":["domains","--zz-unknown-flag"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a>] [flags]\n without --app, every domain the account uses: bought here,\n being bought, or registered elsewhere, each with its\n addresses. with --app, that app's hostname claims, joined\n to the fleet's own readings sweep\n (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION)\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
-{"case":"domains | -h","argv":["domains","-h"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a>] [flags]\n without --app, every domain the account uses: bought here,\n being bought, or registered elsewhere, each with its\n addresses. with --app, that app's hostname claims, joined\n to the fleet's own readings sweep\n (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION)\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
-{"case":"domains | bare","argv":["domains"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a>] [flags]\n without --app, every domain the account uses: bought here,\n being bought, or registered elsewhere, each with its\n addresses. with --app, that app's hostname claims, joined\n to the fleet's own readings sweep\n (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION)\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
-{"case":"domains | help","argv":["domains","help"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a>] [flags]\n without --app, every domain the account uses: bought here,\n being bought, or registered elsewhere, each with its\n addresses. with --app, that app's hostname claims, joined\n to the fleet's own readings sweep\n (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION)\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
-{"case":"domains | zz-unknown","argv":["domains","zz-unknown"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a>] [flags]\n without --app, every domain the account uses: bought here,\n being bought, or registered elsewhere, each with its\n addresses. with --app, that app's hostname claims, joined\n to the fleet's own readings sweep\n (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION)\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
+{"case":"domains | --help","argv":["domains","--help"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a> | --all] [flags]\n an app's hostname claims, joined to the fleet's own\n readings sweep (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION).\n without --app, the configured app or the account's only\n app. with --all, or when no app is found, every domain\n the account uses: bought here, being bought, or\n registered elsewhere, each with its addresses\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
+{"case":"domains | --zz-unknown-flag","argv":["domains","--zz-unknown-flag"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a> | --all] [flags]\n an app's hostname claims, joined to the fleet's own\n readings sweep (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION).\n without --app, the configured app or the account's only\n app. with --all, or when no app is found, every domain\n the account uses: bought here, being bought, or\n registered elsewhere, each with its addresses\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
+{"case":"domains | -h","argv":["domains","-h"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a> | --all] [flags]\n an app's hostname claims, joined to the fleet's own\n readings sweep (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION).\n without --app, the configured app or the account's only\n app. with --all, or when no app is found, every domain\n the account uses: bought here, being bought, or\n registered elsewhere, each with its addresses\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
+{"case":"domains | bare","argv":["domains"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a> | --all] [flags]\n an app's hostname claims, joined to the fleet's own\n readings sweep (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION).\n without --app, the configured app or the account's only\n app. with --all, or when no app is found, every domain\n the account uses: bought here, being bought, or\n registered elsewhere, each with its addresses\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
+{"case":"domains | help","argv":["domains","help"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a> | --all] [flags]\n an app's hostname claims, joined to the fleet's own\n readings sweep (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION).\n without --app, the configured app or the account's only\n app. with --all, or when no app is found, every domain\n the account uses: bought here, being bought, or\n registered elsewhere, each with its addresses\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
+{"case":"domains | zz-unknown","argv":["domains","zz-unknown"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|point|contacts|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n buy <name> --not-yet [--contact <id> | --contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and point it at no app yet. buy needs one of\n --app and --not-yet. --contact <id> registers it to that\n saved contact; with neither contact flag, the one used\n last\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list [--app <a> | --all] [flags]\n an app's hostname claims, joined to the fleet's own\n readings sweep (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION).\n without --app, the configured app or the account's only\n app. with --all, or when no app is found, every domain\n the account uses: bought here, being bought, or\n registered elsewhere, each with its addresses\n point <domain> --app <a> [flags]\n point a domain bought here at an app: the domain and its\n www serve the app. owners only\n contacts [list | add --file contact.json | edit <id> --file contact.json | remove <id>] [flags]\n the contacts saved for registering domains. owners only\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"}
{"case":"economics backhaul | --zz-unknown-flag","argv":["economics","backhaul","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nShows what serving through region edges costs the platform this period:\nthe part of every account's egress that was backhauled from its home box\n(usage.EdgeRow's hop subset — inside the egress totals, never on top),\npriced at the rate card's inter-region $/GB (the extra leg; the home box's\nbytes are already egress) and ABSORBED — it is in nobody's bill (#284).\nOperator only; a non-operator's token gets the same bare 404 an unknown\nroute gets.\nflags:\n --console <string> console to ask (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 --period <string> mtd (default), last, or 7d\n"}
{"case":"economics backhaul | -h","argv":["economics","backhaul","-h"],"exit":0,"stdout":"","stderr":"usage: carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nShows what serving through region edges costs the platform this period:\nthe part of every account's egress that was backhauled from its home box\n(usage.EdgeRow's hop subset — inside the egress totals, never on top),\npriced at the rate card's inter-region $/GB (the extra leg; the home box's\nbytes are already egress) and ABSORBED — it is in nobody's bill (#284).\nOperator only; a non-operator's token gets the same bare 404 an unknown\nroute gets.\nflags:\n --console <string> console to ask (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 --period <string> mtd (default), last, or 7d\n"}
{"case":"economics bill | --zz-unknown-flag","argv":["economics","bill","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\nflags:\n --basis <string> what the total covers: account (the whole account, which runs only CARLOS) or whole (the whole account, CARLOS and other things)\n --console <string> console to record 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 --line <value> one line item, repeatable: Service=usd\n --month <string> billing month, YYYY-MM (required)\n --total <float> invoice total in US dollars (required)\n"}