```shell npm install anx-cli -g ```

Usage no npm install needed!

<script type="module">
  import anxCli from '';


Anx Cli


npm install anx-cli -g

Dev Installation

git clone
cd <cloned folder>
npm link


Set Target

anx target



anx login [optional username]

Generic GET and POST Commands

Requests can be manually constructed using the get and post commands.


anx get "user?id=12"

Users Command

anx users

Command Result

Id Username        First Name      User Type
1  tester          tester          bidder
2  albert          albert          admin
3  bill            bill            member
4  bert OmAos8r3vYlWV   member

[Records 1 to 25 of 6315] View More? (Y/n)

Command List

Usage: anx <command> [options]


  get [url]              make a GET request to target
  post [url] [payload]   make a POST request to target
  advertiser [advertiser_id] get a single Advertiser record by Id
  advertisers [options]  get a list Advertiser records
  creative [creative_id] get a single Creative record by Id
  creatives [options]    get a list Creative records
  creative-custom-request-template [creative-custom-request-template_id] get a single Creative-custom-request-template record by Id
  creative-custom-request-templates [options]  get a list Creative-custom-request-template records
  member [member_id]     get a single Member record by Id
  members [options]      get a list Member records
  publisher [publisher_id] get a single Publisher record by Id
  publishers [options]   get a list Publisher records
  template [template_id] get a single Template record by Id
  templates [options]    get a list Template records
  user [user_id]         get a single User record by Id
  users [options]        get a list User records
  login [username]       run remote setup commands
  logout                 logout by removing session token
  switch-user [user_id]  switch session user
  target [url]           set target or view current target
  targets                list known targets


  -h, --help                 output usage information
  -V, --version              output the version number
  -s, --pagesize [pagesize]  page size (default 25)
  -t, --trace                print all http requests
  -j, --json                 print as json
  -f, --file <file>          post a file
  -m, --meta                 get meta data


User targets and session tokens are kept in the user's home directory in the .anx-session file.

Example Session File

  "tokens": {
    "": "token-sdf87sd9fa98f7as987",
    "": "token-sfsdg6790s87dfg0sd8"
  "target": "",
  "username": ""