Command-line interface to Zuora
This feature is not (yet) implemented.
zuo query account zuora-account-id
Standard usage will print out data in a table format.
zuo exec "SELECT Name FROM Product WHERE Status = 'Active'"
ZOQL query string is case-insensitive.
zuo exec "select name from product where status='active'"
If you don't use any WHERE
clause with a String
or Date
argument, you can
use single quotes.
zuo exec 'select name from product'
You can use the --json
flag to print the raw JSON response from Zuora. It's
useful when piping the output to a command-line JSON processor such as
jq
.
zuo exec --json "SELECT Id FROM Account WHERE Balance > 0" | jq '.size'
- Download the latest release
- Move the executable to
/usr/local/bin
mv ~/Downloads/zuo /usr/local/bin
- Create an OAuth client in the Zuora UI
- Add the client ID and secret to your environment
# if using ZSH, put this in your ~/.zshrc
export ZUO_CLIENT_ID="my-client-id"
export ZUO_CLIENT_SECRET="my-client-secret"
export ZUO_BASE_URL="https://rest.apisandbox.zuora.com"
Because it's Z-u-ora, not Zoura people!
(It's the same as Zendesk, not ZenDesk, no capital “d” my friend.)