Skip to content

feat: switch Flex overlay wrappers to fyrst-cli 0.1.0 - #33

Merged
ROBJkE merged 1 commit into
mainfrom
cursor/recipe-fyrst-cli-ab47
Sep 14, 2026
Merged

ROBJkE merged 1 commit into
mainfrom
cursor/recipe-fyrst-cli-ab47

Conversation

@ROBJkE

@ROBJkE ROBJkE commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Cut the Symfony Flex overlay over to fyrst-cli 0.1.0. Shops still get deploy bash and CI still runs bash ./deploy/vps-release.sh; those scripts are now thin wrappers.

What now calls fyrst-cli

Copied wrapper fyrst-cli
deploy/init-env.sh fyrst-cli shopware env init
deploy/vps-release.sh fyrst-cli shopware deploy release
deploy/vps-rollback.sh fyrst-cli shopware deploy rollback
deploy/sync-runtime.sh snapshot|restore|sync fyrst-cli shopware sync capture|apply|pull
deploy/sync-runtime-local.sh fyrst-cli shopware sync local (--data all dropped; CLI default is volumes-only)
deploy/backup-runtime.sh backup|prune|restore fyrst-cli shopware backup create|prune|recover

Each VPS/laptop needs fyrst-cli 0.1.0+ on PATH (scripts/install.sh). Wrappers fail with the install one-liner if it is missing.

What bash remains (not fyrst-cli)

  • The six wrappers + deploy/lib/fyrst-cli.sh (locator / exec)
  • GitHub/GitLab image build and SSH glue (still bash ./deploy/vps-release.sh on the VPS)
  • Compose templates: deploy/compose.yaml, compose.prod.yaml, compose.vps.yaml
  • Edge Caddy, managed-host stub, .env.example, sync.env.example, backup.env.example, .dockerignore
  • Operator dump: shopware-cli project dump (fyrst-cli never dumps). Place db.sql.gz in --snapshot-dir or set BACKUP_DB_DUMP.

Out of this recipe (unchanged ownership)

  • Create: shopware-cli project create
  • Image build: CI docker buildx / shopware/docker Dockerfile
  • Dump: shopware-cli only

Deleted the old deploy/lib/{vps-common,sync-*}.sh implementations (~4k lines). Compose/CI templates are unchanged in behavior.

Tests

All overlay tests pass against fyrst-cli 0.1.0 (wrappers, init-env, sync-runtime, sync-dump, sync-rewrite, vps-hardening).

Shops: composer recipes:update fyrst/shopware-cd after this lands on flex/main, then install fyrst-cli on each VPS.

Open in Web Open in Cursor 

CI still runs bash ./deploy/vps-release.sh. Copied deploy/*.sh now exec
fyrst-cli. Dump stays shopware-cli. Compose and CI templates stay.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@ROBJkE
ROBJkE marked this pull request as ready for review September 14, 2026 05:25
@ROBJkE
ROBJkE merged commit b6a1bb1 into main Sep 14, 2026
@ROBJkE
ROBJkE deleted the cursor/recipe-fyrst-cli-ab47 branch September 14, 2026 05:46
@ROBJkE

ROBJkE commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants