Skip to Content
Mastering Blockchain Programming with Solidity
book

Mastering Blockchain Programming with Solidity

by Jitendra Chittoda
August 2019
Intermediate to advanced
486 pages
13h 52m
English
Packt Publishing
Content preview from Mastering Blockchain Programming with Solidity

The command-line version of Ganache

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-cli

The 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood
Complete Cryptocurrency and Blockchain Course | Learn Solidity

Complete Cryptocurrency and Blockchain Course | Learn Solidity

Ravinder Deol, Codestars By Rob Percival, Thomas Wiesner

Publisher Resources

ISBN: 9781839218262Supplemental Content