mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
616 B
Plaintext
30 lines
616 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|