Domain commands: authenticate, benchmark, claim, connect
The Domain Verbs authenticate, benchmark, claim, connect as CLI commands, with inputs, result, refusals and an example.
Reference for Domain, one group of Domain commands.
Domain.authenticate
Authenticate writes a Domain’s SPF, DKIM and DMARC records and verifies them before its first send. Verb page.
npx startup-builder do Domain.authenticate --json '<input>' [--try | --send | --do]Emits Domain.authenticated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
domain | Domain | required | The sending Domain. |
dmarc | string | The DMARC policy; it starts at none with reports and tightens to quarantine. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
domain | Domain | required | The Domain, authenticated. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
npx startup-builder do Domain.authenticate --json '{"domain": "domain_VbYut4CTsH"}'Domain.benchmark
Benchmark measures a Domain’s estimated traffic, ranking Keywords, authority and referring domains beside the competitors named. Verb page.
npx startup-builder do Domain.benchmark --json '<input>' [--try | --send | --do]Emits Domain.benchmarked.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
hostname | string | required | The name to measure: the Startup’s own or a competitor’s. |
competitors | string[] | Names to measure beside it. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
readings | json | required | One measure per name, each with its method and observation time. |
domain | Domain | required | The Domain measured. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
npx startup-builder do Domain.benchmark --json '{"hostname": "taxcalc.tools"}'Domain.claim
Claim gives a Startup a one-label name under an issuing Domain, or assigns it a held Domain through an approved Change. Verb page.
npx startup-builder do Domain.claim --json '<input>' [--try | --send | --do]Emits Domain.claimed.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
hostname | string | required | The name to claim. |
startup | Startup | required | The Startup it serves. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
domain | Domain | required | The claimed Domain. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
A label under an issuing Domain whose publicSuffix is false | refused | Clear what the check names, then call it again. | None. |
Reserved labels such as www, api, admin, mail, mcp, docs and sibling Brands | refused | Clear what the check names, then call it again. | None. |
Example
npx startup-builder do Domain.claim --json '{"hostname": "kilnbakery.headless.ly", "startup": "startup_ROlZw7tNIz"}'Domain.connect
Connect attaches a hostname a Startup already holds and verifies ownership through DNS. Verb page.
npx startup-builder do Domain.connect --json '<input>' [--try | --send | --do]Emits Domain.connected.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
hostname | string | required | The hostname to attach. |
startup | Startup | required | The Startup it serves. |
tenant | Tenant | The Tenant it serves, when a Customer connects its own name. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
domain | Domain | required | The connected Domain. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The input does not match the schema of the operation. | invalid-input | Read the schema of the operation, then send every required field with the right type. | None. |
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The record changed since it was read, so the write would overwrite a newer version. | conflict | Read the record again, then retry the write against its current state. | None. |
A wildcard name for a Tenant, and past the Tenant’s name count follows its Entitlement’s atBound | refused | Clear what the check names, then call it again. | None. |
Example
npx startup-builder do Domain.connect --json '{"hostname": "kilnbakery.com", "startup": "startup_ROlZw7tNIz"}'