Back to Sway

Forc New

scripts/mdbook-forc-documenter/examples/forc_new.md

0.71.0348 B
Original Source
<!-- markdownlint-disable MD041 -->

EXAMPLE

console
$ forc new my-fuel-project
$ cd my-fuel-project
$ tree
.
├── Forc.toml
└── src
    └── main.sw

Forc.toml is the Forc manifest file, containing information about the project and dependencies.

A src/ directory is created, with a single main.sw Sway file in it.