0.5.2 • Published 3 years ago

@nevermined-io/vitadao-cli v0.5.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Vita DAO CLI

Installation

npm install -g @nevermined-io/vitadao-cli

or

yarn global add @nevermined-io/vitadao-cli

Usage

Setup Accounts:

  • Option 1: Use a mnemonic
export MNEMONIC="<your 12 words seed phrase>"
  • Option 2: Use keyfiles
export CREATOR_KEYFILE="<path to keyfile>"
export CREATOR_PASSWORD="<keyfile password>"

export BUYER_KEYFILE="<path to keyfile>"
export BUYER_PASSWORD="<keyfile password>"

export MINTER_KEYFILE="<path to keyfile>"
export MINTER_PASSWORD="<keyfile password>"

export INFURA_TOKEN="<your infura token>"

to switch the NFT token address (optional):
export NFT_TOKEN_ADDRESS="<your erc721 compatible token address>"

to switch the ERC20 token address (optional):
export ERC20_TOKEN_ADDRESS="<your erc20 compatible token address>"
$vitadao --help

usage: vitadao <command>

Commands:
  vitadao accounts                                                      Accounts functions
  vitadao accounts list                                                 List all accounts
  vitadao accounts fund account                                         Funds an account on a test net
  vitadao agreements                                                    Agreements functions
  vitadao agreements list did                                           Lists all agreements for given DID
  vitadao agreements show agreementId                                   Shows details about an agreement
  vitadao nfts                                                          NFTs functions
  vitadao nfts show did                                                 Retrieves information about an NFT
  vitadao nfts create [creator] [metadata]                              Creates an NFT
  vitadao nfts mint did [minter] [uri]                                  Mints an NFT
  vitadao nfts order did [buyer]                                        Orders an NFT by paying for it to the escrow
  vitadao nfts transfer agreementId [seller]                            Transfers the NFT to the buyer and the funds from the escrow to the seller
  vitadao nfts download did [consumer] [destination]                    Downloads the data of an NFT
  vitadao nfts search [search]                                          Searches for NFTs

Options:
      --help     Show help                                              [boolean]
      --version  Show version number                                    [boolean]
  -v, --verbose  Run with verbose logging                               [boolean]
  -n, --network  the network to use                 [string] [default: "mainnet"]
0.5.2

3 years ago

0.5.0

3 years ago

0.5.1

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago