From Source

The Sway toolchain can be built directly from the Sway repository.

Installation & Updating

In the root of the repository /sway/<here> build forc with the following command:

cargo build

The executable binary can be found in /sway/target/debug/forc.

Using the Toolchain

After installing run the following command to check the version:

/sway/target/debug/forc --version

The output may look similar to:

forc 0.31.2