7x Exponential Network Docs Server commands (the API and mirror nodes)
← Command reference

Server commands (the API and mirror nodes)

// updated · xne 0.3.0.8

xne command reference: Server commands (the API and mirror nodes).

server:index

xne server:index [--set server_data=DIR]
  Builds the server's release index from the ranked sources into server_data/index.json.

On the API node: builds the release index (every release tag, its commit, version and stability, and the main branch head) from the ranked sources into server_data/index.json, which the API answers from. Details: server.md.

server:key:issue

xne server:key:issue --account=ACCOUNT --level=health|full --out=FILE
  Issues an install key for an account; writes "<id>:<secret>" once into FILE (0600). The secret is never printed.

Issues an install key.

OptionMeaning
--account=ACCOUNTthe hosting account the install belongs to (recorded with the key)
--level=health\|fullwhat reports signed with the key may hold: health (version and health), full (more detail, never content)
--out=FILEwhere the key is written, once, mode 0600

The <id>:<secret> pair is written once into that file; the secret is never printed and the server keeps only its hash.

server:key:list

xne server:key:list
  The issued keys: id, account, level, created, revoked, fingerprint.

The issued keys: id, account, level, created, revoked, fingerprint.

server:key:revoke

xne server:key:revoke <key id>
  Revokes a key; its signed requests are refused from then on.

Revokes a key; every signed request with it is refused from then on.

server:key:import

xne server:key:import < record.json
  Stores a key record sent by a peer node (server_peers replicate every issue and revoke over ssh stdin).

Stores a key record sent by a peer API node on standard input; server_peers replicate every issue and revoke this way.

server:key:provision

xne server:key:provision --account=ACCOUNT --level=health|full --domain=DOMAIN --target=SSH-TARGET
  Issues a key and installs it on the domain's server (xne key:set --domain over ssh stdin); the fingerprint must match.
  A provisioning system runs it when a customer install goes live.

Issues a key and installs it on the server that hosts the domain (xne key:set --domain over ssh, the key on standard input); the fingerprint read back must match. --account and --level as for server:key:issue; --domain=DOMAIN is the site's domain and --target=SSH-TARGET the ssh destination (user@host) of the server that hosts it.

server:mirror

xne server:mirror [--dry-run]
  Mirrors mirror_from (GitHub) to mirror_to (the GitLab release mirror): branches and tags, never a forced tag.

Copies mirror_from (the GitHub repository of Exponential) to mirror_to (a GitLab release mirror): every branch and tag. A tag that moved upstream is reported, never forced over the mirror's. --dry-run lists what it would push.


← Checks, reports and install keys · Other →