Install the latest release by using foundryup
# Open your terminal and type in the following command:
$ curl -L https://foundry.paradigm.xyz | bash
# This will download foundryup. Then install Foundry by running:
$ foundryupFor detailed explanation on how things work, check out the documentation.
$ forge buildThe path to the contract is in the format :, e.g. src/Contract.sol:Contract
$ forge create src/Cast.sol:Cast --private-key=WALLET_PRIVATE_KEYThe deployed NFT contract address is the field of Deployed to in result
Deployer: 0x0000000000000000000000000000000000000000
Deployed to: 0x0000000000000000000000000000000000000000
Transaction hash: 0x0000000000000000000000000000000000000000
$ forge inspect Cast abi | tee CastABI.json$ forge clean