Init project:

forge init

Dùng flag --force nếu init trong một thư mục không rỗng.

Build/compile một smart contract:

forge build SimpleStorage.sol

Để theo dõi những sự thay đổi trong source code nhằm tự động biên dịch lại (hot reload), thêm vào flag (--watch).

Để format source code:

forge fmt

Tất cả các option có thể có trong file cấu hình foundry.toml: foundry/crates/config/README.md at master · foundry-rs/foundry

Resources