Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

foundry-installer

Gilgames00019MIT0.1.4

A Node.js installer for the Foundry suite of tools.

install, installer, foundry, foundry-rs, foundryup, forge, anvil, cast

readme

foundry-installer

A simple Node.js installer for the Foundry suite of tools. Can be used to install forge (and the other tools) globally or within your local package to e.g. automate package scripts.

Installation

To install locally:

$ npm install -D foundry-installer

To install globally:

$ npm install -g foundry-installer

Installed executables

  • forge
  • anvil
  • cast

Usage

You can use foundry in your package scripts like this:

// package.json:

{
  ...
  "scripts": {
    "build": "forge build"
  }
}

Alternatively, you can run the local forge executable using npx:

$ npx forge build

If you installed the package globally it should be available in your PATH and you should be able to just run the commands from your terminal emulator.