forge-config - Display the current config.
forge config
[options]
Display the current config.
This command can be used to create a new basic foundry.toml
or to see
what values are currently set, taking environment variables and the global
configuration file into account.
The command supports almost all flags of the other commands in Forge to allow overriding values in the displayed configuration.
--basic
Prints a basic configuration file.
{{#include common-options.md}}
-
Create a new basic config:
forge config > foundry.toml
-
Enable FFI in
foundry.toml
:forge config --ffi > foundry.toml