@erislandio/masterdata-cli

masterdata CLI

Usage no npm install needed!

<script type="module">
  import erislandioMasterdataCli from 'https://cdn.skypack.dev/@erislandio/masterdata-cli';
</script>

README

Masterdata CLI V2 CLI

Description:

Welcome to the masterdata cli, this CLI is only for querying data in the VTEX masterdata, it is not possible to change data and information.

Install

yarn global add @erislandio/masterdata or npm install @erislandio/masterdata -g

Usage: masterdata command [options]

Options:


 version (v)   Output the version number                                                            
  create        Create a new account: masterdata create {accountName}                                      
  list (ls)     List all registered accounts: masterdata ls                                          
  login (l)     Sign in to an account, example: masterdata login teste@gmail.com or masterdata login 
  switch (s)    Switch account: masterdata switch [teste]                                            
  whoami (w)    displays the information of the logged in user                                       
  help (h)      shows this list of options

starting

  • if you are already registered
masterdata login [email]
  • if you don't have one, just create
masterdata new [email]
  • Adding an account to make queries. You will need appKey and appToken (rest assured it will not be public)
masterdata create [accountName]

prints

  • login

cli

  • whoami

cli