Skip to content

Blueprints.phar v0.0.1-alpha

Compare
Choose a tag to compare
@adamziel adamziel released this 19 May 14:32
· 21 commits to trunk since this release

The first alpha version of an all-PHP Blueprints v2 runner explored in #9. It supports both v1 and v2 schemas.

It likely breaks in all sorts of ways. This release is meant for collecting error reports. Usage:

> php ./blueprints.phar
WordPress Blueprint Runner
Usage: php blueprints.phar <blueprint> --site-url=<url> --site-path=<path> [options]

Positional arguments:
  blueprint            Path / URL / DataReference to the blueprint (required)

Options:
  -u, --site-url <value>           Public site URL (https://example.com)
      --site-path <value>          Target directory with WordPress install context) (required)
  -x, --execution-context <value>  Source directory with Blueprint context files
  -m, --mode <value>               Execution mode (create|apply) (default 'create-new-site')
  -d, --db-engine <value>          Database engine (mysql|sqlite) (default 'mysql')
      --db-host <value>            MySQL host (default '127.0.0.1')
      --db-user <value>            MySQL user (default 'root')
      --db-pass <value>            MySQL password (default '')
      --db-name <value>            MySQL database (default 'wordpress')
  -p, --db-path <value>            SQLite file path (default 'wp.db')
  -t, --truncate-new-site-directory Delete target directory if it exists before execution (default false)
      --allow <value>              Allowed permissions. One of: read-local-fs
  -h, --help                       Show full help (default false)
  -V, --version                    Show version (default false)

Examples:
  php blueprints.phar my-blueprint.json --site-url https://mysite.test --site-path /var/www/mysite.com
  php blueprints.phar my-blueprint.json --execution-context /var/www --site-url https://mysite.test --mode apply --site-path ./site
  php blueprints.phar my-blueprint.json --site-url https://mysite.test --site-path ./mysite --truncate-site-directory