install-dt
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstall the Dovetail CLI (dt
)
dt安装Dovetail CLI(dt
)
dtInstalls , the Dovetail command-line tool for importing content from Notion, Confluence, Google Drive, Airtable, Marvin, Condens, EnjoyHQ, Productboard, local files, and more.
dt本工具用于安装Dovetail命令行工具,支持从Notion、Confluence、Google Drive、Airtable、Marvin、Condens、EnjoyHQ、Productboard、本地文件等多种来源导入内容。
dtInstallation
安装
Option 1: Global install via npm (recommended)
选项1:通过npm全局安装(推荐)
bash
npm install -g @heydovetail/dtVerify:
bash
dt --versionbash
npm install -g @heydovetail/dt验证安装:
bash
dt --versionOption 2: One-off use via npx
选项2:通过npx单次使用
bash
npx @heydovetail/dt <command>Use this in CI/CD or when a global install is not possible.
bash
npx @heydovetail/dt <command>适合在CI/CD场景或无法进行全局安装时使用。
Initial setup
初始设置
After installing, run the setup wizard to connect your Dovetail workspace:
bash
export DOVETAIL_API_KEY="your-api-key" # from your workspace Settings > API
dt initdt initRun a health check at any time:
bash
dt doctor安装完成后,运行设置向导连接你的Dovetail工作区:
bash
export DOVETAIL_API_KEY="your-api-key" # 可在工作区设置 > API页面获取
dt initdt init你可随时运行健康检查命令:
bash
dt doctorWhen to use
适用场景
- Before running any commands for the first time
dt - When setting up a new machine or CI environment
- Use global install when will be called repeatedly
dt - Use npx for one-off or ephemeral environments
- 首次运行任意命令前
dt - 配置新机器或CI环境时
- 需要频繁调用时选择全局安装
dt - 单次使用或临时环境下使用npx
Troubleshooting
故障排查
| Issue | Fix |
|---|---|
| Run |
| Permission denied during global install | Use |
| Confirm |
| 问题 | 解决方案 |
|---|---|
全局安装后提示 | 运行 |
| 全局安装时提示权限不足 | 使用 |
| 确认 |