⌘K

Icon SunFilledIcon MoonStars
Forc Check

Icon Linkforc-check

Check the current or target project and all of its dependencies for errors.

This will essentially compile the packages without performing the final step of code generation, which is faster than running forc build.

Icon LinkUSAGE:

forc check [OPTIONS] [BUILD_TARGET]

Icon LinkARGS:

<BUILD_TARGET> Build target to use for code generation

[default: fuel] [possible values: fuel, evm, midenvm]

Icon LinkOPTIONS:

--disable-tests

Disable checking unit tests

-h, --help

Print help information

--ipfs-node <IPFS_NODE>

The IPFS Node to use for fetching IPFS sources.

Possible values: PUBLIC, LOCAL, <GATEWAY_URL>

-L, --log-level <LOG_LEVEL>

Set the log level

--locked

Requires that the Forc.lock file is up-to-date. If the lock file is missing, or it needs to be updated, Forc will exit with an error

--offline

Offline mode, prevents Forc from using the network when managing dependencies. Meaning it will only try to use previously downloaded dependencies

-p, --path <PATH>

Path to the project, if not specified, current working directory will be used

-s, --silent

Silence all output

-t, --terse

Terse mode. Limited warning and error output

-v, --verbose

Use verbose output

-V, --version

Print version information

EXAMPLES: #Check the current project forc check

#Check the current project with a different path forc check --path ../tests/

#Check the current project without updating dependencies forc check --locked