August 2019
Intermediate to advanced
486 pages
13h 52m
English
Just like Ganache GUI version, it also comes with a CLI version called ganache-cli. The command-line version is useful in writing automation scripts. This also provides all the options available in the GUI version of Ganache.
To install ganache-cli, run the following command:
$ npm install -g ganache-cliThe preceding command will install ganache-cli globally, and the command will be accessible from anywhere.
To start the Ganache with the default configurations, you can run the following command:
$ ganache-cli
The command will start the Ganache and output the following logs:
Ganache CLI v6.2.5 (ganache-core: 2.3.3)Available Accounts==================(0) 0x1abd8d35a002b1b1cf19b9fc5cea9c914d08d72c (~100 ...