ade-cli

landing-aiApache-2.0活跃维护

LandingAI 官方命令行工具,在终端里解析 PDF 等文档,并按自定义 schema 抽取结构化数据,省去写代码调接口的麻烦。

The official CLI for Agentic Document Extraction (ADE) by LandingAI — parse documents and extract schema-shaped data from your terminal

v1.0.5发布于 2026-08-07 04:01 UTC2,424star257fork同步于 2026-11-10 11:44 UTC

怎么上手

由 README 提炼,执行前请确认
curl -fsSL https://raw.githubusercontent.com/landing-ai/ade-cli/main/scripts/install.sh | sh
ade login
ade parse -d invoice.pdf
硬件要求按 README 说明

README 未说明;解析与抽取在云端完成,本地只需能运行自包含二进制,无需 Python 或 uv。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

LandingAI 官方 ADE 命令行工具,在终端把文档解析成 Markdown 并按 schema 抽取字段

LandingAI 官方命令行工具,在终端里解析 PDF 等文档,并按自定义 schema 抽取结构化数据,省去写代码调接口的麻烦。

核心能力

  • 用 ade parse 把含表格图表的文档转成带 grounding 的 Markdown 与元素
  • 用 ade extract 按 schema 抽取字段并给出页码与框选证据
  • 结果存本地 ~/.ade,重复执行相同命令不消耗额度
  • ade find 与 ade crop 在本地检索元素并导出区域 PNG
  • 所有命令支持 --json 输出稳定结构,便于脚本与 agent 调用

容易踩的坑

需先 ade login 或设置 ADE_API_KEY 才能调用 parse/extract;CI、cron 或 agent 环境中 ade 可能不在 PATH,需用 ~/.ade/bin/ade 绝对路径;卸载时不要删除整个 ~/.ade,否则会丢掉已消耗额度的结果。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.0.5
  1. v1.0.5最新正式版2026-08-07 · 2026-08-07 04:01 UTC

    What's Changed

    Full Changelog: https://github.com/landing-ai/ade-cli/compare/v1.0.4...v1.0.5

  2. v1.0.42026-08-06 · 2026-08-06 07:11 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/landing-ai/ade-cli/compare/v1.0.3...v1.0.4

  3. v1.0.32026-08-05 · 2026-08-05 08:54 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/landing-ai/ade-cli/compare/v1.0.2...v1.0.3

  4. v1.0.22026-08-04 · 2026-08-04 08:28 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/landing-ai/ade-cli/compare/v1.0.1...v1.0.2

  5. v1.0.12026-08-03 · 2026-08-03 08:46 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/landing-ai/ade-cli/compare/v1.0.0...v1.0.1

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    ade-cli

    Release License: Apache-2.0

    Agentic Document Extraction (ADE), from your terminal. Run ade parse to turn documents with tables, figures, and charts into grounded Markdown and elements, and ade extract to pull schema-shaped fields with page-and-box evidence. Both save to a local store at ~/.ade, so re-running an identical command consumes no credits.

    CLI documentation · Playground · Get an API key

    Install

    Each release ships self-contained binaries for macOS, Linux, and Windows (arm64 and x86_64). No Python or uv needed.

    macOS / Linux

    curl -fsSL https://raw.githubusercontent.com/landing-ai/ade-cli/main/scripts/install.sh | sh
    

    Windows (PowerShell)

    irm https://raw.githubusercontent.com/landing-ai/ade-cli/main/scripts/install.ps1 | iex
    

    Windows (CMD)

    curl -fsSL https://raw.githubusercontent.com/landing-ai/ade-cli/main/scripts/install.cmd -o install.cmd && install.cmd && del install.cmd
    

    To develop or install from source, see CONTRIBUTING.md.

    First run

    Log in once per machine, parse a document, then extract the fields you want from it. The parse summary prints the job item ID that extract takes.

    ade login
    ade parse -d invoice.pdf
    ade extract JOB_ITEM_ID --schema schema.json
    

    The CLI Quickstart walks through the same three steps with a sample document and a sample schema, and ends in the viewer that shows where each extracted value came from.

    Commands

    Every command takes --json for one stable JSON object on stdout. Run ade help COMMAND for its flags and result shape, or see the CLI Reference.

    commandwhat it does
    ade parseParse a document into Markdown, elements, and grounding
    ade extractPull schema-shaped fields from a parse, with per-field evidence
    ade findSearch a parse's elements locally, with no API call
    ade cropSave an element's region of the page as a PNG
    ade viewBuild and open a self-contained HTML viewer for a job item
    ade history listList stored job items, newest first
    ade history clearDelete stored job items
    ade login / ade auth loginLog in with your browser or an API key
    ade auth statusShow how you are authenticated and where
    ade auth org list / switch / clearChoose which organization your runs act in
    ade logout / ade auth logoutLog out of one environment, or all of them
    ade versionPrint the version and install mode
    ade updateSelf-update to the latest release
    ade helpPrint the whole command surface, including --json result shapes

    The documentation covers what these tables cannot: how job items work and why re-runs are free (CLI Concepts), parsing and extraction in depth, searching and cropping evidence, authentication and organizations, and scripting the CLI.

    For agents

    Agents are first-class callers. Running ade help --json returns the entire shipped surface in one call: every command, flag, result shape, topic, exit state, and the store layout. Every command then takes --json and emits one stable object whose shape is published per verb, and the full result is always on stdout rather than only in a store file. SKILL.md ships the agent contract: the loop, the conventions, and the sharp edges.

    A process that is already running keeps the environment it started with, so ade may not be on the PATH inside CI, cron, or an agent harness. Call the absolute path instead: ~/.ade/bin/ade on macOS and Linux, or %USERPROFILE%\.ade\bin\ade.exe on Windows. For credentials, set ADE_API_KEY.

    Managing your install

    macOS and LinuxWindows
    App~/.ade/bin/ade%USERPROFILE%\.ade\bin\ade.exe
    Store~/.ade%USERPROFILE%\.ade
    Reaches your PATH viaa symlink in ~/.local/bina user PATH entry

    Set ADE_HOME to move the app and the store, ADE_CLI_VERSION to pin a version, and ADE_CLI_INSTALL_DIR to change the destination.

    Run ade update to self-update, with --yes to skip the confirmation. For a uv or pipx install it points at uv tool upgrade ade-cli instead. The CLI mentions new releases on stderr once a day. Set ADE_NO_UPDATE_CHECK=1 to turn that off.

    To uninstall, remove the app directory, and on macOS and Linux the ~/.local/bin/ade symlink too. Never delete all of .ade: the rest of that directory holds results that already consumed credits.

    Project history

    This repository was agentic-doc, the original Agentic Document Extraction SDK. That SDK is preserved unchanged, and no longer developed, on the legacy branch. Since 2026-07-31 this repository ships the ADE CLI.

    License

    Apache-2.0.