Forrest logo
back to the ganache-cli tool

ganache-cli:tldr:d7c37

ganache-cli: Run Ganache with a specific account and balance.
$ ganache-cli --account="${account_private_key},${account_balance}"
try on your machine

This command is used to start the Ganache CLI (command-line interface) with a specific account configuration.

Here's a breakdown of the command and its components:

  • ganache-cli: This is the command to start the Ganache CLI. Ganache CLI is a local blockchain development tool used for Ethereum development and testing.

  • --account: This option is used to specify the account configuration. It expects an argument in the format "${account_private_key},${account_balance}".

  • "${account_private_key},${account_balance}": This argument should be provided in the format of a private key and balance for an Ethereum account. The private key is a string of characters that acts as the account's unique identifier and allows access to control the associated funds. The account balance is the amount of Ether (cryptocurrency) associated with the account.

So, by using this command, you are starting the Ganache CLI, and specifying an account configuration with a specific private key and balance for testing purposes.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ganache-cli tool