Skip to content

LangChain CLI

This is a console utility that will help you use our library for such tasks: - Summarize text - Generate release notes - Generate changelog - Generate documentation - Generate code snippets - Generate code samples - Generate code documentation

Usage:

1
2
3
4
5
6
7
8
dotnet tool install --global langchain.cli --prerelease
langchain auth openai OPENAI_API_KEY # Default model - gpt-3.5-turbo, you can specify another model using --model parameter
langchain summarize --input-file README.md --output-file SUMMARY.md
langchain generate --input "Give me random word" # It will output a random word to console

# Smart task
langchain model gpt-4-turbo
langchain generate --input "Give me a solution for the next problem: $PROBLEM"

Samples