All apps/Truffle

Truffle

truffle

Truffle is a development environment, testing framework, and asset pipeline for Ethereum.

Runs as truffle|macOS, Linux, Windows|github.com

Command form

ai-draft · 5 tasks · 13 fields

Compile, migrate and test Solidity contracts. Console, debug and package commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui truffle

truffle compile

Compile contracts

Compile contract sources.

Compile contractsExample values, fixed in this page — nothing here reaches a terminal
Basic
Compile all contracts
--all
Suppress output
--quiet
TasksEach one presets the form for one job
Compile changed
allquiet
ParametersOnly these flags are editable in the form
Compile all contracts
boolean
--all
Suppress output
boolean
--quiet

truffle migrate

Run migrations

Deploy contracts to a network. Use a dry run first.

Run migrationsExample values, fixed in this page — nothing here reaches a terminal
Basic
Network*
string
Rerun from the beginning
--reset
Compile all contracts
--compile-all
TasksEach one presets the form for one job
Migrate to network
networkresetcompile_all
Dry run
networkdry_run
ParametersOnly these flags are editable in the form
Network
string
--network
Rerun from the beginning
boolean
--reset
Compile all contracts
boolean
--compile-all
Dry run on a fork
boolean
--dry-run
Run up to migration
integer
--to

truffle test

Run tests

Run JavaScript and Solidity tests.

Run testsExample values, fixed in this page — nothing here reaches a terminal
Basic
Compile all contracts
--compile-all
Stop at first failure
--bail
TasksEach one presets the form for one job
Run all tests
compile_allbail
Run one file
test_filebail
ParametersOnly these flags are editable in the form
Test file
path · positional 0
Network
string
--network
Compile all contracts
boolean
--compile-all
Log contract events
boolean
--show-events
Stop at first failure
boolean
--bail-b
Mixed stack traces
boolean
--stacktrace-t
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed truffle against its version. A form that does not match your version is not offered.