Skip to content

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.

ArgumentMeaning
--console-url <console-url>The console to authorize against (EDGEKIT_CONSOLE_URL wins)
--no-browserOpen the confirmation page in a browser; --no-browser prints the URL only

edgekit logout

Forget a stored CLI session and revoke it.

ArgumentMeaning
--org <org>Organization slug (defaults to the selected one)

edgekit use [org]

Switch between authorized organizations.

ArgumentMeaning
<org>Organization slug (optional)

edgekit whoami

Show the authorized account and organization.

ArgumentMeaning
--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.

ArgumentMeaning
--draftPull the authored draft instead of the deployed registry
--checkReport 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.

ArgumentMeaning
--previewPull the staged preview instead of the deployed document
--checkReport 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.

ArgumentMeaning
--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.

ArgumentMeaning
--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.

ArgumentMeaning
--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)
--jsonPrint one JSON object instead of text

edgekit config apply

Write a config tree into the draft and stage it.

ArgumentMeaning
--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
--yesOverwrite console edits made since --base without asking (for CI)
--jsonPrint 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.

ArgumentMeaning
--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
--jsonPrint 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.

ArgumentMeaning
--tier <tier>qa or prod: picks the console
--jsonPrint one JSON object instead of text

edgekit deploy stage

Freeze the draft into the preview and run the deploy gate, without deploying.

ArgumentMeaning
--tier <tier>qa or prod: picks the console
--jsonPrint one JSON object instead of text

edgekit deploy staged

Deploy the staged preview, if it is still the one whose hash you expect.

ArgumentMeaning
--tier <tier>qa or prod: picks the console
--jsonPrint 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.

ArgumentMeaning
--tier <tier>qa or prod: picks the console
--jsonPrint 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.

ArgumentMeaning
--tier <tier>qa or prod: picks the console
--jsonPrint 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.

ArgumentMeaning
<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
--remoteCheck in EdgeKit’s render Worker, as a push does, instead of on this machine; stores nothing
--tier <tier>qa or prod: picks the console
--jsonPrint 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.

ArgumentMeaning
<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.

ArgumentMeaning
<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
--jsonPrint 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.

ArgumentMeaning
--allInclude archived templates
--tier <tier>qa or prod: picks the console
--jsonPrint 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.

ArgumentMeaning
<name>The template, as under templates/
--tier <tier>qa or prod: picks the console
--jsonPrint 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.

ArgumentMeaning
<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)
--jsonPrint one JSON object instead of text

edgekit.ai