Foundry Cheat Sheet - Smart Contract Development Commands

Foundry Cheat Sheet - Smart Contract Development Commands

DevTools Store

Foundry Cheat Sheet (2026)

Setup

curl -L https://foundry.paradigm.xyz | bash
foundryup
forge init my-project

Build and Test

forge build
forge test
forge test -vvv
forge test --gas-report

Deploy

forge create --rpc-url $RPC Contract --constructor-args 1000
forge script script/Deploy.s.sol --rpc-url $RPC --broadcast

Interact (cast)

cast send $ADDR "transfer(address,uint256)" $TO 100 --private-key $KEY
cast call $ADDR "balanceOf(address)(uint256)" $WALLET
cast balance $WALLET

Verify

forge verify-contract $RPC $ADDR ContractName --etherscan-api-key $KEY

Templates with Foundry setup: https://rentry.co/85pm7d8y

Report Page