⌘K

Icon SunFilledIcon MoonStars

Icon LinkFuels CLI

The quickest way to build full stack Fuel dApps.

  • fuels init — Creates a new fuels.config.ts file
  • fuels build — Build Forc workspace and generate Typescript for everything
  • fuels deploy — Deploy workspace contracts and save their IDs to JSON file
  • fuels dev — Start local Fuel Core node and build + deploy on every file change

Icon LinkGetting started

Imagine you have this file structure:

my-fuel-dapp # NextJS app or similar
├── sway-programs # Forc's workspace
│   ├── src
│   ├── ...
│   └── Forc.toml
├── public
│   └── ...
├── src
│   ├── app
│   ├── ...
├   └── sway-programs-api # Type-safe generated API
└── package.json

Icon LinkInstallation

Add it to your my-fuel-dapp project:

pnpm add fuels

Icon LinkDouble-checking

npx fuels -v

Icon LinkNext Step

Use pnpm fuels init to create a fuel.config.ts file.