Create a new Forc project at
forc new [OPTIONS]
The path at which the project directory will be created
The default program type. Excluding all flags or adding this flag creates a basic contract program
Print help information
Adding this flag creates an empty library program
Set the package name. Defaults to the directory name
Adding this flag creates an empty predicate program
Adding this flag creates an empty script program
Use verbose output
$ forc new my-fuel-project
$ cd my-fuel-project
│ └── main.sw
Forc.toml is the Forc manifest file, containing information about the project and dependencies.
Cargo.toml is the Rust project manifest file, used by the Rust-based tests package.
src/ directory is created, with a single
main.sw Sway file in it.
tests/ directory is also created. The
Cargo.toml in the root directory contains necessary Rust dependencies to enable you to write Rust-based tests using our Rust SDK (
fuels-rs). More on this in the
Test section down below.