KoalaPress CLI to manage Docker/WordPress setup

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:Shell

dev-main 2025-07-28 13:14 UTC

This package is auto-updated.

Last update: 2025-07-28 13:18:39 UTC


README

EUCA is a lightweight command-line tool to manage a Docker-based WordPress development environment โ€“ optimized for KoalaPress themes.

๐ŸŒฟ Streamlined setup with Docker, WP-CLI, Composer, and Acorn.

๐Ÿ“ฆ Installation

Via Composer

composer require --dev koalapress/euca

You can now run the CLI like this:

./vendor/bin/euca

Optional: make it available globally

composer global require koalapress/euca
euca

Requirements

  • Docker + Docker Compose v2+
  • Composer
  • WP-CLI installed inside your container
  • Optionally: xdg-open, open, or start for browser support

๐Ÿš€ Usage

./vendor/bin/euca <command> [--no-open]

Available Commands

Command Description
setup Full WordPress setup ๐ŸŒฑ
install Install WordPress core
theme Activate the KoalaPress theme
plugins Install Composer plugins inside the theme
cleanup Delete unused plugins and themes
lang Install and activate WordPress language
permalinks Set permalink structure to /postname/
up Start Docker containers
down Stop Docker containers
restart Restart Docker containers
wp Run WP-CLI commands inside the container
composer Run Composer commands inside the theme folder
acorn Run Acorn commands inside the theme
bin Run theme-local vendor/bin/... commands

โš™๏ธ Configuration

All settings are controlled via a .env file in your project root:

PROJECT_NAME=koala
SERVICE=wordpress
DOMAIN=koala.localhost
ADMIN_USER=admin
ADMIN_PASS=admin
ADMIN_EMAIL=admin@example.com
SITE_TITLE="My KoalaPress Site"
LOCALE=de_DE

If no .env is found, one will be auto-generated or copied from .env.example.

๐Ÿ” Admin Login

After setup, the login URL (/wp-admin) is automatically opened.

  • Username: admin (or from .env)
  • Password: admin (or from .env)

๐Ÿ“ Recommended Project Structure

my-project/
โ”œโ”€โ”€ docker-compose.yml
โ”œโ”€โ”€ .env
โ”œโ”€โ”€ build/
โ”‚   (with its own composer.json)

๐Ÿงช Example

# Run full setup
./vendor/bin/euca setup

# Activate theme
./vendor/bin/euca theme

# Stop containers
./vendor/bin/euca down

๐Ÿ“ License

MIT ยฉ KoalaPress