mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 20:35:34 +02:00
truffle: add page (#6534)
This commit is contained in:
parent
42030c2c9f
commit
1e46d18b9d
1 changed files with 24 additions and 0 deletions
24
pages/common/truffle.md
Normal file
24
pages/common/truffle.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# truffle
|
||||||
|
|
||||||
|
> A tool for developing smart contracts for running services on the Ethereum blockchain.
|
||||||
|
> 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}}`
|
Loading…
Add table
Reference in a new issue