From 04733d7cb476e859604eb8d41d0d1878dde8fc5e Mon Sep 17 00:00:00 2001 From: Ivan Grynenko Date: Tue, 28 Jan 2025 10:17:13 +1100 Subject: [PATCH] Update README.md with comprehensive scaffold installer options and Lagoon cluster configuration - Expand documentation for required and optional installation flags - Add detailed explanation of Lagoon cluster configuration options - Include example command for SalsaDigital Lagoon cluster setup - Clarify default values for GitHub repository and branch - Improve readability and provide more context for installation process --- README.md | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ccab844..a200572 100644 --- a/README.md +++ b/README.md @@ -82,19 +82,44 @@ php scaffold-installer.php --scaffold=drevops --ci=circleci --hosting=lagoon --s ``` ### Options + +Required options when using `--non-interactive`: - `--scaffold=`: Scaffold type (drevops, vortex, govcms) - `--ci=`: CI/CD type (circleci, github) - `--hosting=`: Hosting environment (lagoon, acquia) -- `--ssh-fingerprint=`: SSH key fingerprint for CircleCI (required for CircleCI) +- `--ssh-fingerprint=`: SSH key fingerprint (required only for CircleCI) + +Optional flags and their defaults: +- `--distribution=`: Distribution type (default: drupal) - `--latest`: Use latest version - `--version=`: Use specific version - `--dry-run`: Show what would be changed without making changes - `--force`: Overwrite existing files (creates backups) - `--non-interactive`: Run without prompts - `--source-dir=`: Source directory for files -- `--target-dir=`: Target directory for installation -- `--github-repo=`: Custom GitHub repository -- `--github-branch=`: Custom GitHub branch +- `--target-dir=`: Target directory for installation (default: current directory) +- `--use-local-files`: Use local files instead of downloading from GitHub +- `--github-repo=`: Custom GitHub repository (default: salsadigitalauorg/scaffold-toolkit) +- `--github-branch=`: Custom GitHub branch (default: main) +- `--lagoon-cluster=`: Lagoon cluster type (salsa, other) - only used when hosting=lagoon + +### Lagoon Cluster Configuration + +When using Lagoon hosting, you can specify the cluster type: + +1. SalsaDigital Cluster (`--lagoon-cluster=salsa`): + - Automatically configures environment variables for the SalsaDigital cluster + - Sets up correct webhook endpoints and API URLs + - Configures SSH hosts and ports + +2. Other Clusters (`--lagoon-cluster=other`): + - Requires manual configuration of Lagoon-specific environment variables + - You'll need to set up your own webhook endpoints and API URLs + +Example with SalsaDigital cluster: +```bash +php scaffold-installer.php --scaffold=drevops --ci=circleci --hosting=lagoon --lagoon-cluster=salsa +``` ### CircleCI Environment Variables