Skip to content

feat: add partial extraction support#120

Open
zjpiazza wants to merge 1 commit intodirectus-labs:mainfrom
Face-to-Face-IT:feat/partial-extraction
Open

feat: add partial extraction support#120
zjpiazza wants to merge 1 commit intodirectus-labs:mainfrom
Face-to-Face-IT:feat/partial-extraction

Conversation

@zjpiazza
Copy link
Copy Markdown

Adds --partial flag with component selection for programmatic extraction:

Extract only schema (no content, users, etc.)
directus-template-cli extract -p --partial --no-content --no-users

Extract only specific components
directus-template-cli extract -p --partial --schema --permissions

New flags:
--partial Enable partial extraction mode
--[no-]schema Extract schema (collections, fields, relations)
--[no-]content Extract content data
--[no-]files Extract files and folders
--[no-]flows Extract flows and operations
--[no-]dashboards Extract dashboards and panels
--[no-]permissions Extract permissions (roles, policies, access)
--[no-]settings Extract settings, translations, presets
--[no-]extensions Extract extensions
--[no-]users Extract users

When --partial is used:

  • If any -- flag is set, only those components are extracted
  • If any --no- flag is set, all except those are extracted
  • At least one component must be selected

Adds --partial flag with component selection for programmatic extraction:

  # Extract only schema (no content, users, etc.)
  directus-template-cli extract -p --partial --no-content --no-users ...

  # Extract only specific components
  directus-template-cli extract -p --partial --schema --permissions ...

New flags:
  --partial          Enable partial extraction mode
  --[no-]schema      Extract schema (collections, fields, relations)
  --[no-]content     Extract content data
  --[no-]files       Extract files and folders
  --[no-]flows       Extract flows and operations
  --[no-]dashboards  Extract dashboards and panels
  --[no-]permissions Extract permissions (roles, policies, access)
  --[no-]settings    Extract settings, translations, presets
  --[no-]extensions  Extract extensions
  --[no-]users       Extract users

When --partial is used:
- If any --<component> flag is set, only those components are extracted
- If any --no-<component> flag is set, all except those are extracted
- At least one component must be selected
Copilot AI review requested due to automatic review settings January 21, 2026 22:14
@zjpiazza zjpiazza changed the title feat(extract): add partial extraction support feat: add partial extraction support Jan 21, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants