Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space export of published content #2060

Open
bcardiff opened this issue May 12, 2023 · 1 comment
Open

Space export of published content #2060

bcardiff opened this issue May 12, 2023 · 1 comment

Comments

@bcardiff
Copy link

bcardiff commented May 12, 2023

I'm currently using space export command with the default options. This exclude drafted entries.

But I would be interested in generating an export of the last published content only. This is stricter that the current exclude draft option.

Currently, non published changes of previous published entries are grabbed. This causes some issues precisely when draft entries are excluded because references to these might still appear.

Is there a way to get only the published version by this tool? Is this a behavior that would make sense to add behind another flag?

@bcardiff
Copy link
Author

I found that there is an undocumented option --delivery-token "$DELIVERY_API_TOKEN" that when used will return the last published version of each entry.

I would argue that is not ergonomic to ask for tokens if we are already logged in interactively, and that this behavior should be the default, unless --include-drafts is used.

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

No branches or pull requests

1 participant