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(10mo ago)027[2 PRs](https://github.com/kauffinger/statamic-context-cli/pulls)MITPHPPHP ^8.3CI passing

Since Jul 15Pushed 1mo 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 (10)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

36

—

LowBetter than 82% of packages

Maintenance74

Regular maintenance activity

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

304d 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

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[maestroerror/laragent

Power of AI Agents in your Laravel project

630106.4k](/packages/maestroerror-laragent)[nativephp/desktop

NativePHP for Desktop

34020.6k3](/packages/nativephp-desktop)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)

PHPackages © 2026

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