Command Line Interface
CLI Documentation
AI-powered file automation from your terminal. Rename thousands of files, extract document data, and split PDFs with simple commands.
Quick Start
Try instantly with npx — no installation required:
$ npx @renamed-to/cli watch ~/Downloads --output-dir ~/OrganizedOr install globally for all features:
# Install with pnpm (recommended)
$ pnpm add -g @renamed-to/cli
# Then authenticate
$ renamed auth loginCommands
Example Workflow
Process a folder of messy documents into organized, searchable files:
# Preview what will be renamed
$ renamed rename ./documents/
# Apply the changes
$ renamed rename ./documents/ --apply
Analyzing 47 files...
✓ IMG_4521.pdf → 2026-01-15_AcmeCorp_Invoice.pdf
✓ scan0042.pdf → 2026-01-14_Receipt_Starbucks.pdf
✓ document.pdf → 2026-01-13_Contract_NDA_TechCorp.pdf
Done! 47 files renamed in 2.3sGlobal Options
These options work with all commands:
--jsonOutput results as JSON for scripting.
-q, --quietSuppress all output except errors.
-y, --yesSkip confirmation prompts.
--no-inputDisable interactive prompts. Useful for CI/CD.
--timeout <ms>API request timeout in milliseconds.
--retry <n>Number of retry attempts for failed requests.
--on-conflict <strategy>How to handle filename conflicts: fail, skip, suffix
-h, --helpShow help for a command.
Environment Variables
RENAMED_TOKEN — API token for authentication (alternative to auth login)
RENAMED_CLIENT_ID — Custom OAuth client ID for enterprise SSO
RENAMED_CLIENT_SECRET — Custom OAuth client secret for enterprise SSO
RENAMED_JSON=1 — Enable JSON output (equivalent to --json)
RENAMED_QUIET=1 — Enable quiet mode (equivalent to --quiet)
CI=1 — Detected automatically. Enables --no-input and machine-friendly output.
Supported File Types
PDF, JPG, JPEG, PNG, TIFF — max 25MB per file.