CLI
Every plaza command with its flags, for holders, ASP operators and venues.
The CLI is a Node 22 program over @plaza/sdk, in the Plaza repository at backend/cli. Run it with node cli/plaza.mjs from backend, or as plaza from the workspace. Every command prints its result as JSON, or the error message on stderr with exit code 1.
Global flags
--apiURL- The Plaza API. Default
http://127.0.0.1:5902. --keypairpath- A Solana CLI keypair file. Required by every command except
sets. For money commands it is the holder's wallet; foraspandvenuecommands, the authority. --help, -h- Prints the usage.
Holder commands
These unlock the keypair's notes with the same signature the app uses, so the CLI and the app see the same notes.
plaza notes
Prints { shieldedAddress, notes }: your receive address and every note with id, label, mint, amount, spent and sets. A note's id is what the spend commands take.
plaza deposit
--mintAddressrequired- The mint. The wrapped SOL mint for SOL.
--amountu64required- Base units.
Prints the confirmed signature. The keypair signs and pays.
plaza transfer
--notestringrequired- An unspent note's
id. --tostringrequired- The recipient's shielded address, as
plaza notesprints it for them. --setAddressrequired- The ASP account to prove against.
--amountu64required- Base units. The rest of the note returns as change.
plaza withdraw
--notestringrequired- An unspent note's
id. --toAddressrequired- The destination.
--setAddressrequired- The ASP account to prove against.
--amountu64- Base units. Omitted: the whole note.
plaza ragequit
--notestringrequired- The note to exit. It pays out in full to the address that deposited it.
transfer, withdraw and ragequit prove locally and go through the relayer; each prints the confirmed signature.
plaza sets
Prints every set, as GET /sets returns them. Needs no keypair.
ASP commands
plaza asp register
--namestringrequired- 1 to 96 characters.
--manifestURLrequired- The set's manifest, up to 512 bytes.
Registers the keypair as an ASP authority.
plaza asp publish
--leavespathrequired- A JSON file holding an array of decimal label strings, in tree order.
--manifestURLrequired- The manifest document for this root.
--manifest-hashhex- SHA-256 of the manifest document, 64 hex characters.
Builds the root from the leaf file and publishes it with its leaves. Without --manifest-hash, the CLI fetches the manifest, requires its leaves array to equal the leaf file, and hashes the bytes it fetched.
Venue commands
plaza venue register
--namestringrequired- The venue's name.
--acceptstringrequired- Accepted ASP accounts, comma-separated.
--deposit-addressAddress- The deposit address. Default: the keypair's address.
--destination-keypairpath- The deposit address's keypair, required when it differs from
--keypair. Both sign the registration.
plaza venue accept
--deposit-addressAddressrequired- The venue's deposit address.
--acceptstringrequired- The new list, comma-separated. An empty string clears it.
For every asp and venue command, the CLI builds the instruction itself, compares it with the transaction the API built, and signs only when they match.