2021-09-18 12:01:35 +01:00
|
|
|
# truffle
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Develop smart contracts for running services on the Ethereum blockchain.
|
2021-09-18 12:01:35 +01:00
|
|
|
> More information: <https://www.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}}`
|