Oko/Docs

Command reference

oko contributions link

Links the member signed in to Oko, never one named, to the Wisent account whose one-time code from the Rewards page it is given. Until a member is linked, the ledger holds their events and credits nobody.

Invocation#

Command
oko contributions link CODE [--ledger URL] [--json]

Inputs and options#

  • CODE: the one-time Rewards code.
  • --ledger URL names the contribution ledger (compute.wisent.com); without it, OKO_CONTRIBUTION_LEDGER_URL does. The bearer is read from the item playing oko-contribution-ledger under consumer oko-contribution-client.

Output and state effect#

  • Prints `<contributor> linked: <true|false>`; --json prints the ledger's answer. Oko Desktop's Contributions screen makes the same link through the native API's contributions domain, which links only for Oko Desktop on its connection.

Refusals and safe exits#

  • Only the person links: run inside an agent session it is refused naming that session, and at the person's terminal it asks for Touch ID first.
  • A code the ledger already spent is refused in the ledger's words. Any flag other than --ledger and --json is refused by name.

CLI reference#