langchain/libs/cli/DOCS.md
2023-10-27 09:32:57 -07:00

3.3 KiB

langchain

Usage:

$ langchain [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • hub: Manage installable hub packages.
  • serve: Manage LangServe application projects.
  • start: Start the LangServe instance, whether it's...

langchain hub

Manage installable hub packages.

Usage:

$ langchain hub [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • new: Creates a new hub package.
  • start: Starts a demo LangServe instance for this...

langchain hub new

Creates a new hub package.

Usage:

$ langchain hub new [OPTIONS] NAME

Arguments:

  • NAME: [required]

Options:

  • --help: Show this message and exit.

langchain hub start

Starts a demo LangServe instance for this hub package.

Usage:

$ langchain hub start [OPTIONS]

Options:

  • --port INTEGER
  • --host TEXT
  • --help: Show this message and exit.

langchain serve

Manage LangServe application projects.

Usage:

$ langchain serve [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • add: Adds the specified package to the current...
  • install
  • list: Lists all packages in the current...
  • new: Create a new LangServe application.
  • remove: Removes the specified package from the...
  • start: Starts the LangServe instance.

langchain serve add

Adds the specified package to the current LangServe instance.

e.g.: langchain serve add extraction-openai-functions langchain serve add git+ssh://git@github.com/efriis/simple-pirate.git langchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage

Usage:

$ langchain serve add [OPTIONS] DEPENDENCIES...

Arguments:

  • DEPENDENCIES...: [required]

Options:

  • --api-path TEXT
  • --project-dir PATH
  • --help: Show this message and exit.

langchain serve install

Usage:

$ langchain serve install [OPTIONS]

Options:

  • --help: Show this message and exit.

langchain serve list

Lists all packages in the current LangServe instance.

Usage:

$ langchain serve list [OPTIONS]

Options:

  • --help: Show this message and exit.

langchain serve new

Create a new LangServe application.

Usage:

$ langchain serve new [OPTIONS] NAME

Arguments:

  • NAME: [required]

Options:

  • --package TEXT
  • --help: Show this message and exit.

langchain serve remove

Removes the specified package from the current LangServe instance.

Usage:

$ langchain serve remove [OPTIONS] API_PATHS...

Arguments:

  • API_PATHS...: [required]

Options:

  • --help: Show this message and exit.

langchain serve start

Starts the LangServe instance.

Usage:

$ langchain serve start [OPTIONS]

Options:

  • --port INTEGER
  • --host TEXT
  • --help: Show this message and exit.

langchain start

Start the LangServe instance, whether it's a hub package or a serve project.

Usage:

$ langchain start [OPTIONS]

Options:

  • --port INTEGER
  • --host TEXT
  • --help: Show this message and exit.