Storyblok CLI - components pull --separate-files - deleted blocks are not removing respective files #215
Replies: 4 comments 2 replies
-
|
cc @alvarosabu |
Beta Was this translation helpful? Give feedback.
-
|
@alvarosabu @imranolas any resolution here? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @edvinasjurele I believe the pull command does not empty the directory by default, so that's probably the cause.
It probably depends on which is the source of truth for the components; it is the space UI, is the local Overall, I think users should be in control of the operations and not the CLI, especially for delicate operations as deletion. Probably is a good idea to add a delete command for components that allow bulk operations (delete multiple) |
Beta Was this translation helpful? Give feedback.
-
|
Closing as a resolution was reached. Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am not certain how components pull should work when removing old component in
--separate-filesmode.Repro flow:
ain CMS Block Librarystoryblok components pullto fetch all JSON files (observea.jsoncreated)ain CMS Block Librarya.jsonfile NOT REMOVEDShould users themselves remove old schema blocks from file system when they are removing a block from space? 🤔 I am sure this should be automated and part of CLI responsibility.
Beta Was this translation helpful? Give feedback.
All reactions