truffle migrate --reset --network rinkeby
command format
truffle migrate [--reset] [--f <number>] [--to <number>] [--network <name>] [--compile-all] [--verbose-rpc] [--dry-run] [--interactive]
Unless otherwise specified, the truffle migrate
command will be run from the last completed migration script.
command options
- --reset: run all migration scripts from scratch instead of the last completed one
- --f : Start running the migration script specified by number. number points to the prefix of the migration script file
- --to : run to the migration script specified by number
- --network : Specifies the network to use, the network name must already exist in the configuration file
- --compile-all: Compile all contracts instead of intelligently selecting the contracts that need to be compiled
- --verbose-rpc: log and display communication between Truffle and Ethereum clients
- --dry-run: Fork the specified network and only perform test migrations
- --interactive: After a dry run, prompt the user to confirm whether to continue
Truffle 5 Manual / truffle migrate - Deploying Contracts - Huizhi Network