CLI reference¶
This page is generated from the Cobra command tree. Do not edit it by hand.
Global options¶
--config string configuration file (default "magelift.yaml")
--env string environment name
--no-interaction never prompt for input
-o, --output string output format: table, json, or yaml (default "table")
-v, --verbose count increase diagnostic verbosity
-y, --yes confirm destructive actions
magelift benchmark¶
Measure a Magento workload for preset sizing
magelift benchmark run¶
Options:
--cache string cache implementation and version under test
--catalog string benchmark catalog name
--catalog-revision string benchmark catalog revision or commit
--concurrency int number of concurrent workers (default 10)
--database string database engine and version under test
--duration duration measurement duration (default 30s)
--edition string Magento edition: open-source or commerce (default "open-source")
--magento-version string Magento version under test
--mix string request mix as comma-separated path=weight entries (default "/=100")
--php-version string PHP version under test
--queue string queue implementation and version under test
--search string search engine and version under test
--url string Magento base URL to measure
magelift bootstrap¶
Create or reconcile the Pulumi state backend
Options:
--access-log-bucket string existing object-storage bucket for state access logs (AWS)
--github-owner string GitHub repository owner for the deployment role
--github-repo string GitHub repository name for the deployment role
magelift build¶
Build an immutable Magento application image
Options:
--builder-image string builder image pinned by registry digest
--image string target image reference for a pushed build
--platform strings target platform, repeatable or comma-separated
--push push the image and publish build attestations
--runtime-image string runtime image pinned by registry digest
--source-url string HTTPS Git source URL used for provenance
magelift cache-flush¶
Run the Magento cache-flush operation on the web workload
magelift ci¶
Generate and validate GitHub Actions workflows
magelift ci generate¶
Generate the GitHub Actions workflow
Options:
--magelift-version string MageLift release version installed by CI (default "dev")
--path string workflow output path
magelift ci validate¶
Validate the GitHub Actions workflow
Options:
--magelift-version string MageLift release version installed by CI (default "dev")
--path string workflow output path
magelift completion¶
Generate shell completion
magelift config¶
Inspect and migrate configuration
magelift config effective¶
Print effective configuration with provenance
magelift config explain¶
Explain where an effective value came from
magelift config migrate¶
Migrate configuration to the current schema
magelift config validate¶
Validate configuration
magelift cost¶
Describe the selected environment's cost inputs
Options:
magelift cron-run¶
Run the Magento cron-run operation on the web workload
magelift deploy¶
Deploy the selected environment
Options:
--digest string override the configured immutable image digest
--infra-only update the infrastructure graph only (skip Magento migrate/health)
magelift destroy¶
Destroy the selected environment
magelift dev¶
Run the local Magento development environment
magelift dev down¶
Run local Compose down
magelift dev exec¶
Run a command in a local Compose service
Options:
magelift dev init¶
Create the local Docker Compose environment
magelift dev logs¶
Run local Compose logs
Options:
magelift dev reset¶
Run local Compose reset
magelift dev seed¶
Install Magento into the local Compose services
Options:
--admin-email string Magento administrator email (default "admin@example.test")
--admin-firstname string Magento administrator first name (default "MageLift")
--admin-lastname string Magento administrator last name (default "Local")
--admin-user string Magento administrator username (default "admin")
--backend-frontname string Magento administrator URL segment (default "admin")
--base-url string local Magento base URL (default "http://localhost:8080/")
magelift dev status¶
Run local Compose status
magelift dev up¶
Run local Compose up
Options:
magelift doctor¶
Check local project readiness
magelift env¶
MageLift env commands
magelift env create¶
Add an environment overlay to magelift.yaml
Options:
--account string AWS account ID
--branches strings Git branches mapped to this environment
--class string environment class
--domain string environment domain
--dump string path to a MySQL dump to seed after first deploy (ADR 0010)
--expires-at string preview expiration as RFC3339
--monthly-budget-cents int maximum monthly AWS budget in cents
--preset string infrastructure preset
--protection protect destructive operations
magelift env destroy¶
Destroy an environment and remove its configuration overlay
magelift env import-dump¶
Import the environment seedDump into the target database
magelift env list¶
List configured environments
magelift env media-sync¶
Upload a local media tree into the environment media bucket (merge)
Options:
magelift env protect¶
Enable or disable destructive-operation protection
Options:
magelift env status¶
Show environment overlay status including seed dump journal
magelift env sweep¶
Destroy expired preview environments
Options:
--before string treat environments expiring at or before this RFC3339 time as expired
--dry-run report expired environments without changing infrastructure or configuration
magelift exec¶
Run a command on a Magento workload
Options:
--container string container name (default "web")
--service string logical service: web or cron (default "web")
--session-only print the resolved session command without starting it
magelift health¶
Check configuration or deployed stack health evidence
Options:
magelift history¶
List the local release journal
magelift init¶
Create a starter magelift.yaml
Options:
--config-out string write generated YAML to PATH for review (default: --config path)
--from-acc generate magelift.yaml from Adobe Commerce Cloud config
--from-upsun generate magelift.yaml from Upsun / Platform.sh config
magelift login¶
Verify cloud credentials for the selected environment
magelift logs¶
Read recent Magento application logs
Options:
--filter string provider log filter pattern
--limit int maximum number of events (default 100)
--service string log service: web, deploy, or cron (default "web")
--since string duration or RFC3339 start time (default "15m")
magelift outputs¶
Read outputs from the selected environment
magelift preview¶
Preview infrastructure changes
magelift promote¶
Record promotion of a signed immutable digest
Options:
--certificate-identity string expected signing certificate identity
--certificate-oidc-issuer string expected signing certificate OIDC issuer
--digest string signed registry digest reference
--from string source environment
magelift queue-status¶
Run the Magento queue-status operation on the web workload
magelift reindex¶
Run the Magento reindex operation on the web workload
magelift rollback¶
Deploy a previous signed digest as a new release
Options:
--ack-forward-only acknowledge that rollback never reverses database migrations
--to-sequence int previous release sequence
magelift secret¶
MageLift secret commands
magelift secret list¶
List application secret names
magelift secret remove¶
Schedule an application secret for deletion
magelift secret set¶
Create or update an application secret
Options:
magelift ssh¶
Open a shell on a Magento workload
Options:
--command string shell command to run (default "/bin/sh")
--container string container name (default "web")
--service string logical service: web or cron (default "web")
--session-only print the resolved session command without starting it
magelift state¶
MageLift state commands
magelift state backup¶
Create a versioned Pulumi state backup
magelift state restore¶
Restore Pulumi state from a versioned backup
magelift state status¶
Show the deployment lock status
magelift state unlock¶
Remove a stale deployment lock
magelift status¶
Show the selected environment configuration
magelift tunnel¶
Explain why port forwarding is unavailable
magelift upgrade¶
Check for or install a signed MageLift CLI release
Options:
--check check for an update without replacing the executable
--version string install a specific release tag
magelift version¶
Print version information