LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-cliarchivecreate_archive
    Function●Since v0.4

    create_archive

    Copy
    create_archive(
        config_path: pathlib.Path,
        config: Config,
    )
    View source on GitHub

    Context manager that creates a .tar.gz archive of the project source.

    Uses _assemble_local_deps to discover local dependencies referenced in langgraph.json, including those outside config.parent (monorepo case).

    The archive preserves the real filesystem layout relative to the common ancestor of config.parent and all external dependency directories, so that relative references (e.g. ../shared-lib) resolve correctly after extraction.

    Yields (archive_path, file_size, config_relative_path). The temporary directory holding the archive is cleaned up automatically on exit.