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:
useBuiltinForc
: true
useBuiltinFuelCore
: true
export default createConfig({
workspace: './sway-programs',
output: './src/sway-programs-api',
useBuiltinForc: true,
useBuiltinFuelCore: true,
});
You can also call the built-in
binaries directly:
npx fuels help forc
npx fuels forc --version
npx fuels forc test -h
npx fuels help core
npx fuels core --version
npx fuels core run -h
Check the docs for forc
and fuel-core
:
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:
forc --version
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:
useBuiltinForc
: false
useBuiltinFuelCore
: false
export default createConfig({
workspace: './sway-programs',
output: './src/sway-programs-api',
useBuiltinForc: false,
useBuiltinFuelCore: false,
});