storyblok-cli
storyblok-cli copied to clipboard
Storyblok CLI - Add argument to pass the migration file path
The feature would affect: (check one with "x")
- [ ] app.storyblok.com (CMS - Interface)
- [ ] api.storyblok.com (CMS - Content Delivery API)
- [ ] mapi.storyblok.com (CMS - Management API)
- [ ] capi.storyblok.com (Commerce - API)
- [ ] Commerce - Interface
- [X] Other
Is your feature request related to a problem? Please describe.
We're using the storyblok run-migration
command. However, it requires a strict folder convention and script file name.
Describe the solution you'd like I would like to be able to pass the full path of my migration script.
Example:
storyblok run-migration --space <SPACE_ID> --component <COMPONENT_NAME> --field <FIELD> --migration-file <MIGRATION_FILE>
That way, we would be more flexible to automate the CLI usage and give self-explanatory names for our migration scripts. Ex: move_article_title_to_footer_nav.js
.
Describe alternatives you've considered Using the underline API, but seen the CLI code, looks like it is not a good idea.