Sync Components
After linking your repository to a deeepSpace project, use the deeep sync command to upload your local component index. This keeps your design system in deeepSpace in sync with the components in your codebase.
Before you begin
Make sure you have:
- Installed deeepCLI
- Authenticated with your deeepSpace account
- Connected your repository to a deeepSpace project
How sync works
deeep sync scans your repository for components using the discovery settings configured during deeep init, builds a component index, and sends it to deeepSpace.
Depending on your project setup, it uses one of two discovery methods:
- deeep CLI discovery — scans component directories directly.
- Storybook discovery — reads your Storybook stories and
index.json.
Sync your components
From the root of your linked Git repository, run:
deeep syncOn success you will see a summary of discovered and synced components.
Dry run
To build the component index without sending anything to deeepSpace, use:
deeep sync --dry-runThis is useful for verifying that your discovery configuration picks up the expected components before syncing.
Requirements
deeep sync will fail if any of the following are missing:
- You are inside a Git repository.
- You are authenticated (
deeep auth). - The repository has been initialized (
deeep init). - The linked deeepSpace project is connected to a Git repository.
- A discovery configuration exists (CLI or Storybook).
Daily workflow
- Add or update components in your codebase.
- Run
deeep syncto push the updated component index to deeepSpace. - Continue working in deeepSpace with the latest component metadata.
Troubleshooting
- Authentication required: Run
deeep auth. - No project linked: Run
deeep initto link a project. - Git repository required: Make sure you run the command from inside the linked repository.
- Discovery configuration missing: Run
deeep init --forceto reconfigure component discovery.
For more details about the configuration file, see the Project Settings Reference.