This walks one path from install to a settled test payment on mutinynet, then the same steps in a script. It takes about ten minutes. You need a Voltage account with an organization and an environment.
Install the CLI from the install guide, then sign in through your browser:
voltage login --account meFind your organization and environment, then save both with your login as a profile:
voltage organizations list
voltage environments list --org ORG_ID
voltage profiles create test --org ORG_ID --env ENV_ID --account me
voltage context --profile testvoltage context shows what every command with --profile test will use, and where each value came from.
voltage wallets list --profile testUse a wallet on a BTC line of credit. A wallet on a USD line of credit needs a quote for every payment, so step 4 would fail with quote_required.
If there is no such wallet, create one on a BTC line of credit from credit-lines list. Run it without --execute first to see the request, then send it with --execute:
voltage credit-lines list --profile test
voltage wallets create --profile test --name tutorial \
--credit-line CREDIT_LINE_ID --network mutinynet --limit 100000
voltage wallets create --profile test --name tutorial \
--credit-line CREDIT_LINE_ID --network mutinynet --limit 100000 --executeCreate a Lightning invoice, show it as a QR code, and wait until it is paid. Pay it from any mutinynet wallet or faucet:
voltage payments receive --profile test --wallet WALLET_ID \
--currency btc --kind bolt11 --amount 1000 --unit sats --qr --wait completed --executeThe command prints the payment when it settles. If the wait times out (exit code 5), keep watching with voltage payments get PAYMENT_ID --profile test --wait completed.
With --json, each command writes one JSON envelope to stdout and nothing else, and the exit code says what happened:
voltage payments receive --profile test --wallet WALLET_ID --json \
--currency btc --kind bolt11 --amount 1000 --unit sats --wait ready --execute \
| jq -r '.data.data.payment_request'Next: payments, scripting, troubleshooting.