Skip to content

Latest commit

 

History

History
192 lines (132 loc) · 10.9 KB

INSTALLATION.md

File metadata and controls

192 lines (132 loc) · 10.9 KB

Installing FORGE

FORGE is a local-first Node.js command-line workbench. It runs on Linux, macOS and Windows with Node.js 22.14.0 or later. The installer selects a Git branch or an exact version tag, so you can install a development build or reproduce a specific release.

Choose a distribution

The npm package is configured but has not been published; the public APT repository is not active yet. Debian packages are signed CI candidates until the separately protected release and Pages deployment gates are enabled and complete.

Platform Recommended route Runtime
Debian / Ubuntu Signed APT repository, when enabled; otherwise download the .deb release asset Node.js 22.14+
Other Linux POSIX installer or npm package after publication Node.js 22.14+
macOS (Apple Silicon and Intel) POSIX installer or npm package after publication Node.js 22.14+
Windows x64 PowerShell installer or npm package after publication Node.js 22.14+

FORGE is a Node.js CLI, not a native desktop application. It does not ship a macOS DMG, AppImage, ELF executable, Windows EXE or MSI. These formats would bundle or duplicate a Node runtime and are not produced by the verified release pipeline.

Linux and macOS — install an exact release

Download and inspect the installer from the matching GitHub Release:

curl --fail --location --proto '=https' --tlsv1.2 \
  https://github.com/NetCore-Technologies/FORGE/releases/download/v0.0.1/forge-install.sh \
  --output forge-install.sh
less forge-install.sh
FORGE_INSTALL_REF=v0.0.1 bash forge-install.sh
forge --version

The installer requires Git, Node.js 22.14.0 or later, and npm. It installs into ~/.local by default without root privileges. Add ~/.local/bin to PATH if it is not already present. Set FORGE_INSTALL_PREFIX to choose another absolute npm prefix.

For the development branch, omit FORGE_INSTALL_REF or set it to latest/development. For a reproducible installation, use an exact published tag such as v0.0.1.

Windows PowerShell

Download and inspect the installer before running it:

Invoke-WebRequest -Uri 'https://github.com/NetCore-Technologies/FORGE/releases/download/v0.0.1/forge-install.ps1' -OutFile .\forge-install.ps1
Get-Content .\forge-install.ps1
$env:FORGE_INSTALL_REF = 'v0.0.1'
.\forge-install.ps1

The installer uses the current user's %LOCALAPPDATA%\Programs\FORGE directory by default and adds the command directory to the user's PATH. Open a new terminal after installation. It requires Git, Node.js 22.14.0 or later, and npm.

Debian and Ubuntu

The release pipeline builds an Architecture: all package named forge, which depends on nodejs (>= 22.14.0). When the signed public APT repository is enabled, use the official installer:

curl --fail --location --proto '=https' --tlsv1.2 \
  https://github.com/NetCore-Technologies/FORGE/releases/download/v0.0.1/forge-install-apt.sh \
  --output forge-install-apt.sh
less forge-install-apt.sh
sudo env \
  FORGE_APT_KEY_SHA256='<published-key-sha256>' \
  FORGE_APT_KEY_FINGERPRINT='<published-full-fingerprint>' \
  bash forge-install-apt.sh

The two key pins must be copied from the release and the published apt/key-info.json. The installer refuses to add an apt source unless the downloaded ASCII-armored archive key matches both the exact SHA-256 and full OpenPGP fingerprint. It converts the key to a repository-scoped keyring and uses signed-by=; it never relies on the deprecated global apt-key trust store.

When the public APT endpoint is unavailable, install the .deb asset directly after verifying SHA256SUMS-extra.asc, SHA256SUMS-extra, and the package's own detached GPG signature. Do not add a repository source using an unverified key.

npm

After the package is published to the public npm registry, the package can be installed with:

npm install --global @netcore-technologies/forge@0.0.1
forge --version

The registry command is not usable before the matching npm publication has completed. The package's Node.js engine requirement is enforced by npm.

Verify release downloads

Download the release's SHA256SUMS and SHA256SUMS-extra manifests, their detached signatures, and the public release-signing key. Import the public key only after independently checking its fingerprint against the fingerprint published by the project:

gpg --import forge-release-signing-public-key.asc
gpg --fingerprint
gpg --verify SHA256SUMS.asc SHA256SUMS
sha256sum --check SHA256SUMS
gpg --verify SHA256SUMS-extra.asc SHA256SUMS-extra
sha256sum --check SHA256SUMS-extra

The release also provides detached .asc signatures for the npm archive, SPDX SBOM, Debian package and installer scripts. Verify each detached signature against the exact original file. A valid signature is trusted only when its signing fingerprint matches the project's pinned release key.

Development installation

For the current development branch, download and inspect the installer first:

curl --fail --location --proto '=https' --tlsv1.2 \
  https://raw.githubusercontent.com/NetCore-Technologies/FORGE/latest/development/installers/install.sh \
  --output forge-install.sh
less forge-install.sh
bash forge-install.sh

The interactive installer offers the stable, beta, nightly and development channels, plus an exact branch or version tag. It confirms the selected ref before installing into the user-local npm prefix and adds the command directory to the shell startup files.

PowerShell development install:

Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/NetCore-Technologies/FORGE/latest/development/installers/install.ps1' -OutFile .\forge-install.ps1
Get-Content .\forge-install.ps1
.\forge-install.ps1

Run the local multi-page Control Center

From the source checkout:

npm install
npm run dev

Open the loopback address printed by the server (default: http://127.0.0.1:4820). After a first-time local owner account has been created, the same Control Center is available from the installed CLI:

forge gui

The first-boot wizard selects a workspace, owner credentials, automatic/morning/evening theme and idle session timeout. The app has separate pages for overview, readiness, verification planning, execution, traces, deployments, guardrails, scripts, activity, local AI, CLI, Python SDK, installation and account settings. Passwords are scrypt-derived and session cookies are HttpOnly, SameSite=Strict and loopback-only. Local account data is stored outside the project under the user's FORGE configuration directory. Set FORGE_DATA_DIR to choose a different private state directory.

The script page lists only commands declared in the selected package manifest. It shows the exact command and asks for confirmation before execution. The local AI assistant talks only to Ollama at 127.0.0.1:11434; it does not send project prompts to a hosted provider or execute model suggestions automatically.

To link a source checkout into the user-local command path:

npm run link:cli
export PATH="$HOME/.local/bin:$PATH"
forge --help

See docs/CONTROL_CENTER.md for page behavior, session handling, workspace selection and local execution boundaries.

Activate the public APT repository

See APT activation runbook for the safe signing-key provisioning helper and the exact protected release and Pages sequence.

The public APT endpoint intentionally remains inactive until a versioned signed release and a protected Pages deployment have completed. Do not change Website/apt/key-info.json to active by hand; the deployment workflow generates this metadata only after it verifies the exact package, archive key and signed Release/InRelease files.

The repository requires these GitHub Actions settings in Settings → Secrets and variables → Actions:

Kind Name Purpose
Secret FORGE_APT_SIGNING_PRIVATE_KEY ASCII-armored private archive signing key
Secret FORGE_APT_SIGNING_PASSPHRASE Archive signing-key passphrase
Variable FORGE_APT_SIGNING_KEY_ID Hexadecimal key ID selected by the APT archive build
Variable FORGE_APT_KEY_FINGERPRINT Full fingerprint of the APT archive key
Variable FORGE_APT_REPOSITORY_ENABLED Set to true only after the archive key and protected environment are ready
Variable FORGE_RELEASE_ENABLED Must be true for the signed release workflow

The release process also requires its own release-signing secrets and variables (FORGE_RELEASE_SIGNING_PRIVATE_KEY, FORGE_RELEASE_SIGNING_PASSPHRASE, FORGE_RELEASE_SIGNING_PUBLIC_KEY and FORGE_RELEASE_SIGNING_FINGERPRINT). Keep the release signing key and APT archive key separate. Protect the github-pages environment with the repository's required reviewer/approval policy.

After the release signing configuration is ready, publish a reviewed, signed version tag through the existing release workflow. The successful release-assets workflow triggers the APT Pages workflow when both feature variables are enabled. The deployment independently verifies release assets, builds amd64/arm64/all package indexes, signs Release and InRelease, publishes the ASCII public key and writes active key pins. Confirm that https://netcore-technologies.github.io/FORGE/apt/key-info.json reports status: active before using the APT installer.

Only then is this command usable:

sudo apt update
sudo apt install forge

If required signing credentials, key IDs, fingerprint variables, release approval or Pages deployment are missing, leave the archive inactive. The interactive APT bootstrapper intentionally fails closed.

Updating an installed copy

Use the updater included in the installed CLI to check and apply updates through the same source used for installation:

forge update --check
forge update

The updater recognises signed APT packages, global npm installs made with the FORGE installer, npm-registry packages and official source checkouts. It preserves the recorded channel/ref for installer-managed copies. APT uses the configured repository, npm registry installs use npm, and source checkouts are fast-forwarded only when clean. Use forge update --yes for a non-interactive update. The Control Center has the same workflow under Software updates.

The updater never overwrites dirty source changes or follows an untrusted remote. It does not restart a running Control Center; restart it after the update has completed.

Trust boundaries

  • Release assets are built from the exact tagged source and carry checksums, detached signatures and GitHub build provenance where configured.
  • APT metadata is separately signed by the APT archive key; it is not the same trust mechanism as a package's GPG signature.
  • The Debian package depends on the host's Node.js runtime; it does not bundle Node.js.
  • FORGE verification commands execute with the current user's operating-system permissions. FORGE is not a sandbox for untrusted code.