storyblok / storyblok-cli

Storyblok CLI
https://www.npmjs.com/package/storyblok
MIT License
32 stars 30 forks source link

[Feature Request] Sync specific datasource entries #50

Open milanvogels opened 1 year ago

milanvogels commented 1 year ago

I would like to sync specific datasource entries from space A to space B, but I cant seem to get it working. It always syncs the entire datasource collection. I would like use it to sync datasources from A that do not exist yet on space B.

I tried different comands like:

storyblok sync --type datasources --source {source_id} --target {target_id} --starts-with {datasource_name} --filter --keys {datasource_key} --operations is --values {datasource_value}
ademarCardoso commented 1 year ago

Hi @milanvogels , we have a opened PR from the community and the idea is like you described, as soon as possible we will delivery this new way to sync datasources, you can check more details in the PR => https://github.com/storyblok/storyblok-cli/pull/52.

About the filter you added in the examples, we removed this feature for now.

milanvogels commented 1 year ago

Thanks, I will look in to it!