HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

truffle — Develop smart contracts for running services on the Ethereum blockchain. More information: <https://

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandcontractsclismartrunningtrufflefordevelop

Problem

How to use the truffle command: Develop smart contracts for running services on the Ethereum blockchain. More information: <https://archive.trufflesuite.com/docs/truffle/reference/truffle-commands/>.

Solution

truffle — Develop smart contracts for running services on the Ethereum blockchain. More information: <https://archive.trufflesuite.com/docs/truffle/reference/truffle-commands/>.

Download a pre-built Truffle project (Truffle Box):
truffle unbox {{box_name}}


Compile contract source files in the current directory:
truffle compile


Run JavaScript and Solidity tests:
truffle test


Run migrations to deploy contracts:
truffle migrate


Display help for a subcommand:
truffle help {{subcommand}}

Code Snippets

Download a pre-built Truffle project (Truffle Box)

truffle unbox {{box_name}}

Compile contract source files in the current directory

truffle compile

Run JavaScript and Solidity tests

truffle test

Run migrations to deploy contracts

truffle migrate

Display help for a subcommand

truffle help {{subcommand}}

Context

tldr-pages: common/truffle

Revisions (0)

No revisions yet.