Miro CLI Skill
A comprehensive guide for using the Miro CLI tool to interact with the Miro Platform API from the command line.
⚠️ Trust Model & Security Declaration
Metadata Declaration:
- - Type: CLI tool wrapper (external binary management)
- External Binary:
mirocli (npm package: davitp/mirocli) - Manages Credentials: YES (stores in system keyring, NOT in skill)
- Credential Storage: System keyring (local-only, OS-managed)
- Capabilities: Read-only access to boards, teams, organization, logs
- Limitations: No create/update/delete; requires OAuth setup
Critical Trust Requirements:
1. You must trust the mirocli npm package:
- - Author: @davitp (community-maintained, not official Miro)
- Package: https://www.npmjs.com/package/mirocli
- Source: https://github.com/davitp/mirocli
- Verification: Check npm downloads, last update date, issues, GitHub stars
- Why it matters: This external binary handles your Client ID, Client Secret, and OAuth tokens
2. You must trust your system keyring:
- - macOS: Keychain
- Linux: Secret Service
- Windows: Credential Manager
- This skill does NOT: Store credentials, cache tokens, or transmit them
3. Helper binaries are standard Unix tools:
- -
jq — JSON processor (widely used, open source) - INLINECODE3 — Text formatter (standard utility)
- These are optional and do NOT handle credentials
4. Network access:
- - Direct HTTPS calls to api.miro.com (official Miro endpoint)
- OAuth browser-based authentication on your machine
- No data proxying or credential transmission through third parties
Recommendation:
Before using with production credentials:
- 1. Review mirocli source code: https://github.com/davitp/mirocli
- Test with a non-sensitive Miro account
- Verify OAuth token storage in INLINECODE4
- Run in isolated environment initially
What It Does
Miro CLI enables command-line access to Miro resources and enterprise features:
- - Boards — List, search, and manage boards
- Teams — View and organize teams
- Organization — View org details and members
- Board Export — Export boards as PDF, PNG, SVG
- Content Logs — View activity/change logs (enterprise)
- Audit Logs — Access audit logs (enterprise)
Perfect for automation, scripting, and bulk operations.
Requirements
Binaries (required):
- -
mirocli — Miro CLI tool (installed via npm) - INLINECODE6 — JSON query processor (for filtering/scripting)
- INLINECODE7 — Text column formatter (for table output in helper scripts)
Credentials (interactive entry required):
- - Organization ID — Your Miro organization identifier
- Client ID — OAuth app client ID
- Client Secret — OAuth app client secret
Optional (for JSON workflows):
- -
jq — JSON processor for advanced filtering and data transformation
Installation & Setup
1. Install Dependencies
mirocli (required):
CODEBLOCK0
jq (optional, but recommended):
CODEBLOCK1
2. Configure Context (One-time)
CODEBLOCK2
This will prompt for:
- - Context name (e.g.,
default) - Organization ID (from your Miro settings)
- Client ID (from your Miro app)
- Client Secret (from your Miro app)
Credentials are stored securely by mirocli in ~/.mirocli/ (system keyring on macOS/Linux).
3. Authenticate with OAuth
CODEBLOCK3
Quick Start
View Organization
CODEBLOCK4
List Boards
CODEBLOCK5
List Teams
CODEBLOCK6
Export Board
CODEBLOCK7
Common Workflows
Find Board by Name
CODEBLOCK8
Export All Boards from Team
See INLINECODE11
List Boards with Owner Info
CODEBLOCK9
Filter Boards by Date
CODEBLOCK10
Setup Flow
- 1. Install dependencies →
npm install -g mirocli (+ jq/column if needed) - Add context →
mirocli context add (enter Org ID, Client ID, Client Secret interactively) - Authenticate →
mirocli auth login (browser opens for OAuth, one-time) - Verify →
mirocli auth whoami (confirm authentication works) - Use CLI →
mirocli boards list, mirocli teams list, etc.
Credential Storage: mirocli stores credentials in ~/.mirocli/ using system keyring (secure, local-only)
Global Options
CODEBLOCK11
Security & Trust
How Credentials Are Handled:
- - Stored locally — mirocli uses system keyring (secure, local-only)
- Not in skill — Credentials are entered interactively via INLINECODE19
- OAuth token — mirocli manages OAuth session tokens; they never leave your machine
- Exports — Board exports are saved locally; no data sent to third parties beyond Miro API
What This Skill Does:
- - ✅ Reads/lists boards, teams, org data via Miro API
- ✅ Exports boards as PDF/PNG/SVG
- ✅ Views activity/audit logs (enterprise)
- ❌ Never modifies boards/teams (read-only commands only)
- ❌ Never stores credentials in skill bundle
- ❌ Never sends data outside of Miro API calls
Third-party Trust:
This skill relies on:
- - mirocli (npm package) — External CLI tool that handles credential storage
- Miro API — Direct calls to Miro's official API endpoints
- System keyring — OS-level credential storage (macOS Keychain, Linux Secret Service, Windows Credential Manager)
Command Reference
See references/miro-cli-commands.md for detailed command documentation.
Help
CODEBLOCK12
Related Skills
- -
miro-mcp — MCP integration for Miro (AI coding tools) - INLINECODE22 — Web SDK reference for building plugins
- INLINECODE23 — REST API reference for programmatic access
Setup Date: 2026-03-14
Last Updated: 2026-03-14
Status: Ready (OAuth login pending)
技能名称: miro-cli
详细描述:
Miro CLI 技能
一份关于使用 Miro CLI 工具从命令行与 Miro 平台 API 进行交互的全面指南。
⚠️ 信任模型与安全声明
元数据声明:
- - 类型:CLI 工具封装(外部二进制管理)
- 外部二进制文件:mirocli(npm 包:davitp/mirocli)
- 管理凭据:是(存储在系统密钥环中,而非技能中)
- 凭据存储:系统密钥环(仅本地,由操作系统管理)
- 功能:对看板、团队、组织、日志的只读访问
- 限制:无创建/更新/删除操作;需要 OAuth 设置
关键信任要求:
1. 您必须信任 mirocli npm 包:
- - 作者:@davitp(社区维护,非官方 Miro)
- 包地址:https://www.npmjs.com/package/mirocli
- 源代码:https://github.com/davitp/mirocli
- 验证:检查 npm 下载量、最后更新日期、问题、GitHub 星标
- 为何重要: 此外部二进制文件处理您的客户端 ID、客户端密钥和 OAuth 令牌
2. 您必须信任您的系统密钥环:
- - macOS:钥匙串
- Linux:Secret Service
- Windows:凭据管理器
- 此技能不会: 存储凭据、缓存令牌或传输它们
3. 辅助二进制文件为标准 Unix 工具:
- - jq — JSON 处理器(广泛使用,开源)
- column — 文本格式化工具(标准实用程序)
- 这些为可选,且不处理凭据
4. 网络访问:
- - 直接 HTTPS 调用 api.miro.com(官方 Miro 端点)
- 在您的机器上进行基于浏览器的 OAuth 身份验证
- 无数据代理或通过第三方的凭据传输
建议:
在生产凭据使用前:
- 1. 审查 mirocli 源代码:https://github.com/davitp/mirocli
- 使用非敏感 Miro 账户进行测试
- 验证 ~/.mirocli/ 中的 OAuth 令牌存储
- 初始在隔离环境中运行
功能说明
Miro CLI 支持通过命令行访问 Miro 资源和企业功能:
- - 看板 — 列出、搜索和管理看板
- 团队 — 查看和组织团队
- 组织 — 查看组织详情和成员
- 看板导出 — 将看板导出为 PDF、PNG、SVG
- 内容日志 — 查看活动/变更日志(企业版)
- 审计日志 — 访问审计日志(企业版)
非常适合自动化、脚本编写和批量操作。
要求
二进制文件(必需):
- - mirocli — Miro CLI 工具(通过 npm 安装)
- jq — JSON 查询处理器(用于过滤/脚本编写)
- column — 文本列格式化工具(用于辅助脚本中的表格输出)
凭据(需要交互式输入):
- - 组织 ID — 您的 Miro 组织标识符
- 客户端 ID — OAuth 应用客户端 ID
- 客户端密钥 — OAuth 应用客户端密钥
可选(用于 JSON 工作流):
- - jq — 用于高级过滤和数据转换的 JSON 处理器
安装与设置
1. 安装依赖
mirocli(必需):
bash
npm install -g mirocli
jq(可选,但推荐):
bash
macOS
brew install jq
Linux (Debian/Ubuntu)
sudo apt install jq
Linux (Fedora)
sudo dnf install jq
2. 配置上下文(一次性)
bash
mirocli context add
这将提示输入:
- - 上下文名称(例如 default)
- 组织 ID(来自您的 Miro 设置)
- 客户端 ID(来自您的 Miro 应用)
- 客户端密钥(来自您的 Miro 应用)
凭据由 mirocli 安全地存储在 ~/.mirocli/ 中(macOS/Linux 上的系统密钥环)。
3. 使用 OAuth 进行身份验证
bash
mirocli auth login # 打开浏览器进行 OAuth 流程
mirocli auth whoami # 验证身份验证
快速入门
查看组织
bash
mirocli organization view
列出看板
bash
mirocli boards list # 所有看板
mirocli boards list --json # JSON 输出
mirocli boards list --team-id
# 按团队过滤
mirocli boards list --sort name # 按字段排序
列出团队
bash
mirocli teams list
mirocli teams list --name Design # 按名称过滤
mirocli teams list --json
导出看板
bash
mirocli board-export --format pdf
mirocli board-export --format png
mirocli board-export --format svg
常见工作流
按名称查找看板
bash
mirocli boards list --json | jq .[] | select(.name | contains(Design))
导出团队中的所有看板
参见 scripts/export-team-boards.sh
列出带所有者信息的看板
bash
mirocli boards list --json | jq .[] | {name, id, owner: .owner.name}
按日期过滤看板
bash
mirocli boards list --modified-after 2026-03-01 --json
设置流程
- 1. 安装依赖 → npm install -g mirocli(以及 jq/column 如果需要)
- 添加上下文 → mirocli context add(交互式输入组织 ID、客户端 ID、客户端密钥)
- 身份验证 → mirocli auth login(浏览器打开进行 OAuth,一次性)
- 验证 → mirocli auth whoami(确认身份验证有效)
- 使用 CLI → mirocli boards list、mirocli teams list 等
凭据存储: mirocli 使用系统密钥环将凭据存储在 ~/.mirocli/ 中(安全,仅本地)
全局选项
bash
-c, --context # 使用特定上下文
-h, --help # 显示帮助
-v, --version # 显示版本
--json # 输出为 JSON
安全与信任
凭据处理方式:
- - 本地存储 — mirocli 使用系统密钥环(安全,仅本地)
- 不在技能中 — 凭据通过 mirocli context add 交互式输入
- OAuth 令牌 — mirocli 管理 OAuth 会话令牌;它们永远不会离开您的机器
- 导出 — 看板导出保存在本地;除 Miro API 外,无数据发送给第三方
此技能的功能:
- - ✅ 通过 Miro API 读取/列出看板、团队、组织数据
- ✅ 将看板导出为 PDF/PNG/SVG
- ✅ 查看活动/审计日志(企业版)
- ❌ 从不修改看板/团队(仅只读命令)
- ❌ 从不将凭据存储在技能包中
- ❌ 从不将数据发送到 Miro API 调用之外
第三方信任:
此技能依赖于:
- - mirocli(npm 包) — 处理凭据存储的外部 CLI 工具
- Miro API — 直接调用 Miro 的官方 API 端点
- 系统密钥环 — 操作系统级别的凭据存储(macOS 钥匙串、Linux Secret Service、Windows 凭据管理器)
命令参考
参见 references/miro-cli-commands.md 获取详细命令文档。
帮助
bash
mirocli --help
mirocli --help
相关技能
- - miro-mcp — Miro 的 MCP 集成(AI 编码工具)
- miro-sdk — 用于构建插件的 Web SDK 参考
- miro-api — 用于编程访问的 REST API 参考
设置日期: 2026-03-14
最后更新: 2026-03-14
状态: 就绪(OAuth 登录待处理)