Chapter 9, Truffle Basics and Unit Testing
Initis used for initializing atruffleproject,Migrateis used to build and deploy contracts on the target network,testis used to execute unit tests within a truffle project, andconsoleis used to interactively work with the network using truffle.- By modifying the
truffle.jsonfile and adding network details in thejsonformat:networks: { development: { host: "127.0.0.1", port: 8545, network_id: "*" // Match any network id } }