Skip to content

TrailSnap CLI

安装 trailsnap-cli,运行 trailsnap,在任意终端使用 TrailSnap。

Package trailsnap-cli·CLI binary trailsnap
$npm install -g trailsnap-cli

终端里的强大能力

从终端管理照片、相册、标签、位置和人物等数据——安装 trailsnap-cli,然后使用 trailsnap 命令。

照片管理

从 shell 管理照片:查询列表、获取详情、删除——面向日常工作流的丰富命令集。

terminal
$ trailsnap photos --help Usage: trailsnap photos [options] [command] Manage photos Options: -h, --help display help for command Commands: list [options] 查询带有过滤条件的照片列表 info --photo-id <id> 查看照片元数据与描述信息 delete --photo-id <id>永久删除一张照片 help [command] display help for command

位置与时间轴

基于照片的GPS信息统计,查询照片位置分布、足迹时间轴。

terminal
$ trailsnap locations --help Usage: trailsnap locations [options] [command] Query locations and footprint timeline Options: -h, --help display help for command Commands: list [options] 查询位置分布 timeline [options] 查询足迹时间轴 help [command] display help for command

相册与分类标签

一键查询系统中的相册列表和分类标签列表,支持分页和自定义输出格式。

terminal
$ trailsnap albums --help Usage: trailsnap albums|tags [options] [command] Manage albums and tags Options: -h, --help display help for command Commands: list [options] 分页查询相册或标签列表 help [command] display help for command

人物识别与媒体文件

查询智能识别出的人物与面孔,或是直接通过命令行获取照片的原始媒体文件和访问链接。

terminal
$ trailsnap medias --help Usage: trailsnap medias [options] [command] Get media files or URLs Options: -h, --help display help for command Commands: get [options] 获取照片媒体文件或URL help [command] display help for command

可供 Agent 使用

将 TrailSnap 暴露为可供其他 Agent 调用的工具。标准输入与输出、可预测的退出码、无需 UI —— 直接接入你选择的编排体系。

TRAILSNAP CLI

TRAILSNAP CLI

开始使用 TrailSnap CLI

全局安装,运行 trailsnap --help,然后探索照片、位置、相册和媒体等命令组。

$ npm i -g trailsnap-cli
npm 上的 CLI 参考

基于 AGPL-3.0 许可发布