Use @langchain/langgraph-cli commands in the scripts field of package.json #362

Closed
opened 2026-02-15 18:16:12 -05:00 by yindo · 2 comments
Owner

Originally created by @rinarakaki on GitHub (Sep 23, 2025).

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangGraph.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangGraph.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package).

Example Code

N/A

Error Message and Stack Trace (if applicable)

No response

Description

I want to set each npx @langchain/langgraph-cli commands to the scripts field of my package.json.

e.g.

{
  ...,
  "scripts": {
    "dev": "@langchain/langgraph-cli dev"
  },
  "devDependencies": {
    "@langchain/langgraph-cli": "^0.0.68"
  }
}

and then instead of calling npx @langchain/langgraph-cli dev, I want to call pnpm dev.

This makes it easier to start the development environment all at once in a monorepo setting.

System Info

N/A

Originally created by @rinarakaki on GitHub (Sep 23, 2025). ### Checked other resources - [x] I added a very descriptive title to this issue. - [x] I searched the LangGraph.js documentation with the integrated search. - [x] I used the GitHub search to find a similar question and didn't find it. - [x] I am sure that this is a bug in LangGraph.js rather than my code. - [x] The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package). ### Example Code N/A ### Error Message and Stack Trace (if applicable) _No response_ ### Description I want to set each `npx @langchain/langgraph-cli` commands to the scripts field of my package.json. e.g. ```json { ..., "scripts": { "dev": "@langchain/langgraph-cli dev" }, "devDependencies": { "@langchain/langgraph-cli": "^0.0.68" } } ``` and then instead of calling `npx @langchain/langgraph-cli dev`, I want to call `pnpm dev`. This makes it easier to start the development environment all at once in a monorepo setting. ### System Info N/A
yindo closed this issue 2026-02-15 18:16:12 -05:00
Author
Owner

@dqbd commented on GitHub (Sep 23, 2025):

Hello! You can do so by using the following

{
  ...,
  "scripts": {
    "dev": "langgraphjs dev"
  },
  "devDependencies": {
    "@langchain/langgraph-cli": "^0.0.68"
  }
}
@dqbd commented on GitHub (Sep 23, 2025): Hello! You can do so by using the following ```package.json { ..., "scripts": { "dev": "langgraphjs dev" }, "devDependencies": { "@langchain/langgraph-cli": "^0.0.68" } } ```
Author
Owner

@rinarakaki commented on GitHub (Sep 23, 2025):

I confirmed it worked! Thank you!

@rinarakaki commented on GitHub (Sep 23, 2025): I confirmed it worked! Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#362