CLI
Every command of edgekit, the CLI that pulls an organization’s event schemas and decision types into a repository,
and manages its configuration as files: see Manage config as code.
edgekit login
Authorize this machine against an EdgeKit organization.
| Argument | Meaning |
|---|---|
--console-url <console-url> | The console to authorize against (EDGEKIT_CONSOLE_URL wins) |
--no-browser | Open the confirmation page in a browser; --no-browser prints the URL only |
edgekit logout
Forget a stored CLI session and revoke it.
| Argument | Meaning |
|---|---|
--org <org> | Organization slug (defaults to the selected one) |
edgekit use [org]
Switch between authorized organizations.
| Argument | Meaning |
|---|---|
<org> | Organization slug (optional) |
edgekit whoami
Show the authorized account and organization.
| Argument | Meaning |
|---|---|
--org <org> | Organization slug (defaults to the selected one) |
--console-url <console-url> | The console to ask (EDGEKIT_CONSOLE_URL wins) |
edgekit schemas pull
Write this organization's event schemas into the repository.
| Argument | Meaning |
|---|---|
--draft | Pull the authored draft instead of the deployed registry |
--check | Report drift and exit non-zero; write nothing |
--org <org> | Organization slug (defaults to the selected one) |
--console-url <console-url> | The console to read from (EDGEKIT_CONSOLE_URL wins) |
edgekit types pull
Write this organization's decision types into the repository.
| Argument | Meaning |
|---|---|
--preview | Pull the staged preview instead of the deployed document |
--check | Report drift and exit non-zero; write nothing |
--org <org> | Organization slug (defaults to the selected one) |
--console-url <console-url> | The console to read from (EDGEKIT_CONSOLE_URL wins) |
edgekit config validate
Check a config tree offline against its published schema.
| Argument | Meaning |
|---|---|
--dir <dir> | The repository root, where edgekit.yaml is (defaults to the current directory); the tree is in its paths.config folder, edgekit/ by default |
--tenant <tenant> | The organization's slug (defaults to the tenant in edgekit.yaml) |
--tier <tier> | qa or prod: picks the console and the envs/<tier>.yaml overlay |
edgekit config export
Write this organization's draft config into a config tree.
| Argument | Meaning |
|---|---|
--dir <dir> | The repository root, where edgekit.yaml is (defaults to the current directory); the tree is in its paths.config folder, edgekit/ by default |
--tenant <tenant> | The organization's slug (defaults to the tenant in edgekit.yaml) |
--tier <tier> | qa or prod: picks the console and the envs/<tier>.yaml overlay |
edgekit config plan
Compare a config tree with the draft and stage it dry, writing nothing.
| Argument | Meaning |
|---|---|
--dir <dir> | The repository root, where edgekit.yaml is (defaults to the current directory); the tree is in its paths.config folder, edgekit/ by default |
--tenant <tenant> | The organization's slug (defaults to the tenant in edgekit.yaml) |
--tier <tier> | qa or prod: picks the console and the envs/<tier>.yaml overlay |
--base <base> | The git ref console edits are measured from: what was last applied (defaults to the default branch) |
--json | Print one JSON object instead of text |
edgekit config apply
Write a config tree into the draft and stage it.
| Argument | Meaning |
|---|---|
--dir <dir> | The repository root, where edgekit.yaml is (defaults to the current directory); the tree is in its paths.config folder, edgekit/ by default |
--tenant <tenant> | The organization's slug (defaults to the tenant in edgekit.yaml) |
--tier <tier> | qa or prod: picks the console and the envs/<tier>.yaml overlay |
--base <base> | The git ref console edits are measured from: what was last applied (defaults to the default branch) |
--change-ref <change-ref> | Up to 200 characters recorded with the change, such as an issue URL |
--yes | Overwrite console edits made since --base without asking (for CI) |
--json | Print one JSON object instead of text |
edgekit config deploy
Deploy the staged preview, if it is still the one that was planned. An alias of deploy staged.
| Argument | Meaning |
|---|---|
--dir <dir> | The repository root, where edgekit.yaml is (defaults to the current directory); the tree is in its paths.config folder, edgekit/ by default |
--tenant <tenant> | The organization's slug (defaults to the tenant in edgekit.yaml) |
--tier <tier> | qa or prod: picks the console and the envs/<tier>.yaml overlay |
--expect <expect> | The document hash plan or apply printed, or its first 8 characters or more |
--change-ref <change-ref> | Up to 200 characters recorded with the change, such as an issue URL |
--json | Print one JSON object instead of text |
edgekit deploy diff
Stage the draft dry and print its document hash and its diff against the deployed document, writing nothing.
| Argument | Meaning |
|---|---|
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
edgekit deploy stage
Freeze the draft into the preview and run the deploy gate, without deploying.
| Argument | Meaning |
|---|---|
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
edgekit deploy staged
Deploy the staged preview, if it is still the one whose hash you expect.
| Argument | Meaning |
|---|---|
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
--expect <expect> | The document hash deploy diff or deploy stage printed, or its first 8 characters or more |
--change-ref <change-ref> | Up to 200 characters recorded with the change, such as an issue URL |
edgekit deploy run
Stage the draft and deploy it, if it still hashes what deploy diff printed.
| Argument | Meaning |
|---|---|
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
--expect <expect> | The document hash deploy diff printed, or its first 8 characters or more |
--change-ref <change-ref> | Up to 200 characters recorded with the change, such as an issue URL |
edgekit deploy list
List the newest deployments and the staged preview.
| Argument | Meaning |
|---|---|
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
--limit <limit> | How many deployments to list, at most 200 |
edgekit templates validate [name...]
Run every check a push runs on each named template, or every one under templates/, and push nothing.
| Argument | Meaning |
|---|---|
<name...> | A template under the templates folder’s templates/ (defaults to all of them) (optional) |
--dir <dir> | The repository root, where edgekit.yaml is (defaults to the current directory); templates are in its paths.templates folder, edgekit/templates/ by default |
--remote | Check in EdgeKit’s render Worker, as a push does, instead of on this machine; stores nothing |
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
edgekit templates dev [name]
Serve every fixture of each template as an email and a web page on this machine, rebuilt and reloaded on every change.
| Argument | Meaning |
|---|---|
<name> | A template under the templates folder’s templates/ (defaults to all of them) (optional) |
--dir <dir> | The repository root, where edgekit.yaml is (defaults to the current directory); templates are in its paths.templates folder, edgekit/templates/ by default |
--port <port> | The port on 127.0.0.1 to serve on; 0 picks a free one |
--edition <edition> | Also render this edition, as its preview resolves it, with its main variant’s props; needs template:write |
--tier <tier> | qa or prod: picks the console |
edgekit templates push [name...]
Build each named template, or every one under templates/, and push it to the draft.
| Argument | Meaning |
|---|---|
<name...> | A template under the templates folder’s templates/ (defaults to all of them) (optional) |
--dir <dir> | The repository root, where edgekit.yaml is (defaults to the current directory); templates are in its paths.templates folder, edgekit/templates/ by default |
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
edgekit templates list
List this organization’s custom templates, each version with its source, and which is the draft’s and which is active.
| Argument | Meaning |
|---|---|
--all | Include archived templates |
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
edgekit templates archive <name>
Archive a custom template no active publication uses; its versions are kept, and a push brings it back.
| Argument | Meaning |
|---|---|
<name> | The template, as under templates/ |
--tier <tier> | qa or prod: picks the console |
--json | Print one JSON object instead of text |
edgekit templates extract <source>
Write each received email’s HTML, an outline of it and a manifest to one folder, to start a template from their design.
| Argument | Meaning |
|---|---|
<source> | An .eml file, an mbox, or a folder of them |
--out <out> | The folder to write to: new, or an earlier extract’s (defaults to a new temporary folder) |
--json | Print one JSON object instead of text |