Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@dinoxx/dinox-cli

Latest version: v3.2.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: zmyjust
35 Versions
3.2K Downloads

Scan summary

@dinoxx/dinox-cli was last scanned on 24 Nov 2026 at version 3.2.0. Risk score 0 of 100. High-severity rules fired.

  • Releases: 35 versions; the latest 3 were published within 2 days (23 and 24 Nov 2026).
  • Findings: 1 rule fired in version 3.2.0 (1 high). The score describes this version only.
  • Downloads: 3,197 downloads.

Versions

35 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.2.0 LATEST 24 Nov 2026 1 rule fired
3.1.0 23 Nov 2026 1 rule fired
3.0.0 23 Nov 2026 1 rule fired
2.20.2 16 Nov 2026 Not shown
2.20.1 16 Nov 2026 Not shown

Rules fired in 3.2.0: 1

Findings

1 High

Findings for v3.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Several suspicious behaviors form a known attack pattern

Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 3.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Dinox CLI 用户手册

dino 是 Dinox 的命令行工具,用来在本地管理和同步你的 Dinox 数据,包括:笔记、待办、标签、文件夹、Prompt、知识图谱,以及适合脚本和 AI 助手调用的结构化命令输出。

这份 README 按“先上手、再进阶、最后查表”的顺序重写,尽量做到:

  • 先让你快速跑通第一次使用
  • 再教你完成最常见的日常操作
  • 最后给出完整命令速查,方便回头查阅

如果你只想尽快开始,先看“5 分钟快速上手”。


目录

  • 1. 你可以用 Dinox CLI 做什么
  • 2. 安装要求与安装方法
  • 3. 5 分钟快速上手
  • 4. 使用前必须知道的 6 个规则
  • 5. 日常操作教程
  • 6. 完整命令速查
  • 7. AI / 脚本自动化
  • 8. 常见问题
  • 9. 配置文件、数据库与环境变量
  • 10. 如何查看帮助

1. 你可以用 Dinox CLI 做什么

Dinox CLI 适合这几类场景:

  1. 在终端里登录 Dinox 账号,并把云端数据同步到本地
  2. 快速搜索、查看、创建、更新、删除笔记
  3. 从笔记里的任务列表中搜索待办,或追加/创建待办
  4. 维护标签、文件夹、Prompt 等结构化信息
  5. 查询笔记之间的链接关系和知识图谱
  6. 用 --format json 输出结构化结果,方便脚本和 AI 调用

你可以把它理解为:

  • 普通用户:一个更高效的 Dinox 数据管理工具
  • 进阶用户:一个可脚本化的本地知识库命令行入口
  • AI 用户:一个可通过结构化命令和 schema 稳定调用的本地知识库入口

2. 安装要求与安装方法

2.1 系统要求

安装前请先确认:

  • 推荐使用 Node.js 24 或 26(LTS);支持 Node.js 22、23、24、25、26(不支持 Node.js 21 及以下或 27+)
  • 已安装 npm
  • 你的系统可以正常执行全局 npm 命令

检查方法:

node -v
npm -v
2.2 安装 Dinox CLI

先确认 node -v 是 v22 到 v26,再全局安装。npm 11.16 及以后默认不编译 better-sqlite3 和 sharp,安装命令要放行这两个包:

npm install -g @dinoxx/dinox-cli@latest --allow-scripts=better-sqlite3,sharp

npm -v 低于 11.16 时没有 --allow-scripts,去掉这个参数再装。用 pnpm 10.15 及以后时:

pnpm add -g @dinoxx/dinox-cli@latest --allow-build=better-sqlite3 --allow-build=sharp

安装完成后,验证是否成功:

dino info

看到版本号就表示安装成功。

说明:安装后通常可以使用 dino 或 dinox 两个命令名,本文统一使用 dino。dino 用的是安装时 PATH 里的那个 node。

2.3 macOS 安装 Node.js(如果你还没装)
brew install node
node -v

node -v 应显示 v22 到 v26。再执行上面的安装命令。

2.4 Windows 安装 Node.js(如果你还没装)

PowerShell 中可使用:

winget install OpenJS.NodeJS.LTS
2.5 更新 CLI

后续如果要更新到最新版本,直接执行:

dino update

它会安装 @latest,所以可以从 1.x 升到 2.x。npm 11.16+ 会自动加上 --allow-scripts=better-sqlite3,sharp,pnpm 10.15+ 会自动加上 --allow-build。旧版 dino update 只在 1.x 里更新,版本停在 1.x 时改用上面的安装命令。

它会自动根据你当前的安装方式选择合适的包管理器执行更新。升级完成后会检查本机已安装的 Agent:有 claude 但没有 ACP 命令时安装 @agentclientprotocol/claude-agent-acp,有 codex 时安装 @agentclientprotocol/codex-acp,有 zcode 时安装 zcode-acp,有 pi 时安装 pi-acp,有 agy 时安装 agy-acp,有 muse 时安装 @bex-co/muse-code-acp。已经装过的适配器会跳过;某个适配器安装失败只给出警告,不影响 CLI 升级本身。


3. 5 分钟快速上手

下面是第一次使用最推荐的顺序。你可以直接照着执行。

第 1 步:登录

在自己的终端运行:

dino auth login

终端会显示二维码。用 Dinox App 打开 设置 → 设备配对 → 扫一扫,扫码确认即可。登录时会完成首次同步,之后的读取命令会自动启动本地 daemon,一般不用再手动执行 dino sync 或 dino auth status。

如果 App 提示二维码无效,先升级 Dinox App。这条命令最长等待 10 分钟。

CI / 自动化

没有人可以扫码时,继续用 token。token 可在 App 的 设置 → 同步设置 → API Token 获取。

read -rs DINOX_TOKEN
printf '%s' "$DINOX_TOKEN" | dino auth login --token-stdin
unset DINOX_TOKEN

说明:

  • --token-stdin 接受 token 本体或 Bearer ...
  • 也可以只在当前进程注入 DINOX_TOKEN(优先于本地配置,支持 token 本体或 Bearer ...),不写入配置文件
第 2 步:搜索一条笔记试试
dino note search "AI"
第 3 步:新建一条笔记试试
dino note create \
  --title "今天的记录" \
  --content "# 标题\n\n这里是正文" \
  --type note

如果你能顺利完成上面 3 步,说明 CLI 已经可以正常使用。


4. 使用前必须知道的 6 个规则

很多问题都来自对 CLI 约定不熟。先掌握下面 6 条,会少踩很多坑。

规则 1:很多命令默认会优先使用本地数据库

dino sync 会把云端数据同步到本地。后续大多数查询命令会基于本地缓存工作。

如果你希望明确只使用本地缓存、不触发联网/同步,可以加:

--offline

例如:

dino note search "项目复盘" --offline

适用场景:

  • 网络不稳定
  • 只想查本地缓存
  • 你已经先手动执行过 dino sync
规则 2:给脚本或 AI 用时,推荐统一加 --format json

例如:

dino note search "AI" --format json

说明:

  • --format json:推荐的结构化输出
  • --format yaml:也支持
  • --json:历史兼容参数,等价于 --format yaml
规则 3:很多写操作都支持 --dry-run

如果你想先看“将会发生什么”,但暂时不真正写入数据,可以用:

--dry-run

例如:

dino note delete <note-id> --dry-run

这对删除、更新、批量修改尤其有用。

规则 4:很多参数支持直接从文件读取

凡是写成 <string|@file> 或 <string|@file> 的参数,通常都支持 @文件路径 的写法。

例如从文件读取笔记正文:

dino note create --title "读书笔记" --content @./note.md --type note

例如从文件读取待办列表:

dino todo create --tasks @./todo.txt
规则 5:列表参数通常有 3 种写法

像 --tags、--boxes、--tasks、--ids 这类列表参数,通常支持:

  1. JSON 数组
  2. 逗号分隔
  3. 换行分隔

例如这三种都可以:

--tags '["工作","项目A"]'
--tags "工作,项目A"
--tags @./tags.txt
规则 6:标签和文件夹必须先存在,笔记才能引用它们

例如你先创建笔记时用了一个不存在的标签:

dino note create --title "测试" --content "正文" --tags "工作/项目A"

如果这个标签还不存在,就会报错。正确顺序通常是:

dino tag add "工作/项目A"
dino box add "Inbox"
dino note create --title "测试" --content "正文" --tags "工作/项目A" --boxes "Inbox" --type note

5. 日常操作教程

这一部分按真实使用场景来写。你不需要一开始记住所有命令,先会做日常任务就够了。

5.1 搜索笔记
按关键词搜索
dino note search "AI"
搜索最近 7 天的笔记
dino note search "AI" --days 7
按时间范围搜索
dino note search "AI" --from 2026-03-01 --to 2026-03-31
按标签表达式搜索
dino note search --tags "(work OR life) AND NOT archived"
按文件夹搜索
dino note search --boxes "Inbox,Project"
只看已收藏或未收藏笔记
dino note search --starred true
dino note search --starred false
分页与字段裁剪
dino note search "AI" --limit 20 --offset 0
dino note search "AI" --fields id,title,summary,created_at
高级 SQL 风格筛选
dino note search --sql 'type = "crawl" AND zettel_boxes IN ("Inbox","Project")'

适合场景:

  • 你已经很清楚要筛什么字段
  • 希望做更复杂的组合条件查询

提醒:--sql 只支持只读查询条件,不是让你执行任意 SQL。

5.2 查看笔记内容
只看笔记基础信息
dino note get <note-id>
只拿轻量上下文(适合 AI / 脚本)
dino note get <note-id> --format json

note get 在 2.0 中始终是轻量读取;--context-only 仅保留为兼容参数,不会改变输出。

预览正文前几行
dino note preview <note-id>
dino note preview <note-id> --lines 30
查看完整详情
dino note detail <note-id>
批量查看多条笔记详情
dino note detail --ids @./note-ids.txt
5.3 创建笔记
创建最简单的一条笔记
dino note create \
  --title "会议记录" \
  --content "今天讨论了发布计划" \
  --type note
从 Markdown 文件创建
dino note create \
  --title "周报" \
  --content @./weekly.md \
  --type note
同时设置标签和文件夹
dino note create \
  --title "项目复盘" \
  --content @./review.md \
  --type note \
  --tags "工作/项目A,复盘" \
  --boxes "Project"

注意:

  • --title 和 --content 是必填项
  • --type 可选值只有 note 和 crawl
  • 如果你不写 --type,默认是 crawl
  • 如果你想写普通笔记,建议明确加 --type note
创建前先预演
dino note create \
  --title "测试笔记" \
  --content "正文" \
  --type note \
  --dry-run
5.4 整理笔记元数据与正文
note update:显式 ID 的全量替换
dino note update <note-id> --tags "工作,AI" --dry-run
dino note update <note-id> --boxes "Inbox" --starred true --dry-run

note update 面向明确的笔记 ID,--tags 和 --boxes 都是完整替换,不是追加。清空标签或文件夹时传 []:

dino note update <note-id> --tags '[]'
dino note update <note-id> --boxes '[]'
note tag / note move:显式 ID 的增量整理
dino note tag <note-id> --add "工作,AI" --dry-run
dino note tag --ids @./note-ids.txt --remove "Inbox" --dry-run
dino note move <note-id> --add "Project/Inbox" --dry-run
dino note move --ids @./note-ids.txt --replace "Project" --dry-run

note tag 管标签,note move 管文件夹归属;它们的 --add / --remove 会保留现有值,--replace 才会覆盖整个列表。note move 不移动文件,也不改正文。

note bulk:按过滤器批量整理
dino note bulk --tags "Inbox" --tag-add "AI" --format json --dry-run
dino note bulk --days 30 --boxes "Work/Inbox" --box-replace "Archive/Review" --expected-count 12 --confirm --format json

note bulk 只接受受控过滤器,不支持 --sql 作为写入目标筛选。真实写入必须先 dry-run,再带 --confirm --expected-count <n>。

note patch:结构化编辑正文
dino note patch <note-id> --append-section "复盘" --content @./section.md --format json --dry-run
dino note content-read <note-id> --format json
dino note patch <note-id> --append-section "复盘" --content @./section.md --read-token @/tmp/dinox-read-token-<random> --format json

note patch 只用于正文结构化编辑。先 dry-run,再在真实写入前执行 content-read 并传回 readToken。默认 content-read 只返回 block 类型、范围、hash 和字符数,不返回 block 文本、预览或 attributes,同时返回 readTokenScope: "structural-metadata"。只有用户授权全文读取时才添加 --include-content;此时返回 readTokenScope: "full-content"。替换媒体、表格、容器、未知节点等受保护 block 时,必须使用已审阅全文后取得的 full-content token,并显式添加 --allow-protected-replace;默认 scope 会被拒绝。

token 短期有效(当前为 30 分钟,以 readTokenExpiresAt 为准),绑定生成它时当前账号对应的本地 PowerSync 数据库作用域,不能在切换账号或本地数据库后复用。token 也是单次使用的,任何真实 patch 尝试都会先消费它,失败后重试必须重新执行 content-read。Agent 应把 token 写入唯一、仅 owner 可读写(mode 0600)的临时文件,通过 --read-token @<file> 传入,并在这一次真实 patch 尝试后立即删除;不要把 token 放进命令参数、日志、笔记或可复用文件。

收藏状态
dino note star <note-id>
dino note unstar <note-id>
dino note star --ids @./note-ids.txt
5.5 删除笔记
dino note delete <note-id>

说明:

  • 这是软删除,不是物理彻底抹除
  • 建议先加 --dry-run 再执行正式删除
dino note delete <note-id> --dry-run
5.6 管理待办任务

Dinox 的待办来自笔记内容中的任务列表。CLI 提供了 4 个最常用动作:搜索、追加、创建、更新状态。

搜索待办
dino todo search
dino todo search "付款"
dino todo search "付款" --status backlog,todo,in_progress
dino todo search --from 2026-03-01 --to 2026-03-07 --limit 100
按标签筛选待办
dino todo search --tags "工作,财务"
创建一条新的待办笔记
dino todo create "补交报销单"
一次创建多条待办
dino todo create --task "补交报销单" --task "整理发票"
dino todo create --tasks '["补交报销单","整理发票"]'
dino todo create --tasks @./todo.txt --title "本周财务待办"
追加待办到现有笔记
dino todo append "补交报销单"
dino todo append --note-id <note-id> --task "补交报销单" --task "整理发票"
dino todo append --note-id <note-id> --tasks @./todo.txt

说明:

  • 如果不传 --note-id,CLI 会自动选一条“适合追加任务”的最近笔记
  • 如果该笔记末尾已有任务列表,会直接并入;没有则会新建任务列表
更新待办状态
dino todo update <task-id> --status done
dino todo update <task-id> --note-id <note-id> --status done
dino todo update <task-id> --status todo
dino todo update <task-id> --status cancelled

任务状态只有 5 个值:

  • backlog:以后再说(Markdown [>])
  • todo:待办([ ])
  • in_progress:进行中([/])
  • done:完成([x])
  • cancelled:取消([-])

done/cancelled 是已关闭,其余是未关闭。设为 done 或 cancelled 时,未关闭的子任务会一并设为同一状态(已关闭的子任务保持原状);设为未关闭状态时,已关闭的父任务会重新打开为 todo;backlog/in_progress 不向下传递。父任务不会自动完成。

3.0 起旧写法(completed/uncompleted/all、undone/true/false/1/0、JSON 里的 checked)全部移除,不再兼容。

对没有持久 task id 的旧笔记,todo search 会返回 legacy-task-* 合成 id。该 id 绑定搜索时的任务位置和内容;如果笔记结构随后变化,更新会安全失败,必须重新搜索,避免把状态写到另一条任务。建议始终把搜索结果中的 note_id 一并传给 --note-id。

5.7 管理标签
查看全部标签
dino tag list
创建标签
dino tag add "工作/项目A"
dino tag add --name "工作/项目A" --emoji "🧠"

说明:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @dinoxx/dinox-cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229