You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new @contentstack/cli-asset-management package that handles exporting space-based asset data when AM 2.0 is enabled for a stack
The assets export module now checks for linkedWorkspaces (fetched from CMA branch settings am_v2.linked_workspaces during stack export) to decide between the legacy asset flow and the new spaces-based flow
When AM 2.0 is active, exports org-level fields and asset types (shared), then per-space metadata, folder structure, asset metadata, and downloaded asset files into a spaces/ directory structure
Legacy export behavior is fully preserved when no linked workspaces are present
What changed
New package: @contentstack/cli-asset-management
ExportSpaces orchestrator with per-space export classes (ExportWorkspace, ExportAssets, ExportFields, ExportAssetTypes)
AssetManagementAdapter HTTP client for the AM API (/api/spaces, /api/fields, /api/asset_types)
Base class with progress tracking and chunked JSON write support
Modified: contentstack-export
assets.ts: Branches on linkedWorkspaces.length > 0 to delegate to ExportSpaces
stack.ts: Fetches linked workspaces from branch settings and sets them on exportConfig
New get-linked-workspaces.ts utility
Added linkedWorkspaces to ExportConfig and assetManagementUrl to Region type
Updated progress strategy registry for AM 2.0 process names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Asset Management 2.0 – Export Support
Summary
@contentstack/cli-asset-managementpackage that handles exporting space-based asset data when AM 2.0 is enabled for a stacklinkedWorkspaces(fetched from CMA branch settingsam_v2.linked_workspacesduring stack export) to decide between the legacy asset flow and the new spaces-based flowspaces/directory structureWhat changed
New package:
@contentstack/cli-asset-managementExportSpacesorchestrator with per-space export classes (ExportWorkspace,ExportAssets,ExportFields,ExportAssetTypes)AssetManagementAdapterHTTP client for the AM API (/api/spaces,/api/fields,/api/asset_types)Modified:
contentstack-exportassets.ts: Branches onlinkedWorkspaces.length > 0to delegate toExportSpacesstack.ts: Fetches linked workspaces from branch settings and sets them onexportConfigget-linked-workspaces.tsutilitylinkedWorkspacestoExportConfigandassetManagementUrltoRegiontypeExport structure (AM 2.0)