Skip to Content
BuildInstalling shed CLI

Shed CLI

Shed is a command-line tool for interacting with the SHE blockchain. This page will guide you through setting up Shed and introduce you to some basic commands to get started.

Prerequisites

  • Go 1.19+: Installation instructions are available here.

Installation

To install Shed, locate the version you wish to use here, and then execute the following commands:

git clone https://github.com/she-protocol/she-chain cd she-chain git checkout v4.1.4-evm-devnet make install

You can verify that Shed was installed correctly by running:

shed version

If you encounter an error like command not found: shed, you may need to set your GOPATH environment variable.

  1. Use go env GOPATH to find your GOPATH
  2. Add the following lines to your ~/.bashrc or ~/.zshrc:
    export GOPATH=[your GOPATH from step 1] export PATH=$PATH:$GOPATH/bin

For more information see here.

Commands

Shed supports all the commands you need to interact with the chain. To see a list of available commands and explanations of what they do, run shed:

Start she app Usage: shed [command] Available Commands: add-genesis-account Add a genesis account to genesis.json add-wasm-genesis-message Wasm genesis subcommands collect-gentxs Collect genesis txs and output a genesis.json file compact Compact the application DB fully (only if it is a levelDB) config Create or query an application CLI configuration file debug Tool for helping with debugging your application export Export state to JSON gentx Generate a genesis tx carrying a self delegation help Help about any command init Initialize private validator, p2p, genesis, and application configuration files keys Manage your application's keys latest_version Prints the latest version of the app DB migrate Migrate genesis to a specified target version prune Prune app history states by keeping the recent heights and deleting old heights query Querying subcommands rollback rollback cosmos-sdk and tendermint state by one height start Run the full node status Query remote node for status tendermint Tendermint subcommands tools A set of useful tools for she chain tx Transactions subcommands validate-genesis validates the genesis file at the default location or at the location passed as an arg version Print the application binary version information Flags: -h, --help help for shed --home string directory for config and data (default "/Users/bryantran/.she") --log_format string The logging format (json|plain) --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) --trace print out full stack trace on errors Use "shed [command] --help" for more information about a command.

Adding a wallet

You can create a new wallet using the shed keys command:

shed keys add $NAME

Please replace $NAME with the name you would like to use for this key. This will generate a seed phrase and store the account in the CLI for use. Write this mnemonic down and store it in a safe place.

Alternatively, if you would like to import an existing seed phrase, you can add the --recover flag:

shed keys add $NAME --recover

You will then be prompted to input your seed phrase.

⚠️

If you are importing from an EVM wallet like MetaMask, you may need to specify the coin type. Ethereum (EVM) based wallets use coin type 60, while the default on SHE is 118. For example,

shed keys add $NAME --coin-type=60

This will generate a different address than the default coin type of 118.

To see your local wallets, you can run

shed keys list

to see a list of all wallets added, or

shed keys show $NAME

to see a details about a specific wallet.

Last updated on