Node Version > 18.0.0
npm install -g @holographxyz/cli
Once installed, you will be able to access the CLI as
holograph. To validate that the CLI is installed, run
which hologaph in your terminal. You should see a directory output for the Holograph terminal command.
You can view extra details about a command by adding the
--help flag. This includes nested commands.
holograph config --help
holograph config:user --help
The second requirement is wallet private key and a password. We never save your private key as plaintext and require the password, so we can send transactions to the blockchain.
Configuration - Required
This command must be run before all other
holograph commands. The
holograph config command will walk you through setting the RPC URls and wallet. Simply follow the prompts.
Which networks do you want to operate?- Select at least one network. For example
Enter the provider url for fuji. Leave blank to use https://api.avax-test.network/ext/bc/C/rpc:- press enter or copy and paste an RPC url
Default private key to use when sending all transactions (will be password encrypted)- Enter the private key for the wallet. Input is hidden for security reasons.
Please enter the password to encrypt the private key with- Enter some password for your wallet
At this point you have installed and configured the Holograph CLI.