PHPackages                             kauffinger/statamic-context-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kauffinger/statamic-context-cli

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kauffinger/statamic-context-cli
===============================

Let LLMs get context on the statamic docs

v0.0.7(11mo ago)027[2 PRs](https://github.com/kauffinger/statamic-context-cli/pulls)MITPHPPHP ^8.3CI passing

Since Jul 15Pushed 2mo agoCompare

[ Source](https://github.com/kauffinger/statamic-context-cli)[ Packagist](https://packagist.org/packages/kauffinger/statamic-context-cli)[ Docs](https://github.com/kauffinger/statamic-context-cli)[ GitHub Sponsors]()[ RSS](/packages/kauffinger-statamic-context-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (15)Versions (11)Used By (0)

Statamic Context CLI
====================

[](#statamic-context-cli)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ce1443175635d4149b6d147c5e046c0dbe502119932907a5ceeb2e3d6d80a431/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b61756666696e6765722f73746174616d69632d636f6e746578742d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kauffinger/statamic-context-cli)[![GitHub Tests Action Status](https://camo.githubusercontent.com/df1994122b371e48777e06a03d61b7d0631bd5ae44bbb80644920ba35f1a7dc3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b61756666696e6765722f73746174616d69632d636f6e746578742d636c692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kauffinger/statamic-context-cli/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/23ac9714d8ef4cc3dac36692b040ec037404f865814cb3821f6a7d52bc72eb4e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b61756666696e6765722f73746174616d69632d636f6e746578742d636c692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kauffinger/statamic-context-cli/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/86ad1341d5baf9930956bf50ee631e969a53ab63e2255b3c0233adf160416de0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61756666696e6765722f73746174616d69632d636f6e746578742d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kauffinger/statamic-context-cli)

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.

Installation
------------

[](#installation)

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"
```

Usage
-----

[](#usage)

### Available Commands

[](#available-commands)

View all available commands:

```
php artisan statamic-context
```

### Statamic Documentation

[](#statamic-documentation)

**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
```

### Statamic Peak Documentation

[](#statamic-peak-documentation)

**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
```

### Interactive Mode

[](#interactive-mode)

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

### Integration with Claude Code

[](#integration-with-claude-code)

This tool is designed to work with [Claude Code](https://claude.ai/code):

1. **Search for relevant documentation** using the CLI commands
2. **Copy the documentation content** from search results
3. **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
```

### Benefits

[](#benefits)

- **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

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Konstantin Auffinger](https://github.com/62616071+kauffinger)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance70

Regular maintenance activity

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

350d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0e9a29e1307758a7b7ebb40231f8fbf69522d6fa2b125652d1e8dc48c9f38c7?d=identicon)[kauffinger](/maintainers/kauffinger)

---

Top Contributors

[![kauffinger](https://avatars.githubusercontent.com/u/62616071?v=4)](https://github.com/kauffinger "kauffinger (37 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelKonstantin Auffingerstatamic-context-cli

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kauffinger-statamic-context-cli/health.svg)

```
[![Health](https://phpackages.com/badges/kauffinger-statamic-context-cli/health.svg)](https://phpackages.com/packages/kauffinger-statamic-context-cli)
```

###  Alternatives

[nativephp/mobile

NativePHP for Mobile

1.1k75.1k90](/packages/nativephp-mobile)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M581](/packages/laravel-boost)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M193](/packages/laravel-ai)[nativephp/desktop

NativePHP for Desktop

39742.4k8](/packages/nativephp-desktop)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
