Skip to content

Latest commit

 

History

History
83 lines (56 loc) · 1.87 KB

README.md

File metadata and controls

83 lines (56 loc) · 1.87 KB

COSMWASM CLI

This package is a cli that allows cosmwasm to interact with different networks.

GitHub license npm

Installation

npm i -g cosmwasm-cli

⚠️ Is necessary to config a key in order to interact with the cli

API Usage

Usage: cwcli [command]

Cosmwasm Command Line Interface

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  keys [command]           manage your keys
  networks [command]       manage networks
  wasm [command]           wasm transaction subcommands

Wasm Command

Usage: cwcli wasm [command]

Wasm transaction subcommands

Options:
  -h, --help                  display help for command

Commands:
  upload <wasm file>          Upload a wasm binary
  query <address> <msg>       Querying commands for contracts
  execute <address> <msg>     execute a smart contract method
  instantiate <codeId> <msg>  instantiate an uploaded contract

Keys Command

Usage: cwcli keys [command]

Manage your keys

Options:
  -h, --help     display help for command

Commands:
  add <name>     Add an encrypted private key (either newly generated or recovered), encrypt it, and save to keyring
  delete <name>  Delete keys from the cli
  show <name>    Return address depending on network selection
  list           Return a list of all public keys stored by this cli

Network Command

Usage: cwcli networks [command]

Manage networks

Options:
  -h, --help      display help for command

Commands:
  add <filePath>  Load a custom network
  delete <name>   Remove a custom network
  list            show a list of networks