Overview
The Artifact Miner CLI provides both interactive and non-interactive modes for analyzing student project portfolios. You can run quick analyses with command-line flags or use the guided interactive flow for a step-by-step experience.Installation
The CLI is available after installing Artifact Miner:Quick Start
Command Line Flags
Required Arguments (Non-Interactive Mode)
| Flag | Long Form | Description | Example |
|---|---|---|---|
-i | --input | Path to ZIP file containing projects | -i projects.zip |
-o | --output | Output file path (.txt or .json) | -o report.txt |
Optional Arguments
| Flag | Long Form | Description | Options | Default |
|---|---|---|---|---|
-c | --consent | Consent level for LLM usage | full, no_llm, none | no_llm |
-u | --user-email | User email for tracking | Any valid email | [email protected] |
Interactive Mode
Run without-i and -o flags to enter the guided interactive flow:
Consent Selection
Choose your consent level for data processing:
- Full: Enables AI-powered summaries and insights using external LLM services
- No LLM: Performs local analysis only without external API calls
- None: Minimal analysis with basic metrics only
Input File Selection
Provide the path to your ZIP file containing project repositories:The CLI validates that:
- File exists at the specified path
- File has
.zipextension - File is readable
Repository Selection
After extracting the ZIP, select which repositories to analyze:Selection formats:
all- Analyze all discovered repositories1,3,5- Specific repositories by number1-3- Range of repositories1,3-5,7- Mix of individual and ranges
Non-Interactive Mode
For automation and scripting, use command-line flags to run analysis without prompts:- Text Output
- JSON Output
- Minimal Analysis
- PROJECT ANALYSIS DETAILS - Metrics per project
- AI SUMMARIES - Top 3 projects (if consent allows)
- RESUME ITEMS - Extracted insights
Consent Levels Explained
full - Enhanced AI Analysis
full - Enhanced AI Analysis
Allows external Large Language Model (LLM) services to process your code for:
- AI-generated project summaries - Natural language descriptions of each project
- Enhanced skill extraction - Context-aware identification of technologies
- Intelligent insights - Recommendations and highlights
no_llm - Local Analysis Only (Recommended)
no_llm - Local Analysis Only (Recommended)
Performs comprehensive analysis using only local processing:
- Static code analysis - Language and framework detection
- Git history analysis - Commit patterns and contribution metrics
- Skill chronology - Timeline of technology usage
- Resume item generation - Automatic bullet point creation
none - Minimal Metrics
none - Minimal Metrics
Basic file and repository scanning:
- File counts and directory structure
- Basic repository metadata
- No skill extraction or insights
Output Formats
Text Format (.txt)
Human-readable report designed for quick review:
JSON Format (.json)
Structured data for programmatic processing:
Post-Analysis Display
After analysis completes, the CLI displays two visualizations in the terminal:Project Timeline
Shows each project’s activity period with visual indicators:●- Recently active (within 6 months of last commit)○- Inactive (older than 6 months)
Skills Chronology
Displays when skills were first demonstrated, grouped by category:Analysis Progress
During analysis, the CLI shows real-time progress:- Animated spinner
- Progress bar
- Current repository being analyzed
- Completed/total count
Common Use Cases
Error Handling
The CLI validates inputs and provides clear error messages:Tips and Best Practices
Organizing Project ZIPs
Organizing Project ZIPs
Structure your ZIP files with one directory per project:The CLI automatically discovers git repositories in the archive.
Choosing the Right Consent Level
Choosing the Right Consent Level
- Use
fullwhen you need detailed AI-generated summaries and don’t mind external API calls - Use
no_llm(default) for comprehensive analysis without external services - recommended for most users - Use
noneonly for basic scanning when you need minimal processing
Performance Optimization
Performance Optimization
- Large repositories (>1GB) may take several minutes to analyze
- Use repository selection in interactive mode to analyze specific projects
- JSON output is faster to generate than formatted text
- Run with
no_llmconsent to avoid API latency
Output File Management
Output File Management
- The CLI prompts before overwriting existing files in interactive mode
- In non-interactive mode, files are overwritten without confirmation
- Use timestamped filenames for versioning:
report-2024-03-15.json
Next Steps
Textual TUI
Explore the interactive terminal user interface
React Client
Try the experimental OpenTUI React client
API Reference
Integrate Artifact Miner into your applications
Configuration
Customize analysis settings and behavior