diff --git a/packages/cli/README.md b/packages/cli/README.md index c45bcfd93..698d91396 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -37,14 +37,26 @@ or a local directory for debugging, and deploys the subgraph to a ## Installation -The Graph CLI can be installed with `npm` or `yarn`: +We recommend install the CLI using package manager `npm` or `yarn` or `pnpm` when developing +subgraphs locally: ```sh # NPM -npm install -g @graphprotocol/graph-cli +npm install @graphprotocol/graph-cli # Yarn -yarn global add @graphprotocol/graph-cli +yarn add @graphprotocol/graph-cli + +# pnpm +pnpm install @graphprotocol/graph-cli +``` + +You can install the CLI globally using a binary. Eventually this will become the default mechanism +for installing the CLI and building subgraphs because users do not need to install `Node.js` or any +other external dependencies. + +```sh +curl -LS https://cli.thegraph.com/install.sh | sudo sh ``` ### On Linux diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 51bd474d0..8b1897011 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,7 +47,7 @@ importers: examples/arweave-blocks-transactions: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -63,7 +63,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -82,7 +82,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -101,7 +101,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -120,7 +120,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -172,7 +172,7 @@ importers: version: 5.0.4 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -190,7 +190,7 @@ importers: examples/ethereum-gravatar: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -211,7 +211,7 @@ importers: examples/matic-lens-protocol-posts-subgraph: dependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -224,7 +224,7 @@ importers: examples/near-blocks: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -233,7 +233,7 @@ importers: examples/near-receipts: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -242,7 +242,7 @@ importers: examples/substreams-powered-subgraph: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.64.0 + specifier: 0.64.1 version: link:../../packages/cli packages/cli: