The CLIs are written using clap's derive feature.
See Installation.
Read the 📖 Foundry Book
Debug logs are printed with tracing. You can configure the verbosity level via the RUST_LOG environment variable, on a per package level, e.g.:RUST_LOG=forge,foundry_evm forge test