Command Structure
All ArchiveBox commands follow this pattern:Docker Usage
When running in Docker, prefix commands with your Docker execution method:Command Categories
ArchiveBox commands are organized into several categories:Setup Commands
init- Initialize a new ArchiveBox collectioninstall- Install dependencies and browser binaries
Core Archive Commands
add- Add new URLs to archiveremove- Remove URLs from the archiveupdate- Update and migrate existing snapshotssearch- Search and list snapshots (alias:list)status- Show archive statistics and health
Server & Automation
Advanced Commands
config- Get and set configuration valuesshell- Enter interactive Python/Django shellmanage- Run Django management commands
Model Commands (CRUD operations)
crawl- Manage crawl recordssnapshot- Manage snapshot recordsarchiveresult- Manage archive resultstag- Manage tagsbinary- Manage binary dependencies
Common Options
Most commands support these common options:--help,-h- Show help for the command--version,-v- Show ArchiveBox version--debug- Enable debug mode with verbose output
Working Directory
Exit Codes
ArchiveBox commands use standard UNIX exit codes:0- Success1- General error or no results found2- Invalid usage or configuration error
Command Aliases
Some commands have been renamed for clarity. Old names still work but show a deprecation hint:import→addarchive→addsetup→installorchestrator→runextract→archiveresult
Output Formats
Many commands support multiple output formats:- Plain text - Default human-readable output
- JSON - Machine-readable with
--json - CSV - Spreadsheet-compatible with
--csv=fields - HTML - Static HTML with
--html
Common Patterns
Piping URLs
Filtering Snapshots
Many commands accept filter patterns:Background Processing
Getting Help
Every command has detailed help available:Environment Variables
Commands respect these environment variables:DATA_DIR- Override the data directory locationDEBUG- Enable debug mode (True/False)IN_DOCKER- Indicates running in Docker container
Next Steps
Initialize Archive
Set up your first ArchiveBox collection
Add URLs
Start archiving web pages
Run Server
Launch the web interface
Configuration
Customize your archive settings