A Laravel package that provides fast, searchable access to Statamic and Statamic Peak documentation directly from your command line. Designed to work seamlessly with AI assistants like Claude Code for enhanced Statamic development workflows.
You can install the package via composer:
composer require kauffinger/statamic-context-cli --dev
You can publish the config file with:
php artisan vendor:publish --tag="statamic-context-cli-config"
View all available commands:
php artisan statamic-context
Search Documentation:
# Interactive search
php artisan statamic-context:docs:search --interactive
# Direct search
php artisan statamic-context:docs:search collections
php artisan statamic-context:docs:search blueprints
Get Specific Documentation:
php artisan statamic-context:docs:get core:collections
Update Documentation Database:
php artisan statamic-context:docs:update
Search Peak Documentation:
# Interactive search
php artisan statamic-context:peak:search --interactive
# Direct search
php artisan statamic-context:peak:search page-builder
php artisan statamic-context:peak:search seo
Get Specific Peak Documentation:
php artisan statamic-context:peak:get features:page-builder
Update Peak Documentation Database:
php artisan statamic-context:peak:update
Use the --interactive
flag for a guided experience with:
- Search through documentation with real-time filtering
- Browse search results with pagination
- View full documentation content
- Seamless navigation between different actions
This tool is designed to work with Claude Code:
- Search for relevant documentation using the CLI commands
- Copy the documentation content from search results
- Provide context to Claude Code for more informed assistance
Example workflow:
# Search for information about collections
php artisan statamic-context:docs:search collections --interactive
# Use the documentation content to inform Claude Code about:
# - Collection configuration
# - Available field types
# - Templating patterns
# - Best practices
- Fast Documentation Access: Search thousands of docs instantly from your terminal
- Offline-Ready: Documentation is cached locally after initial update
- Context for AI: Provide accurate, up-to-date Statamic context to AI assistants
- Dual Coverage: Both core Statamic and Peak documentation included
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.