Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: remove built-in binaries for forc and fuel-core #2143

Merged
merged 126 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
143ae31
Removed documentation reference to the built-in binaries
petertonysmith94 Apr 23, 2024
9e86b74
Update versions on documentation
petertonysmith94 Apr 23, 2024
00210a6
Changeset
petertonysmith94 Apr 23, 2024
8940ff9
Removed unused configs
petertonysmith94 Apr 23, 2024
ddea6a9
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 Apr 23, 2024
61e0049
Removed `forc` and `core` from CLI + configuration
petertonysmith94 Apr 23, 2024
ec14826
Removed trustedDependencies
petertonysmith94 Apr 23, 2024
cb33755
Moved forc and fuel-core to internal
petertonysmith94 Apr 23, 2024
e7fd385
Removed forc and fuel-core from fuels
petertonysmith94 Apr 23, 2024
b629f57
Changed to @internal/forc and @internal/fuel-core namespaces
petertonysmith94 Apr 23, 2024
1ebe3ae
Removed unneed import
petertonysmith94 Apr 23, 2024
74efc8b
Lint
petertonysmith94 Apr 23, 2024
d6cd544
Fixed filepaths for fuel-core and forc
petertonysmith94 Apr 23, 2024
cc5ce23
Fix VERSION_EXPERIMENTAL
petertonysmith94 Apr 23, 2024
e480ab8
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 Apr 23, 2024
03a1610
Added packages to knip ignore
petertonysmith94 Apr 23, 2024
7fb5690
Update .changeset/friendly-deers-glow.md
petertonysmith94 Apr 23, 2024
11e2f7b
Implemented `forcPath` and `fuelCorePath`
petertonysmith94 Apr 23, 2024
08658d5
Merge branch 'ps/docs/undocument-binaries' of https://github.com/Fuel…
petertonysmith94 Apr 23, 2024
0d79292
Fixed forc version path
petertonysmith94 Apr 23, 2024
8549306
Removed binaries from docs
petertonysmith94 Apr 23, 2024
e9f19dc
Lint
petertonysmith94 Apr 23, 2024
e0dd7bd
Finalising passing though forcPath and fuelCorePath
petertonysmith94 Apr 24, 2024
597b615
Re-added binary source log
petertonysmith94 Apr 24, 2024
d0dbd51
Readd tests for init config
petertonysmith94 Apr 24, 2024
65eba4e
Adding functionality to pass thought a custom fuelCorePath to launchNode
petertonysmith94 Apr 24, 2024
01c4ecd
Added fuelCorePath to autoStartFuelCore
petertonysmith94 Apr 24, 2024
4d6568a
Tests around loadConfig
petertonysmith94 Apr 24, 2024
abc48ea
Changeset update
petertonysmith94 Apr 24, 2024
f4faeb0
Lint
petertonysmith94 Apr 24, 2024
51bedd0
Removed unneeded forc path conditional
petertonysmith94 Apr 24, 2024
8203950
Removed `useSystemFuelCore` from `autoStartFuelCore`
petertonysmith94 Apr 24, 2024
ac61598
Added doc block param for launchNode
petertonysmith94 Apr 24, 2024
3c336f8
Removed
petertonysmith94 Apr 24, 2024
174b07a
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 Apr 24, 2024
675d168
Removed @fuel-ts/versions from changeset
petertonysmith94 Apr 24, 2024
5a6caf3
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 Apr 24, 2024
3621f8b
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 Apr 25, 2024
5b04cdd
Update .changeset/friendly-deers-glow.md
petertonysmith94 Apr 25, 2024
dab4202
Added rewrite functionality for fuels.config
petertonysmith94 Apr 25, 2024
40c7915
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 Apr 26, 2024
f3536b1
Removed binaries doc
petertonysmith94 Apr 27, 2024
adfab06
Lint
petertonysmith94 Apr 27, 2024
6ac2e1a
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 Apr 29, 2024
6ce2e09
Merge branch 'master' into ps/docs/undocument-binaries
maschad Apr 29, 2024
6325e98
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 Apr 30, 2024
36fd47c
Log out the binary paths for debugging purposes only
petertonysmith94 Apr 30, 2024
6a19655
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 Apr 30, 2024
e91eace
Merge branch 'master' into ps/docs/undocument-binaries
Dhaiwat10 Apr 30, 2024
be777c5
Fix changeset version
petertonysmith94 May 1, 2024
34ec48d
Reshuffle test case
petertonysmith94 May 1, 2024
7c77c50
Added functionality to pass through a custom fuel core or forc path t…
petertonysmith94 May 1, 2024
d3a6786
Throw error when binary path not found
petertonysmith94 May 1, 2024
37527ed
Lint
petertonysmith94 May 1, 2024
834b242
Added @fuels-ts/versions to changeset
petertonysmith94 May 1, 2024
cc7a7a6
Added forcPath and fuelCorePath for required tests
petertonysmith94 May 1, 2024
458b2fa
Added forcPath and fuelCorePath for deploy and dev tests
petertonysmith94 May 1, 2024
5452b06
Extracted find binary logics to cli-utils
petertonysmith94 May 2, 2024
d7ad26e
Removed unneeded additions to getSystemVersions
petertonysmith94 May 2, 2024
bf16835
Linting
petertonysmith94 May 2, 2024
687d94f
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 May 2, 2024
0237b69
Removed unneeded dependency
petertonysmith94 May 2, 2024
6dcca89
Added versions to the utils package
petertonysmith94 May 2, 2024
0612635
Added node group to test file
petertonysmith94 May 2, 2024
af4e1bb
Merge branch 'master' of github.com:FuelLabs/fuels-ts into ps/docs/un…
petertonysmith94 May 6, 2024
53a466e
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 May 6, 2024
f03062e
Merge branch 'ps/docs/undocument-binaries' of https://github.com/Fuel…
petertonysmith94 May 6, 2024
8910b11
pls release
petertonysmith94 May 6, 2024
c0fb94d
Fixing issue with path not being found correctly
petertonysmith94 May 6, 2024
a75c7ca
Lint
petertonysmith94 May 6, 2024
bd2643c
Suppress stdio for getSystemVersion
petertonysmith94 May 7, 2024
b46115d
Making error message more explicit
petertonysmith94 May 7, 2024
7b854d2
Only display the error message when config throws
petertonysmith94 May 7, 2024
ec0efd5
Lint
petertonysmith94 May 7, 2024
5dc2014
Fixing tests
petertonysmith94 May 7, 2024
3fb681f
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 May 7, 2024
ea8a278
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 May 8, 2024
38e8f54
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 May 9, 2024
cbc25d8
Added binary paths to the versions command
petertonysmith94 May 10, 2024
0104ab1
Added version error for incompatible versions
petertonysmith94 May 10, 2024
67f0674
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 May 10, 2024
5f2600c
Lint
petertonysmith94 May 10, 2024
2d3621f
Missing test group
petertonysmith94 May 10, 2024
c0f7307
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 May 13, 2024
6d88d25
Merge remote-tracking branch 'origin' into ps/docs/undocument-binaries
petertonysmith94 May 13, 2024
dd543dd
Updated docs to reflect changes better
petertonysmith94 May 13, 2024
85d4f2a
Suppressing the version logs (stderr) from outputting
petertonysmith94 May 13, 2024
ec7a3c5
Removed region
petertonysmith94 May 13, 2024
844a385
Incorrect binary
petertonysmith94 May 13, 2024
0acf837
Merge branch 'master' of github.com:FuelLabs/fuels-ts into ps/docs/un…
petertonysmith94 May 14, 2024
3519001
Merge branch 'master' into ps/docs/undocument-binaries
arboleya May 14, 2024
34333f8
Removed release tag
petertonysmith94 May 14, 2024
ec3c2f0
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 May 14, 2024
bc90d1d
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 May 15, 2024
9181e70
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 May 15, 2024
f5f3bff
Fixing test
petertonysmith94 May 15, 2024
c870b81
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 May 15, 2024
054d877
Auto-populate latest binary versions to docs
petertonysmith94 May 15, 2024
4d33bf6
Added default install path for forc and fuel-core to examples
petertonysmith94 May 15, 2024
a1d8827
Rewrite Prerequisites
petertonysmith94 May 15, 2024
442f306
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 May 15, 2024
f443be2
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 May 15, 2024
d41c11d
Lint
petertonysmith94 May 15, 2024
5b8b9dc
Anchor doesn't exist
petertonysmith94 May 15, 2024
497f2df
Merge branch 'master' into ps/docs/undocument-binaries
arboleya May 16, 2024
4392ba3
Nitty McNittyson: Whitespace
petertonysmith94 May 16, 2024
9bc2e17
Nitty McNittyson: Whitespace
petertonysmith94 May 16, 2024
0c14e3f
Nitty McNittyson: Whitespace
petertonysmith94 May 16, 2024
7e5f540
Updated logs with binary path
petertonysmith94 May 16, 2024
3656767
Merge branch 'master' of github.com:FuelLabs/fuels-ts into ps/docs/un…
petertonysmith94 May 16, 2024
a002bfa
Merge branch 'ps/docs/undocument-binaries' of github.com:FuelLabs/fue…
petertonysmith94 May 16, 2024
9d24643
Fixing ci:test
petertonysmith94 May 16, 2024
a25091f
Refactored to warn the user over throwing
petertonysmith94 May 16, 2024
3a51c67
Verbose warning message
petertonysmith94 May 16, 2024
c6a06ea
Removed old parameter
petertonysmith94 May 16, 2024
c52036e
Removed `useSystemFuelCore` from `launchNode`
petertonysmith94 May 16, 2024
a12e734
Fix url in config
petertonysmith94 May 16, 2024
157ebb9
Lint
petertonysmith94 May 16, 2024
90c2e85
Removed redundant `findBinPath` method
petertonysmith94 May 16, 2024
16b995e
Lint
petertonysmith94 May 16, 2024
c3958c1
Merge branch 'master' of github.com:FuelLabs/fuels-ts into ps/docs/un…
petertonysmith94 May 16, 2024
4dc9952
Merge branch 'master' of github.com:FuelLabs/fuels-ts into ps/docs/un…
petertonysmith94 May 17, 2024
2896eb4
Merge branch 'master' of github.com:FuelLabs/fuels-ts into ps/docs/un…
petertonysmith94 May 17, 2024
2ac2c56
Merge branch 'master' of github.com:FuelLabs/fuels-ts into ps/docs/un…
petertonysmith94 May 20, 2024
357337e
Merge branch 'master' into ps/docs/undocument-binaries
petertonysmith94 May 20, 2024
328f809
chore: changeset update
petertonysmith94 May 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/friendly-deers-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@fuel-ts/account": patch
"create-fuels": patch
"fuels": minor
"@fuel-ts/utils": minor
"@fuel-ts/versions": patch
petertonysmith94 marked this conversation as resolved.
Show resolved Hide resolved
arboleya marked this conversation as resolved.
Show resolved Hide resolved
---

chore!: remove built-in binaries for `forc` and `fuel-core`
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
run: |
pnpm changeset version
echo "RELEASE_VERSION=v$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' packages/fuels/package.json)" >> $GITHUB_ENV
echo "FUEL_CORE_VERSION=$(cat ./packages/fuel-core/VERSION)" >> $GITHUB_ENV
echo "FORC_VERSION=$(cat ./packages/forc/VERSION)" >> $GITHUB_ENV
echo "FUEL_CORE_VERSION=$(cat ./internal/fuel-core/VERSION)" >> $GITHUB_ENV
echo "FORC_VERSION=$(cat ./internal/forc/VERSION)" >> $GITHUB_ENV
git reset --hard
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
],
"ignoreDependencies": [
"@fuel-ts/*",
"@internal/fuel-core",
"@internal/forc",
"@types/jest",
"@types/rimraf",
"@graphql-codegen*",
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ After this you should run tests and fix any incompatibilities.

# Updating Fuel Core version

Manually edit the `packages/fuel-core/VERSION` file, add the right version, and then:
Manually edit the `internal/fuel-core/VERSION` file, add the right version, and then:

```sh
pnpm install # will download new binaries
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ Commands:
deploy [options] Deploy contracts to the Fuel network
typegen [options] Generate Typescript from Sway ABI JSON files
versions Check for version incompatibilities
core Wrapper around Fuel Core binary
forc Wrapper around Forc binary
help [command] Display help for command
```

Expand Down
6 changes: 1 addition & 5 deletions apps/create-fuels-counter-guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,5 @@
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
},
"trustedDependencies": [
"@fuel-ts/fuel-core",
"@fuel-ts/forc"
]
}
}
10 changes: 0 additions & 10 deletions apps/demo-fuels/fuels.config.explicit-built-in.ts

This file was deleted.

10 changes: 0 additions & 10 deletions apps/demo-fuels/fuels.config.explicit-system.ts

This file was deleted.

18 changes: 9 additions & 9 deletions apps/demo-fuels/fuels.config.full.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-console */
import { createConfig } from 'fuels';
import type { CommandEvent, ContractDeployOptions, FuelsConfig } from 'fuels/src/cli/types';
import type { CommandEvent, ContractDeployOptions, FuelsConfig } from 'fuels';

const MY_FIRST_DEPLOYED_CONTRACT_NAME = '';

Expand Down Expand Up @@ -96,15 +96,15 @@ export default createConfig({
},
// #endregion onFailure

// #region useBuiltInForc
// Default: undefined
useBuiltinForc: false,
// #endregion useBuiltInForc
// #region forcPath
// Default: 'forc',
forcPath: '~/.fuelup/bin/forc',
// #endregion forcPath

// #region useBuiltInFuelCore
// Default: undefined
useBuiltinFuelCore: false,
// #endregion useBuiltInFuelCore
// #region fuelCorePath
// Default: 'fuel-core'
fuelCorePath: '~/.fuelup/bin/fuel-core',
// #endregion fuelCorePath
});

export const simpleDeployConfig = createConfig({
Expand Down
13 changes: 13 additions & 0 deletions apps/demo-fuels/fuels.config.minimal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// #region config
import { createConfig } from 'fuels';

export default createConfig({
workspace: './sway-programs', // forc workspace
output: './src/sway-programs-api',
});
// #endregion config

/**
* Check the docs:
* https://docs.fuel.network/docs/fuels-ts/fuels-cli/config-file/
*/
6 changes: 3 additions & 3 deletions apps/demo-fuels/fuels.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// #region config
import { createConfig } from 'fuels';

export default createConfig({
workspace: './sway-programs', // forc workspace
output: './src/sway-programs-api',
forcPath: 'fuels-forc',
fuelCorePath: 'fuels-core',
});
// #endregion config

/**
* Check the docs:
* https://fuellabs.github.io/fuels-ts/guide/fuels/config-file
* https://docs.fuel.network/docs/fuels-ts/fuels-cli/config-file/
*/
2 changes: 1 addition & 1 deletion apps/demo-typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@fuel-ts/account": "workspace:*",
"@fuel-ts/errors": "workspace:*",
"@fuel-ts/forc": "workspace:*"
"@internal/forc": "workspace:*"
},
"version": null
}
2 changes: 2 additions & 0 deletions apps/docs-snippets/fuels.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ export default createConfig({
workspace: './test/fixtures/forc-projects',
output: './test/typegen',
forcBuildFlags: ['--release'],
forcPath: 'fuels-forc',
fuelCorePath: 'fuels-core',
});
4 changes: 0 additions & 4 deletions apps/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ export default defineConfig({
text: 'Commands',
link: '/guide/fuels-cli/commands',
},
{
text: 'Binaries',
link: '/guide/fuels-cli/binaries',
},
{
text: 'ABI Typegen',
link: '/guide/fuels-cli/abi-typegen',
Expand Down
61 changes: 0 additions & 61 deletions apps/docs/src/guide/fuels-cli/binaries.md

This file was deleted.

43 changes: 13 additions & 30 deletions apps/docs/src/guide/fuels-cli/commands.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script setup>
import { data } from '../../versions.data'
const { fuels } = data
const { fuels, forc, fuelCore } = data
</script>

# Commands

The `fuels` CLI consists of a couple commands.
The `fuels` CLI consists of a couple of commands.

## `fuels init`

Expand Down Expand Up @@ -36,7 +36,7 @@ npx fuels@{{fuels}} init --workspace ./sway-programs --output ./src/sway-program

This will give you a minimal configuration:

<<< @../../../demo-fuels/fuels.config.ts#config{ts:line-numbers}
<<< @../../../demo-fuels/fuels.config.minimal.ts#config{ts:line-numbers}

In a nutshell:

Expand Down Expand Up @@ -127,7 +127,7 @@ The `fuels dev` command does three things:

1. Auto-start a short-lived `fuel-core` node ([docs](./config-file.md#autostartfuelcore))
1. Runs `build` and `deploy` once at the start
1. Watches your Forc workspace and repeats previous step on every change
1. Watches your Forc workspace and repeats the previous step on every change

> _In `dev` mode, every time you update a contract on your Forc `workspace`, we re-generate type definitions and factory classes for it, following your pre-configured [`output`](./config-file.md#output) directory. If it's part of another build system running in dev mode (i.e. `next dev`), you can expect it to re-build / auto-reload as well._

Expand Down Expand Up @@ -161,31 +161,14 @@ Check for version incompatibilities between your [Fuel Toolchain](https://docs.f
npx fuels@{{fuels}} versions
```

```
```console-vue
┌───────────┬───────────┬────────────────┬─────────────┐
│ │ Supported │ Yours / System │ System Path │
├───────────┼───────────┼────────────────┼─────────────┤
│ Forc │ {{forc}} │ {{forc}} │ forc │
├───────────┼───────────┼────────────────┼─────────────┤
│ Fuel-Core │ {{fuelCore}} │ {{fuelCore}} │ fuel-core │
└───────────┴───────────┴────────────────┴─────────────┘

You have all the right versions! ⚡
┌───────────┬───────────┬─────────────────┐
│ │ Supported │ Yours / System │
├───────────┼───────────┼─────────────────┤
│ Forc │ 0.30.0 │ 0.30.0 │
├───────────┼───────────┼─────────────────┤
│ Fuel-Core │ 0.14.0 │ 0.14.0 │
└───────────┴───────────┴─────────────────┘
```

## `fuels forc`

Simple [wrapper](./binaries.md) around the `forc` binary.

Check also:

- [Built-in Binaries](./binaries.md)
- [`forc` documentation](https://docs.fuel.network/docs/forc/commands/)

## `fuels core`

Simple [wrapper](./binaries.md) around the `fuel-core` binary.

Check also:

- [Built-in Binaries](./binaries.md)
- [`fuel-core` documentation](https://docs.fuel.network/guides/running-a-node/running-a-local-node/)
28 changes: 8 additions & 20 deletions apps/docs/src/guide/fuels-cli/config-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,33 +143,21 @@ Parameters:

<<< @../../../demo-fuels/fuels.config.full.ts#onFailure{ts:line-numbers}

## `useBuiltinForc`
## `forcPath`

Opt-in or out from using [built-in](./binaries.md) `forc` binaries.
Path to the `forc` binary.
danielbate marked this conversation as resolved.
Show resolved Hide resolved

When not supplied, will default to using the `system` binaries.
When not supplied, will default to using the `system` binaries (`forc`).

If `system` binaries are absent, print a warning and use `built-in` ones instead.
<<< @../../../demo-fuels/fuels.config.full.ts#forcPath{ts:line-numbers}

<<< @../../../demo-fuels/fuels.config.full.ts#useBuiltInForc{ts:line-numbers}
## `fuelCorePath`

Check also:

- [Built-in Binaries](./binaries.md)

## `useBuiltinFuelCore`

Opt-in or out from using [built-in](./binaries.md) `fuel-core` binaries.
Path to the `fuel-core` binary.

When not supplied, will default to using the `system` binaries.

If `system` binaries are absent, print a warning and use `built-in` ones instead.

<<< @../../../demo-fuels/fuels.config.full.ts#useBuiltInFuelCore{ts:line-numbers}

Check also:
When not supplied, will default to using the `system` binaries (`fuel-core`).

- [Built-in Binaries](./binaries.md)
<<< @../../../demo-fuels/fuels.config.full.ts#fuelCorePath{ts:line-numbers}

## Loading environment variables

Expand Down
9 changes: 9 additions & 0 deletions apps/docs/src/guide/fuels-cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ my-fuel-dapp # NextJS app or similar
└── package.json
```

## Prerequisites

The [Fuel Toolchain](https://docs.fuel.network/docs/sway/introduction/fuel_toolchain/#the-fuel-toolchain) and its components (namely `forc` and `fuel-core`) are pre-requisite for several operations with the Fuels CLI. For example:

- Building out contracts using [`fuels build`](./commands.md#fuels-build) requires `forc`.
- Deploying contracts locally using [`fuels deploy`](./commands.md#fuels-deploy) requires `fuel-core`.

Follow the [installation guide](https://docs.fuel.network/guides/installation/) if you don't have them installed already.

## Installation

Add it to your `my-fuel-dapp` project:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Firstly, you will need a local node running on your machine. We recommend one of the following methods:

- [Testing utilities](../testing/index.md#wallet-test-utilities) can assist in programmatically launching a short-lived node.
- Running [fuel-core](https://docs.fuel.network/guides/running-a-node/running-a-local-node/) directly, or via the CLI [fuels](../fuels-cli/commands.md#fuels-core).
- Running [fuel-core](https://docs.fuel.network/guides/running-a-node/running-a-local-node/) locally.

In the following example, we create a provider to connect to the local node and sign a message.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/forc/README.md → internal/forc/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `@fuel-ts/forc`
# `@internal/forc`

Binary wrapper for [Forc](https://github.com/FuelLabs/sway)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion packages/forc/package.json → internal/forc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@fuel-ts/forc",
"private": true,
"name": "@internal/forc",
"version": "0.88.1",
"description": "NPM bin wrapper around Fuel `forc`",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# @fuel-ts/fuel-core
# @internal/fuel-core

## 0.86.0

## 0.88.1

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.