CLI Commands Reference
Complete reference for all Doclayer CLI commands and their options.
Commands Reference
Complete reference for all Doclayer CLI commands, organized by category.
doclayer auth
Authentication and API key management
doclayer auth loginInteractive login to your Doclayer account
doclayer auth logoutLog out and clear stored credentials
doclayer auth statusCheck current authentication status
doclayer auth api-key listList all your API keys
doclayer auth api-key create --name "CI/CD"Create a new API key
doclayer auth api-key revoke <key_id>Revoke an existing API key
doclayer agent
Agent template management and execution
doclayer agent listList all available agent templates
doclayer agent list --category contractsFilter agents by category
doclayer agent get contracts.nda-summaryGet details of a specific agent
doclayer agent describe <agent_id> --verboseDetailed agent description
doclayer agent initInteractive wizard to create a custom agent
doclayer agent validate ./manifest.ymlValidate an agent manifest file
doclayer agent test <agent_id> --document sample.pdfTest an agent with a document
doclayer agent run <agent_id> --document doc.pdf --waitRun an agent on a document
doclayer ingest
Document ingestion and batch processing
doclayer ingest file doc.pdf --project proj_123Upload and process a single file
doclayer ingest file doc.pdf --project proj_123 --waitUpload and wait for completion
doclayer ingest file doc.pdf --metadata '{"tag":"invoice"}'Upload with metadata
doclayer ingest batch ./docs --project proj_123Batch upload a directory
doclayer ingest batch ./docs --workers 4 --recursiveParallel batch upload
doclayer ingest manifest batch.yaml --resumeUpload via manifest with resume support
doclayer status
Job monitoring and verification
doclayer status list --project proj_123List ingestion jobs
doclayer status list --status processing --limit 20Filter jobs by status
doclayer status inspect <job_id>Get detailed job information
doclayer status inspect <job_id> --vectorsInclude vector counts
doclayer status watch --project proj_123Real-time job monitoring
doclayer status grounding --tenant <tenant_id>Check LangExtract grounding coverage
doclayer status verify-pgvector <doc_id> <doc_id2>Verify pgvector entries
doclayer document
Document operations and retrieval
doclayer document listList all documents
doclayer document list --limit 10 --format jsonList with custom format
doclayer document get <doc_id>Get document details
doclayer document download <doc_id> --output result.jsonDownload extraction results
doclayer document chunks <doc_id> --limit 5View document chunks
doclayer document extractions <doc_id>View document extractions
doclayer document annotations <doc_id>List document annotations
doclayer document cleanup <doc_id> --mode softSoft-delete a document
doclayer document cleanup <doc_id> --mode gdpr --forceGDPR compliant deletion
doclayer workflow
Temporal workflow management
doclayer workflow listList all workflows
doclayer workflow list --status runningFilter by status
doclayer workflow status <job_id>Check workflow status
doclayer workflow logs <job_id>View workflow logs
doclayer workflow logs <job_id> --followStream logs in real-time
doclayer workflow cancel <job_id>Cancel a running workflow
doclayer workflow retry <job_id>Retry a failed workflow
doclayer search
Vector, graph, and hybrid search
doclayer search vector "payment terms"Semantic vector search
doclayer search vector "contract" --limit 10Search with result limit
doclayer search vector "NDA" --similarity 0.8Search with threshold
doclayer search hybrid "invoice due date"Combined vector + keyword search
doclayer search graph --entity "Acme Corp"Knowledge graph entity search
doclayer search graph --query "MATCH (n) RETURN n"Raw Cypher query
doclayer billing
Usage tracking and billing information
doclayer billing statusCurrent billing status
doclayer billing usageUsage breakdown for current month
doclayer billing usage --month 2025-01Usage for specific month
doclayer billing tierCurrent tier and limits
doclayer billing breakdownDetailed cost breakdown by model
doclayer billing estimate --agent finance.invoice --count 100Estimate processing costs
doclayer billing alert create --threshold 4000Create usage alert
doclayer model
LLM and embedding model configuration
doclayer model listList available models
doclayer model list --provider mistralFilter by provider
doclayer model configView current model configuration
doclayer model set llm --provider gemini --model gemini-2.0-flashSet LLM model
doclayer model set embedding --provider gemini --model text-embed-004Set embedding model
doclayer model test --text "Hello world"Test model configuration
doclayer config
CLI configuration management
doclayer config showShow current configuration
doclayer config profile listList all profiles
doclayer config profile create productionCreate a new profile
doclayer config profile use productionSwitch to a profile
doclayer config import-profiles --from-file profiles.yamlImport profiles from file
doclayer config set default_project proj_123Set default project
Global Options
These options are available for all commands:
| Option | Description |
|---|---|
| --config <path> | Custom config file path (default: ~/.doclayer/config.json) |
| --profile, -p <name> | Configuration profile to use |
| --verbose, -v | Enable verbose output |
| --help | Show help for any command |
Exit Codes
| Code | Description |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Authentication error |
| 3 | Network error |
| 4 | Validation error |
| 5 | Resource not found |