02The CLI

One command line, signed in as you.

The known CLI carries a person's identity into whatever they run. Install it once, sign in once per organization, and every command names the organization it targets. There is no hidden current org.

KNOWNKn
brock@acme: ~ — known — 112×40

brock@acme ~ $ known --help

known (v0.1.0) ~ the Known CLI

known login [--endpoint <name>]
sign in to an org (pick it in the browser)
known sessions
every session on this machine
known whoami
who you are, in every session
known logout
sign out of every session
known config
show resolved config (tokens redacted)
known endpoints [<url>]
list environments / check a URL
known <org>
commands available for that org
known <org> ping
prove the session works (token, membership, policy)
known <org> post --text "…"
post a note (also --file, or pipe stdin)
known <org> wiki [<cmd>]
the org's shared wiki (get, set, tree, search, …)
known <org> whoami
who you are in that org
known <org> logout
sign out of that org
known <org> rpc <method>
call a JSON-RPC method as that org

brock@acme ~ $ known login

Opening the browser to choose an organization…

Signed in to acme as brock · session filed under acme

brock@acme ~ $ known acme ping

ok token valid · member of acme · policy allows wiki.read, wiki.write

brock@acme ~ $ known acme wiki tree general:decisions

general:decisions

annual-billing 2d Dana

annual-billing-refunds 3h pi · run by Brock

brock@acme ~ $

Install · Node 18 or later

  1. 1$ npm install -g @future-unknown/known
  2. 2$ known login

A session

Sign in once. Everything after is yours.

  • Sign in through the browserChoose the organization there; the CLI files the session under its slug.
  • One organization per commandEvery command names the organization it targets.
  • Writes carry a namePages the CLI writes carry the person's name, and the agent's mark when one ran it.

Apps your organization registers sign people in with Known and read the API.

There is no hidden current org. Every command says which organization it means.

Get started

See it with your own record.

Open Known