Prerequisites
Before connecting, make sure you have:- Installed the deeep CLI
- Authenticated with your deeepSpace account
- A Git repository whose remote matches the repository connected to the selected project
- A matching project in deeepSpace, or permission to create one
New to deeepSpace? If you haven’t created a project yet, visit app.deeepspace.com to create one, or use
deeep init --create to create a project directly from the current repository.Initialize the project
Navigate to your project’s root directory and run:1
Choose a workspace
Select the deeepSpace workspace to use.
2
Choose or create a project
Link an existing project or create a new one from this repository.
3
Configure component discovery
Choose between CLI discovery and Storybook discovery.
4
Review and save
Confirm the configuration before
deeep.json is written.init records your chosen discovery method on deeepSpace and attempts the first component sync. Prepare committed component sources and a named branch as described in Sync components. It then detects your tech stack and asks whether to update project settings.
If indexing or syncing fails, the project configuration is saved so you can fix the issue and retry with deeep sync. Setup registration is separate from component sync: the Home tab can show the selected method even before a successful sync. If registration fails, local setup continues with a warning; use deeep init --force to retry setup for an initialized project.
Create a new project
To skip only the create/link selection prompt and create a new deeepSpace project from the current repository:--create still asks for the workspace, project name, optional description, discovery settings, and confirmation. A blank project name defaults to the repository directory name. Supported remote forms include https://github.com/owner/repo.git and git@github.com:owner/repo.git, with equivalent GitLab and Bitbucket URLs. Nested GitLab subgroup paths and ssh:// URLs are not supported by the current project-creation parser.
Reconnect to a different project
To change the linked project or update discovery settings:Component discovery
During initialization you choose how the CLI finds your components.deeep CLI discovery
The CLI scans directories that contain component source files, for example:Storybook discovery
If Storybook is detected, you can choose to use your Storybook stories andindex.json instead. The CLI will ask for:
- The
.storybookconfiguration directory - The path to the generated Storybook
index.json - The story file glob patterns
- An optional deployed Storybook URL
- Whether to host Storybook on deeep during sync
init saves the preference; publishing runs on deeep sync.
Configuration file
After linking, the CLI creates adeeep.json file in your repository root. This file contains the project link, project settings, and discovery configuration.
Check connection status
Verify your project connection:Remove the local link
To detach this repository from its deeepSpace project — for example before archiving or handing off a codebase — run:deeep.json and the generated component index (.deeep.index.json, or your configured componentIndexJsonPath) from the repository. Everything in deeepSpace stays intact: the project, its synced components, and the connected repository are untouched. Add --logout to also clear the stored credentials from the machine, and -y to skip the confirmation prompt.
To permanently delete the project or disconnect its repository, use the deeepspace web app.
deeep unlink only cleans the local codebase — you can link the repository again at any time with deeep init.Troubleshooting
Project not found
- Verify you’re in the correct directory.
- Check that you’re logged in with the correct account (
deeep whoami). - Ensure the project exists in deeepSpace.
Git repository required
deeep initmust be run from inside a Git repository.- Creating a project requires a supported
originremote. Syncing an existing project requires a local remote matching its connected repository name.
Git provider connection required
- Connect your Git provider account in deeepSpace before linking a repository.
Configuration errors
- For valid configuration that needs changes, run
deeep init --force. - For malformed JSON, repair the file or back it up outside the repository before removing it and running
deeep initagain. Configuration is loaded before command handling, so--forcecannot bypass invalid JSON. To remove the local link entirely, rundeeep unlinkinstead of deleting the file by hand. - If issues persist, contact support@deeepspace.com for help.
Next steps
Now that your project is connected:- Sync components with deeepSpace
- Learn how to manage your project settings