CLI

Commands

Every poly command at a glance.

The complete poly command reference. Every command also documents itself: poly <command> --help.

Browsing & searching

CommandWhat it does
lsList the contents of a Poly folder
findFind files by name, type, or path — a find(1)-compatible subset
searchSemantic, full-text, and metadata search across your files

Moving data

CommandWhat it does
cpCopy between local disk and Poly, or within Poly
mvMove a file or folder within Poly
rmArchive a file — or permanently delete an already-archived one
wgetDownload a URL straight into Poly

Creating things

CommandWhat it does
mkdirCreate a folder
mkurlCreate a bookmark pointing at a URL
mksearchCreate a saved search ("smart folder")
mkdriveCreate a shared drive
rmdrivePermanently delete a shared drive

File utilities

CommandWhat it does
file showDetailed metadata for a file or folder
file readRead content — text, extracted PDF text, transcripts
file writeWrite bytes into a file (create or replace)
file updateRename, tag, rate, annotate — metadata in one request
file searchSearch for fragments within a single file
file historyThe change history of a file
file restoreRoll back to a revision or point in time
file revertUndo one specific change
file openOpen in a native application
file downloadDownload to a local directory
file shareMake public, invite people, revoke access

App & session

CommandWhat it does
appStart, stop, and inspect the local Poly app
authLog in and out

Global flags

A handful of flags work on every command — --output json, --cache-only, --no-stale, --wait-for-indexing, --disallow-force, and friends. See Global Flags for the full reference.

© Poly Corp. 2026