2025-03-14 21:59:59 -06:00
|
|
|
# truffle
|
|
|
|
|
|
|
|
|
|
> Develop smart contracts for running services on the Ethereum blockchain.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://archive.trufflesuite.com/docs/truffle/reference/truffle-commands/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|