truffle exec <script.js>
Execute a JS module within the Truffle environment
Arguments
Name | Description |
---|---|
script.js | JavaScript file to be executed. Can include path information if the script does not exist in the current directory. (required) |
Options
Name | Description |
---|---|
--network <name> | Specify the network to use, using artifacts specific to that network |
--compile | Compile contracts before executing the script |