-
Notifications
You must be signed in to change notification settings - Fork 2
CLI API
Alex Stoyanov edited this page Apr 17, 2026
·
4 revisions
Ethernity exposes a machine-readable CLI surface under ethernity api for GUI and automation
clients.
ethernity api backupethernity api compactethernity api config getethernity api config setethernity api extendethernity api inspect extendethernity api inspect mintethernity api inspect recoverethernity api mintethernity api recover
These commands write newline-delimited JSON to stdout. Treat stdout as reserved for NDJSON
events only.
This wiki page is only a summary. The authoritative contract lives in the repo:
- schema version:
1 - transport: one JSON object per line on
stdout - encoding: UTF-8 text
- inspect commands do not write files and do not emit
artifactevents - exit code
0: success - exit code
2: validation, input, configuration, or runtime failure - exit code
130: cancelled by user
startedphaseprogresswarningartifactresulterror
The exact object shapes are defined by the repo docs and JSON schema.
- Parse one JSON object per line as it arrives.
- Ignore unknown fields for forward compatibility.
- Use
codevalues for logic andmessagevalues for display. - Use
artifactpaths instead of guessing filenames. - Treat
docs/cli_api.mdand the schema as the source of truth, not this summary page.