Please make sure you have already installed Foundry globally
- Install dependencies
$ forge install # Without any argument- Compile
$ forge build- Run test scripts
$ forge test
$ forge test -vvvv
$ (forge build; clear; forge test)- Clean the build artifacts and cache
forge clean- Deploy contracts
forge script script/deploy.s.sol:Deploy --rpc-url sepolia --broadcast --verify -vvvv- Other commands
$ cast run <TXN_HASH> --rpc-url sepolia -vvv
$ cast tx <TXN_HASH> --rpc-url sepolia
$ cast receipt <TXN_HASH> --rpc-url sepolia