Download the PHP package imagewize/elayne-cli without Composer
On this page you can find all versions of the php package imagewize/elayne-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imagewize/elayne-cli
More information about imagewize/elayne-cli
Files in imagewize/elayne-cli
Package elayne-cli
Short Description CLI scaffolding tool for Elayne WordPress block theme patterns
License GPL-2.0-or-later
Informations about the package elayne-cli
Elayne CLI
Deprecated — This package is no longer maintained. All functionality has been absorbed into
imagewize/pt-cliv2.0.0.Commands are identical —
pattern:create,layout:create,style:create,pattern:list— now alongsidept-cli check.
CLI scaffolding tool for Elayne, a WordPress block theme. Generates WordPress block pattern PHP files, layout patterns, and theme style variation JSON files interactively from pre-built templates.
Requirements
- PHP >= 8.0
- Composer
Installation
Or clone and install locally:
Shorter commands (optional)
Add these scripts to your theme's composer.json to avoid typing vendor/bin/elayne every time:
Then run composer pattern:list, composer pattern:create, composer layout:create, or composer style:create.
To use the bare elayne command from any project directory, add ./vendor/bin to your shell PATH:
After reloading your shell (source ~/.zshrc) you can run elayne pattern:list, elayne pattern:create, elayne layout:create, and elayne style:create directly.
Usage
List available templates, snippets, layouts, categories, and style presets
Scaffold a new pattern (interactive)
You will be prompted for pattern title, slug, category, template, keywords, and output directory. Use --with-style to also generate a companion CSS file, and --shell-only for an editor-first workflow (PHP header + paste marker only).
Scaffold a new layout pattern (interactive)
You will be prompted for pattern title, slug, layout type, category, keywords, and output directory. Use --shell-only for an editor-first workflow.
Example non-interactive usage:
Scaffold a new style variation (interactive)
You will be prompted for style name, vertical preset (or custom colors), and output directory.
Example non-interactive usage:
Non-interactive pattern creation
With --shell-only (editor-first workflow):
The --slug option accepts the full elayne/<slug> form or just the bare slug — the elayne/ prefix is stripped automatically.
Documentation
Detailed reference material is available in the docs/ directory:
- 📄 Templates — Available pattern templates and descriptions
- 📄 Layouts — Structural layout patterns for the
layout:createcommand - 📄 Snippets — Reusable block markup fragments
- 📄 Categories — Available pattern categories
- 📄 CSS Stubs — CSS file generation and custom stubs
- 📄 Style Presets — Theme style variation color palettes
Generated pattern file
The command writes a .php file to the output directory. Example output for a blank pattern:
After generation, add your block markup inside the file and flush the WordPress pattern cache.
License
GPL-2.0-or-later — see LICENSE.md for details.