Skip to content

AI Prompting Guide

Find specialized AI tools just for you →

CLI (Command Line Interface) Tools — AI That Works With Your Files

Instead of copying and pasting between a chat window and your files, CLI tools let the AI read, edit, and organize your files directly. Think of it as having an assistant who can actually sit at your computer and do the work — not just tell you what to do.

What Can CLI AI Do for You?

Folders
Organize your messy files

"Sort all the photos in my Downloads folder by year and month into organized folders"

Photos
Rename files in bulk

"Rename all 200 vacation photos from IMG_1234.jpg to 'Hawaii 2025 - 001.jpg' format"

Data
Clean up spreadsheet data

"Read my contacts.csv, remove duplicates, fix phone number formatting, and save a clean version"

Web
Build a simple website

"Create a one-page website for my dog walking business with a contact form and pricing table"

Email
Write and send emails

"Draft a professional complaint letter to my landlord about the broken heater, using the photos I took as reference"

Money
Analyze your finances

"Read my bank statement CSV and tell me how much I spent on dining out vs groceries this month"

Convert
Convert file formats

"Convert all the Word documents in this folder to PDFs"

Automate
Create scripts for repetitive tasks

"Write me a script that backs up my important folders to an external drive every Sunday"

CLI vs Chat: What's the Difference?

What You're DoingWith Chat (browser)With CLI (terminal)
Sharing files with the AICopy-paste text or upload one at a timeIt reads all your files instantly
Making changes to a fileAI tells you what to change, you do it manuallyAI edits the file directly for you
Fixing mistakesCopy error message, paste it back, repeatAI sees the error and fixes it automatically
Working on multiple filesOne file at a time, lots of copyingWorks across your whole project at once
Saving your workCopy the AI's answer somewhere yourselfAI saves everything to the right files
Remembering past conversationsStart fresh each time (mostly)Remembers your preferences and project details

How to Install Claude Code

Claude Code is the most capable CLI AI tool. Here's how to get it running on your computer in under 5 minutes.

Step 1: Install Node.js (if you don't have it)

Node.js is what runs Claude Code. Download it from nodejs.org — pick the "LTS" version. Install it like any other program.

# Check if you already have it (open terminal/command prompt):
node --version
# If you see a version number, you're good!

Step 2: Install Claude Code

# Open your terminal (Mac: Terminal app, Windows: Command Prompt)
npm install -g @anthropic-ai/claude-code

Step 3: Start Using It

# Go to the folder you want to work in
cd ~/Documents/my-project

# Start Claude Code
claude

# Now just type what you want in plain English:
# "Organize all the files in this folder by type"
# "Read the README and explain what this project does"
# "Find all TODO comments in my code and list them"

What Each Component Does

Node.jsThe engine that runs Claude Code on your computer. Like how you need a browser to visit websites, you need Node.js to run Claude Code.
npm (comes with Node.js)The app store for command-line tools. You use it to install Claude Code with one command.
Claude Code itselfThe AI assistant that runs in your terminal. It can read your files, make changes, search the web, run programs, and remember things between sessions.
Terminal / Command PromptThe text-based window where you type commands. On Mac, it's called "Terminal." On Windows, "Command Prompt" or "PowerShell." Claude Code lives here.
CLAUDE.md (optional)A text file you can create in any folder to give Claude standing instructions. Like leaving a note for your assistant: "Always use these guidelines when working in this folder."

Real Examples for Real People

Organize 3 Years of Tax Documents
  1. 1."I have a mess of PDFs in my tax folder. Sort them by year, then by type (W-2s, 1099s, receipts, bank statements)."
  2. 2.Claude reads all the file names and contents
  3. 3.Creates folders: 2024/, 2025/, 2026/ with subfolders for each type
  4. 4.Moves each file to the right place
  5. 5.Gives you a summary of what went where
Build a Birthday Party Invite Website
  1. 1."Make a simple webpage for my daughter's birthday party. Pink and purple theme, include the date (April 15), time (2pm), address (123 Oak St), and an RSVP button that sends me an email."
  2. 2.Claude creates the HTML file with the design
  3. 3.You open the file in your browser to preview it
  4. 4."Make the text bigger and add a photo of balloons at the top"
  5. 5.Claude edits the file — you refresh and see the changes instantly
Analyze Your Monthly Spending
  1. 1."Read my bank-statement.csv and break down spending by category. Show me a summary of where my money went this month."
  2. 2.Claude reads the CSV file
  3. 3.Categorizes each transaction (groceries, dining, gas, subscriptions, etc.)
  4. 4.Creates a clean summary with totals per category
  5. 5."Which subscriptions am I paying for? List them with amounts."
  6. 6.Claude filters and lists recurring charges
Fix Your Resume
  1. 1."Read my resume.docx. Make it more professional, fix any grammar issues, and make sure each bullet point starts with an action verb."
  2. 2.Claude reads the document
  3. 3.Rewrites weak bullet points, fixes grammar
  4. 4.Saves the improved version
  5. 5."Now make a version tailored for a marketing manager position at a tech company"
  6. 6.Claude creates a second version with relevant keywords and focus

Power Features (for when you're comfortable)

Standing Instructions (CLAUDE.md)

Create a file called CLAUDE.md in any folder with rules like "always write in a casual tone" or "this project uses Python." Claude reads it every time you start a session there.

Automatic Quality Checks (Hooks)

Set up automatic checks that run every time Claude edits a file — like a spell-checker that runs automatically after every edit.

Memory Across Sessions

Claude remembers things you tell it — your preferences, your project details, what worked last time. You don't have to repeat yourself every session.

Parallel Workers

Claude can spin up helper agents to do multiple things at once — like having one assistant research while another edits files. Faster than doing things one at a time.

Other CLI Tools

Gemini CLI

Google

Google's version. Can search Google for you. Good free tier. Still newer and less polished than Claude Code.

npm install -g @anthropic-ai/claude-code

Strengths

+ Google Search built-in

+ Handles very long files

+ Free to try

Limitations

- Fewer features than Claude Code

- Less reliable on complex tasks

GitHub Copilot CLI

GitHub / OpenAI

Helps you write terminal commands. If you forget how to do something in the command line, it'll write the command for you.

gh extension install github/gh-copilot

Strengths

+ Great for terminal commands

+ Works with Git

+ Explains what commands do

Limitations

- Can't edit your files for you

- Only suggests commands

Aider

Open Source

Free, open-source AI coding assistant. Works with any AI model. Good option if you want flexibility or want to run AI locally.

pip install aider-chat

Strengths

+ Works with any AI model

+ Free and open source

+ Good for coding

Limitations

- Takes more setup

- Less hand-holding than Claude Code

Cursor / Windsurf

Various

AI-powered code editors with a visual interface. Best for people who prefer clicking buttons over typing commands.

Download from cursor.com / codeium.com

Strengths

+ Visual interface (not just text)

+ See changes side by side

+ Good for beginners

Limitations

- Not pure command line

- Less powerful for automation

Tips for Using CLI Tools

Tell it what you want, not how to do it. Say "organize my photos by date" instead of listing every step. The AI figures out the how.
Start small. Try a simple task first (renaming files, reading a document) before asking it to build a website or write a program.
Review before you approve. CLI tools ask for permission before making changes. Read what it plans to do before saying yes.
CLI + Chat = Best combo. Use CLI for tasks that involve your files. Use the regular chat (browser) for general questions and brainstorming.
Don't be afraid of the terminal. It looks intimidating but you're just typing English sentences. Claude Code understands plain language.

CLI Tool Comparison

FeatureClaude CodeGemini CLIAiderCopilot CLI
Can edit your filesYesYesYesNo
Searches the webYesYes (Google)NoNo
Remembers youYesA littleA littleNo
Works on its ownYes (fully)SomewhatSomewhatNo
Free to useLimited freeYesBring your own keyGitHub subscription
Best forEverythingResearchCodingTerminal commands