Socket
Book a DemoInstallSign in
Socket

zoql

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zoql

Zuora Query Language command line client

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

zoql

Command line tool to execute Zuora Object Query Language. Currently very rough and simple, but it works.

Installation

$ npm install -g zoql

Usage

$ zoql --help

  Usage: zoql [options] <query>

  Executes a ZOQL query

  Options:

    -V, --version        output the version number
    --quiet              do not show info messages or progress indicator
    --limit [n]          limit number of response records (default: Infinity)
    --count              returns record count
    --describe [object]  describes an object's fields and related objects
    --url [url]          Zuora REST URL (default: https://rest.zuora.com/)
    --username [user]    Zuora username
    --password [pass]    Zuora password
    -h, --help           output usage information

Environment variables

Some command line options can be provided as environment variables. When both the environment variable and the command line option are given, the command line option takes precedence.

  • ZUORA_URL - Zuora REST URL (--url)
  • ZUORA_USERNAME - Zuora username (--username)
  • ZUORA_PASSWORD - Zuora password (--password)

Examples

# Return ids from all accounts
$ zoql "select Id from Account"

# Return id and timestamps of all rate plan charges updated after a given date
$ zoql "select Id, UpdatedDate from RatePlanCharge where UpdatedDate >= '2018-05-11T10:40:14-07:00'"

# Return a list of fields and related objects for Subscription
$ zoql --describe Subscription

Wishlist

  • Unit tests
  • Prompt for password if it's omitted
  • Authenticate using OAuth; cache authentication token

Keywords

Zuora

FAQs

Package last updated on 25 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts