unable to create new project with langgraph cli - new is not a valid command #278

Closed
opened 2026-02-15 18:15:26 -05:00 by yindo · 1 comment
Owner

Originally created by @Niall-Adappt on GitHub (Jun 9, 2025).

The docs say
npx @langchain/langgraph-cli
langgraph new path/to/your/app --template new-langgraph-project-js_

i installed the cli globally

and then i get

PS A:\projects\test> langgraph
langgraph : The term 'langgraph' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • langgraph
  •   + CategoryInfo          : ObjectNotFound: (langgraph:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    
    
    

It looks like the docs are wrong and I should use langgraphjs based on the following...

PS A:\projects\test> dir "C:\Program Files\nodejs"

Directory: C:\Program Files\nodejs

Mode LastWriteTime Length Name


d----- 09/06/2025 13:11 node_modules
-a---- 09/06/2025 13:09 53639 CHANGELOG.md
-a---- 09/06/2025 13:09 334 corepack
-a---- 09/06/2025 13:09 218 corepack.cmd
-a---- 09/06/2025 13:09 3094 install_tools.bat
-a---- 09/06/2025 13:11 451 langgraphjs
-a---- 09/06/2025 13:11 356 langgraphjs.cmd
-a---- 09/06/2025 13:11 929 langgraphjs.ps1

so I did the following but new is not a valid command

PS A:\projects\test> langgraphjs -h
Usage: langgraphjs [options] [command]

LangGraph.js CLI

Options:
-V, --version output the version number
-h, --help display help for command

Commands:
dev [options] Run LangGraph API server in development mode with hot reloading.
dockerfile [options] Generate a Dockerfile for the LangGraph API server, with Docker Compose options.
build [options] [args...] Build LangGraph API server Docker image.
up [options] Launch LangGraph API server.
help [command] display help for command

PS A:\projects\test> langgraphjs new --template new-langgraph-project-js
error: unknown command 'new'

I am using
node -v v22.16.0
langgraphjs -V 0.0.38+js

Originally created by @Niall-Adappt on GitHub (Jun 9, 2025). The docs say npx @langchain/langgraph-cli langgraph new path/to/your/app --template new-langgraph-project-js_ i installed the cli globally and then i get PS A:\projects\test> langgraph langgraph : The term 'langgraph' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + langgraph + ~~~~~~~~~ + CategoryInfo : ObjectNotFound: (langgraph:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException It looks like the docs are wrong and I should use langgraphjs based on the following... PS A:\projects\test> dir "C:\Program Files\nodejs" Directory: C:\Program Files\nodejs Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 09/06/2025 13:11 node_modules -a---- 09/06/2025 13:09 53639 CHANGELOG.md -a---- 09/06/2025 13:09 334 corepack -a---- 09/06/2025 13:09 218 corepack.cmd -a---- 09/06/2025 13:09 3094 install_tools.bat -a---- 09/06/2025 13:11 451 langgraphjs -a---- 09/06/2025 13:11 356 langgraphjs.cmd -a---- 09/06/2025 13:11 929 langgraphjs.ps1 so I did the following but new is not a valid command PS A:\projects\test> langgraphjs -h Usage: langgraphjs [options] [command] LangGraph.js CLI Options: -V, --version output the version number -h, --help display help for command Commands: dev [options] Run LangGraph API server in development mode with hot reloading. dockerfile [options] <save-path> Generate a Dockerfile for the LangGraph API server, with Docker Compose options. build [options] [args...] Build LangGraph API server Docker image. up [options] Launch LangGraph API server. help [command] display help for command PS A:\projects\test> langgraphjs new --template new-langgraph-project-js error: unknown command 'new' I am using node -v v22.16.0 langgraphjs -V 0.0.38+js
yindo closed this issue 2026-02-15 18:15:26 -05:00
Author
Owner

@dqbd commented on GitHub (Jul 4, 2025):

Hello! You can use npm create langgraph to create a new project. Will update the command in docs, sorry about that!

@dqbd commented on GitHub (Jul 4, 2025): Hello! You can use `npm create langgraph` to create a new project. Will update the command in docs, sorry about that!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#278