Skip to content

01CLI / COMMAND LINE

Your library,
in your terminal

Install trailsnap-cli, run trailsnap, and use TrailSnap from any terminal

Packagetrailsnap-cliBinarytrailsnap
npm install -g trailsnap-cli

02COMMANDS / CAPABILITIES

Power of TrailSnap, in your terminal

Manage photos, albums, tags, locations, and people from the terminal — install trailsnap-cli, then use the trailsnap command

01

Photos

Manage photos from the shell: list, info, delete — the rich command set for day-to-day workflows

$ trailsnap photos --help Usage: trailsnap photos [options] [command] Manage photos Options: -h, --help display help for command Commands: list [options] List photos with filters info --photo-id <id> View photo metadata and description delete --photo-id <id>Delete a photo permanently help [command] display help for command
02

Locations

Statistics based on photo GPS information, query location distribution, and footprint timeline

$ trailsnap locations --help Usage: trailsnap locations [options] [command] Query locations and footprint timeline Options: -h, --help display help for command Commands: list [options] Query location distribution timeline [options] Query footprint timeline help [command] display help for command
03

Albums & Tags

One-click queries for system album lists and classification tag lists. Supports pagination and custom output formats

$ trailsnap albums --help Usage: trailsnap albums|tags [options] [command] Manage albums and tags Options: -h, --help display help for command Commands: list [options] List albums or tags with pagination help [command] display help for command
04

Media & People

Query intelligently recognized people and faces, or directly retrieve the original media files and access URLs

$ trailsnap medias --help Usage: trailsnap medias [options] [command] Get media files or URLs Options: -h, --help display help for command Commands: get [options] Get photo media file or URL help [command] display help for command

03AGENT READY

Ready for agent use

Expose TrailSnap as a tool other agents can call. Standard input and output, predictable exit codes, no UI required — just plug it into the orchestration of your choice

Get started with TrailSnap CLI

Install globally, run trailsnap --help, then explore photos, locations, albums, and media command groups

npm i -g trailsnap-cli
CLI reference on npm