正在自动登录…
← 返回项目列表excalidraw/
excalidraw/ cli
Excalidraw 官方命令行工具,用于管理 Excalidraw+ 工作区中的场景和集合,并将 .excalidraw 文件渲染为 PNG 图片。适合需要在终端或脚本中操作 Excalidraw 内容的用户和 AI 代理。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/14 16:51:15 · 查看原文
- 累计 Stars
- 202
- 当前热度
- 未达当前门槛
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/14 16:51:15
- 使用方式
通过命令行使用,支持管道和 JSON 输出,适合脚本和 AI 代理集成。
查看 README 依据
Qm7Tz1XcV5bN9kLp3HsA Sprint board f9Hs2KdLm4NqP8rTvX1a no 2026-09-20T09:41:52.000Z w2Ej6YhRu8IoP4aSd0Fg Onboarding flow Lr5Tg7YhUj3IkO9pWe2q no 2026-09-18T16:27:05.000Z ``` Output is JSON by default, so it works with `jq`, shell scripts and AI agents. ## Install ```bash npm install -g @excalidraw/cli ``` Or try it without installing: `npx @excalidraw/cli --help`. Requires Node.js 22 or newer.
`scenes create --file` creates a scene and fills it in one step, from a full export or a partial payload like the one above. An invalid file is rejected before the scene is created. If writing the content fails afterwards, the error names the new scene so you can retry. ## Scripting and agents - Commands print JSON, except `login` and `logout`, which print a confirmation. `-o table` prints list commands, `whoami` and `update` as a table.
- 部署要求
需要 Node.js 22 或更高版本。工作区命令需要 Excalidraw+ API 密钥。渲染本地文件不需要 API 密钥,但需要已安装的 Chrome、Edge、Chromium 或 Firefox 浏览器。
查看 README 依据
Qm7Tz1XcV5bN9kLp3HsA Sprint board f9Hs2KdLm4NqP8rTvX1a no 2026-09-20T09:41:52.000Z w2Ej6YhRu8IoP4aSd0Fg Onboarding flow Lr5Tg7YhUj3IkO9pWe2q no 2026-09-18T16:27:05.000Z ``` Output is JSON by default, so it works with `jq`, shell scripts and AI agents. ## Install ```bash npm install -g @excalidraw/cli ``` Or try it without installing: `npx @excalidraw/cli --help`. Requires Node.js 22 or newer.
To update, run `excalidraw update`. It installs the latest version with the package manager you installed the CLI with: npm, pnpm, yarn, bun or Volta. `excalidraw update --check` only reports whether a newer version is out. Commands you run in a terminal check for a newer version at most once a day, while the command runs, and mention it after the output. Set `EXCALIDRAW_NO_UPDATE_NOTIFIER=1` to turn this off. ## Quick start Workspace commands need an Excalidraw+ API key. The [authentication docs](https://plus.excalidraw.com/docs/api/authentication) explain how to create one. ```bash
With a file path, the command prints the PNG's path and dimensions as JSON. Pass `--out -` to write the PNG to stdout instead, for example to pipe it into another program: ```bash node generate-scene.js | excalidraw render - --out - > drawing.png excalidraw scenes render <sceneId> --out - | magick png:- -resize 50% preview.png ``` Rendering uses a browser that's already installed: Chrome, Edge or Chromium, or Firefox (slower) if none of those is. The CLI doesn't download one. If it can't find yours, pass `--browser-path` or set `EXCALIDRAW_BROWSER_PATH`. | Option | Default | Notes |
- 已知限制
渲染时图片必须嵌入文件,不加载图片 URL 和网站嵌入。中、日、韩文手写字体首次使用需下载,无网络时使用系统字体。
查看 README 依据
| --- | --- | --- | | `--out <file>` | required | File path, or `-` for stdout. | | `--frame-id <id>` | | Render just this frame. | | `--scale <n>` | `1` | Resolution multiplier, up to 16. | | `--max-width`, `--max-height` | `2048` | Size limits in pixels, up to 16384. Raise them along with `--scale`. | | `--padding <px>` | `20` | Ignored for frames. | | `--theme <light\|dark>` | scene setting | | | `--transparent` | off | Transparent background. | | `--timeout <ms>` | `30000` | How long a render may take. | - Images must be embedded in the file. Image URLs and website embeds aren't loaded.
- The output keeps the scene's aspect ratio and stays under 64 megapixels. - Chinese, Japanese and Korean text in the hand-drawn font needs a font that's downloaded the first time a scene uses it, then cached. Without network access, that text uses a system font. `--fonts-url` sets other download locations, or `none` to turn downloads off. - Emoji come from your system's fonts. ## Commands | Command | What it does | | --- | --- | | `login` | Check an API key and save it for later commands | | `logout` | Remove the saved API key |
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/10/8 21:17:24
- 首次达标收录
- 2026/10/9 12:11:07
- 统计更新时间
- 2026/10/22 19:05:58
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 3.9 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/10 13:58:38 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/9 01:22:58
- 许可证标识
- MIT
- Fork 数
- 7
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目