O'Reilly logo

Truffle Quick Start Guide by Nikhil Bhaskar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Ganache-CLI

Ganache-CLI is an Ethereum client that enables you to connect to a local blockchain for testing your decentralized application. You'll see more of Ethereum clients in Chapter 3, Choosing an Ethereum Client, but for now, just know that it allows us to connect to a local Ethereum blockchain (localhost:8545). Here, we are just using Ganache-CLI to create a local blockchain on localhost:8545.

Let's install ganache-cli with the following command:

npm install ganache-cli -g

Then, run it. In a separate terminal window/tab, run ganache-cli.

That's it. In the terminal that you ran ganache-cli, you should see a very familiar screen:

As you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required