2.1.0 • Published 2 months ago

@archwayhq/cli v2.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 months ago

Archway Developer CLI

Archway CLI Version Downloads/Week Tests CodeQL Codacy Badge License

Develop WASM smart contracts with the Archway Network's Developer CLI.

Dependencies

Make sure you've installed and configured all dependencies. For the full installation and setup instructions, visit the docs.

If you are on a Linux machine with a distribution different from Ubuntu, you may need to install the GNOME Keyring, or any other keyring compatible with the Secret service API.

CLI Installation

Install the latest published version

npm i -g @archwayhq/cli

or

yarn global add @archwayhq/cli

Install the development version

npm i -g 'github:archway-network/archway-cli'

or

yarn global add 'github:archway-network/archway-cli'

Usage

archway [command] [options]

Commands

$ archway help

new                                Initializes a new project repository

accounts new [options]             Adds a new wallet to the keystore
accounts get [options]             Displays details about an account
accounts list [options]            Lists all accounts in the keyring
accounts remove [options]          Removes an account from the keystore
accounts balances get [options]    Query the balance of an address or account
accounts balances send [options]   Send tokens from an address or account to another
accounts balances [options]        Manage the balances of an account.

config init [options]              Initializes a config file for the current project.
config show [options]              Shows the config file for the current project.
config deployments [options]       Displays the list of deployments, allows filtering by chain, action and contract.
config chains use [options]        Switches the current chain in use and updates the archway-cli.json config file with his information.
config chains export [options]     Exports a built-in chain registry file to {project-root}/.archway-cli/chains/{chain-id}.json.
config chains import [options]     Import a chain registry file and save it to {project-root}/.archway-cli/chains/{chain-id}.json.
config chains [options]            Chain management commands. The chain files follow the Cosmos chain registry schema.

contracts new [options]            Scaffolds a new Smart Contract from a template
contracts build [options]          Builds the contract's optimized WASM file, and its schemas
contracts store [options]          Stores a WASM file on-chain
contracts instantiate [options]    Instantiates code stored on-chain with the given arguments
contracts metadata [options]       Sets a contract rewards metadata
contracts premium [options]        Sets a contract premium flat fee for a contract
contracts execute [options]        Executes a transaction in a contract
contracts migrate [options]        Runs a contract migration
contracts query balance [options]  Access the bank module to query the balance of contracts
contracts query smart [options]    Queries a single smart contract
contracts query [options]          Display help for the contracts query command.

rewards query [options]            Queries the outstanding rewards for a specific account or address
rewards withdraw [options]         Withdraws rewards for a specific account