Appearance
The CLI: kernable cloud
The open kernable CLI talks to kernable Cloud through its API, at https://api.kernable.cloud unless --api or KERNABLE_CLOUD_API names another. --organization defaults to your personal organization; --json prints the API's answer as it is.
Session
| Command | What it does |
|---|---|
kernable cloud login [--api <url>] [--no-browser] | Signs in by device code: open the page shown, enter the code, sign in and approve. The session goes into the OS keychain, else ~/.config/kernable/cloud.json (0600). |
kernable cloud logout | Ends the session and forgets it. |
kernable cloud whoami | The account, its organizations and roles, and what each organization still lacks for its first project; for a CI token, its organization. |
In CI, set KERNABLE_CLOUD_TOKEN to an organization's token instead of signing in.
Organizations
| Command | What it does |
|---|---|
kernable cloud organizations | Your organizations. |
kernable cloud organizations create <slug> [<name>] | Opens an organization, you its owner. |
kernable cloud organizations accept-terms <organization> | Accepts the terms and the Preview Access notice. |
kernable cloud organizations verify-payment <organization> | Sets up the organization's billing: prints the payment page (Stripe) to open (prices). |
kernable cloud organizations billing <organization> | Prints the organization's billing portal: invoices, the payment method, cancelling. |
kernable cloud organizations two-factor <organization> on|off | Requires a second factor of every member. |
kernable cloud organizations delete <organization> | Deletes the organization: kept 30 days, restorable. |
kernable cloud organizations restore <organization> | Takes the deletion back. |
Members
| Command | What it does |
|---|---|
kernable cloud members [--organization <organization>] | Members and their roles. |
kernable cloud members invite <email> --role <role> | Invites by mail: owner, admin, developer or viewer. |
kernable cloud members role <identity> <role> | Changes a member's role. |
kernable cloud members remove <identity> | Removes a member. |
Tokens
| Command | What it does |
|---|---|
kernable cloud tokens [--organization <organization>] | The organization's CI tokens, without secrets. |
kernable cloud tokens create <label> --role <role> [--project <project>] [--expires <days>] | A token, shown once; never an owner's. |
kernable cloud tokens revoke <id> | Revokes it. |
Projects
| Command | What it does |
|---|---|
kernable cloud projects [--organization <organization>] | The organization's projects. |
kernable cloud projects create <name> | Records a project, once the organization passed the checks before its first one. |
kernable cloud projects show <name> | The project. |
kernable cloud projects usage <name> [--month <yyyy-mm>] | Its partitions' copies this month: what each holds, GB-months stored, GB sent. |
kernable cloud usage [--month <yyyy-mm>] | The organization's copies this month, against what the monthly fee includes. |
kernable cloud projects links <name> | Its partitions linked to your kernels, each key with its role and state, and the relay they push to. |
kernable cloud projects root <name> | (Next release.) The project's root key, and the old one during a replacement. |
kernable cloud projects root <name> set <root.pub|ID> [--now] | Sets the root key; a later one replaces it, keeping the old one valid until finish (7 days at most), or --now ends it at once. Admins and owners. |
kernable cloud projects root <name> finish | Finishes a replacement: the old root no longer counts. Admins and owners. |
kernable cloud projects link <name> <partition> --pusher <instance.pub|ID> | Links a partition: that pusher may push its copy. A linked partition takes another pusher only once its current one is stopped or revoked. Developers and up. |
kernable cloud projects key <name> <partition> <key.pub|ID> read|push|stop|revoke|activate | read, push: adds the key in that role, active; stop: refused until activate; revoke: refused for good. The relay applies it within seconds. Developers and up. |
kernable cloud projects unlink <name> <partition> | Ends the link at once; the copy is kept 30 days. Admins and owners. |
kernable cloud projects alerts <name> [set <email>...] | Where the project's alerts go besides the organization's owners and admins (at most 10); set without addresses leaves only them. Admins and owners. |
kernable cloud projects node-token <name> <instance> | A one-time join token (24 h) for a managed node. Admins and owners. |
The audit log
| Command | What it does |
|---|---|
kernable cloud audit [--organization <organization>] [--before <position>] [--limit <n>] | The organization's audit log, newest first: when, who, what, on what. Prints how to page back. Admins and owners. |
