DocsCLI

DocsReference29 of 33 · 2 min read

CLI

Every command and option of the liora command, with what it prints.

liora is the SDK on a command line. It is installed with the SDK, needs Node 22, and runs one command per invocation: it unlocks from a keypair file, does the one thing, and drops the keys.

bash
liora <command> [arguments] [options]

#Commands

CommandNeedsWhat it does
liora keys--keypairPrints the wallet and its meta-address.
liora register <handle>--keypairFiles a registration under the handle.
liora deposit <lamports>--keypairDeposits lamports of public SOL into the private balance.
liora balance--keypairScans and prints the spendable balance.
liora pay <handle-or-meta> <lamports>--keypairPays a whitelisted recipient, by handle or meta-address.
liora scan--keypairPrints the payments the wallet's keys open.
liora withdraw <wallet> <lamports>--keypairPays lamports out to a public wallet.
liora activity--keypairPrints what this wallet sent from this folder, and what it received.
liora ledgerPrints every payment's announcement.
liora audit [recipient]--auditor-keyPrints each payment with its recipient. With a recipient, only theirs.
liora issuer requestsPrints the registrations waiting for a decision.
liora issuer admit|refuse|remove <request-id> <revision>--keypair of the issuerDecides on a registration, against the revision the issuer read.
liora configPrints the program's configuration.

Amounts are whole lamports: 250000000 is 0.25 SOL.

#Options

--keypair <file>
A Solana keypair file: a JSON array of 64 bytes. The wallet of holder and issuer commands.
--auditor-key <file>
A file holding the audit secret as a JSON decimal string.
--api <url>
The API's origin.
--device-prover <url>
A Rings prover running on this machine. Without it, Rings proofs go to the attested prover through the API.
--mode real|fixture
real talks to the chain through the API. fixture talks to a fixture server.
--session <id>
The fixture session to use, in fixture mode.
--csv
With audit: write CSV to standard output.
--json
Print the result as one line of JSON. Errors too, as {"error": …}.

#Keys on disk

--keypair names a Solana keypair file. The CLI signs the unlock message with it and derives the same keys the app would derive for that wallet, so a balance held from the app is spendable from the CLI and the other way round.

--auditor-key names a file with the audit secret as a decimal number in JSON quotes.

The CLI keeps a record of what a wallet sent, so that activity can show it later. The records are in .liora/activity/ under the folder the command ran in, one encrypted file per transfer, readable only with the same keypair.

#Output

Without --json a result is printed as indented name value lines. With --json it is one line of JSON, the same object the SDK call returned.

bash
liora keys --keypair payer.json
state  unlocked
wallet  CzjFSHbXGRVVZfDKmyAT1mA9m63nSfBvrHPyyv9hxo9E
metaAddress  liora:1:8a1e363a240d7bc035e9096033e3c62416fc2d908af0fef86fda3749b5f7b4207efbb943ccea5a63ba9ce3bd7be6933035207143aa5de55d251abd3dbd7f1306
bash
liora register dana --keypair payer.json
id  00570869-8557-4494-93f2-a59bc9127043
wallet  CzjFSHbXGRVVZfDKmyAT1mA9m63nSfBvrHPyyv9hxo9E
handle  dana
metaAddress  liora:1:8a1e363a240d7bc035e9096033e3c62416fc2d908af0fef86fda3749b5f7b4207efbb943ccea5a63ba9ce3bd7be6933035207143aa5de55d251abd3dbd7f1306
status  requested
leafIndex  null
leaf  null
updatedAt  2026-11-25T14:31:41.027Z
bash
liora deposit 2000000000 --keypair payer.json
state  confirmed
kind  deposit
signature  3ie4yhgXrpBv7L6xyEUoJZkxhddrtfPGQdNZ1LxDT7fTfjhWnkTUrQzpX31VE58o2PGYQxJ6cNLTMhGyZeZBcj1W
bash
liora balance --keypair payer.json
assetId  1
decimals  9
symbol  SOL
amountLamports  2000000000
bash
liora pay mira 250000000 --keypair payer.json
state  confirmed
kind  pay
signature  3cceS4ApB8kPaxRWvmFdD36uq5Ayo3GupH4bcJZQpiBJDHDih65F6dpgs382S7qeE565Ej4FsbmFfGirVz4pvwE
receipt
  stealthAddress  c62735922c1c7bfba7eb3e194be987e1806672432231448785bbfc864296cba0
  ephemeralKey  648fc85b4b27f7b42a8e29c3788d0c8f3595ef654a24a7868da8684821bc4895
  viewTag  11
  auditCiphertext
    c1  2ba81de1fc3ac1e798f0e642a82966be11d33e562613d4fc9f3ea616bd307d90
    c2  ed35d2b1257bad14ab277443cf5b371987c72f405d96ebf8d69351cd14fb4f2c
  whitelistRoot  073b116d9ea244810fb4b574cf9bac61c35d7d8b2a56b60facf9fcd4ae6608a8
  signature  3cceS4ApB8kPaxRWvmFdD36uq5Ayo3GupH4bcJZQpiBJDHDih65F6dpgs382S7qeE565Ej4FsbmFfGirVz4pvwE
  eventIndex  0
  slot  4
  blockTime  2026-11-25T14:31:49.162Z
  proofVerified  true
bash
liora activity --keypair payer.json
state  list
entries
  assetId  1
  amountLamports  250000000
  direction  sent
  kind  pay
  status  confirmed
  signature  3cceS4ApB8kPaxRWvmFdD36uq5Ayo3GupH4bcJZQpiBJDHDih65F6dpgs382S7qeE565Ej4FsbmFfGirVz4pvwE
  counterparty  mira

  assetId  1
  amountLamports  2000000000
  direction  received
  kind  deposit
  status  confirmed
  signature  3ie4yhgXrpBv7L6xyEUoJZkxhddrtfPGQdNZ1LxDT7fTfjhWnkTUrQzpX31VE58o2PGYQxJ6cNLTMhGyZeZBcj1W

These runs were made in fixture mode, against a fixture server.

#Exit status

A command exits 0 when it did what was asked. deposit, pay and withdraw exit 1 unless the transfer confirmed, and print the final state either way:

bash
liora pay nobody 1000 --keypair payer.json
state  failed
kind  pay
error
  code  NOT_WHITELISTED
  stage  proof
  message  This recipient is outside the active whitelist.

Any other failure prints its message to standard error and exits 1. With --json the error is printed as {"error": {"code", "stage", "message"}}. The codes are on Errors.

#Issuer commands

bash
liora issuer requests
liora issuer admit <request-id> <revision> --keypair issuer.json

<revision> is the whitelist revision the issuer read before deciding, which the API's GET /v1/whitelist returns. A decision against an older revision is refused.

#Audit

bash
liora audit --auditor-key auditor.json
liora audit mira --auditor-key auditor.json --csv > mira.csv

audit prints every payment with the recipient's decrypted spend key and, where the directory has one, their registration. The CSV adds a spendPublic column to the columns of the SDK's export. Amounts read encrypted.