Skip to content

Built-In Binaries

fuels conveniently ships with built-in binaries for forc and fuel-core.

In case you haven't installed The Fuel Toolchain yet, these will be used.

Here's how to configure this explicitly:

ts
export default createConfig({
  workspace: './sway-programs',
  output: './src/sway-programs-api',
  useBuiltinForc: true,
  useBuiltinFuelCore: true,
});
See code in context

You can also call the built-in binaries directly:

console
npx fuels@0.84.0 help forc
npx fuels@0.84.0 forc --version
npx fuels@0.84.0 forc test -h
console
npx fuels@0.84.0 help core
npx fuels@0.84.0 core --version
npx fuels@0.84.0 core run -h

Check the docs for forc and fuel-core:

The Fuel Toolchain

The Fuel Toolchain consists of several components.

You can use fuel-up to get it up and running.

Check if it's working correctly with:

console
forc --version
console
fuel-core --version

The forc and fuel-core binaries will be available in your system and fuels automatically prioritize them instead of the built-in ones.

Here's how to configure this explicitly:

ts
export default createConfig({
  workspace: './sway-programs',
  output: './src/sway-programs-api',
  useBuiltinForc: false,
  useBuiltinFuelCore: false,
});
See code in context