Skip to content

feat: add storage:download-configurations command - #117

Open
jirkasemmler wants to merge 1 commit into
mainfrom
jirka/download-component-configurations
Open

feat: add storage:download-configurations command#117
jirkasemmler wants to merge 1 commit into
mainfrom
jirka/download-component-configurations

Conversation

@jirkasemmler

Copy link
Copy Markdown
Contributor

Changes:

  • New storage:download-configurations command: downloads every configuration of a component in a project as pretty-printed JSON, one file per configuration, with full detail including rows and state. --include-deleted also pulls deleted configurations into a deleted/ subdirectory.
  • Registered in cli.php (commands are not auto-discovered) and documented in README under "Project manipulation".

Read-only, so it deliberately has no -f/--force flag - the dry-run-by-default convention only applies to mutating commands.

Output defaults to ./configurations/<component-id>, which is untracked; worth adding to .gitignore if that turns out to be annoying in practice.


Additional notes

⚠️ Don't forget to release new version after merge

Same as #115 and #116: the 4 phpstan errors in FlowMigration/ProjectClientsFactory.php are pre-existing on main at c4ef6b4 and unchanged by this PR. Locally phpunit (76 tests) and phpcs are green, and php cli.php list shows the command.

🤖 Generated with Claude Code

Dumping every configuration of a component in a project was a manual API loop
each time it came up (comparing configurations across projects, keeping a copy
before a bulk edit, inspecting what a component actually stores). This wraps it:
one pretty-printed JSON file per configuration, full detail including rows and
state.

Read-only, so no --force flag: the dry-run convention does not apply.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant