Skip to main content

Usage

Description

Clone a VibeHub project to create a local copy. This downloads all files and sets up the project for local development.

Arguments

project-url
string
required
The URL of the VibeHub project to clone. Example: https://vibehub.co.in/username/project-name
directory
string
Optional directory name. Defaults to the project name.

Examples

Basic Clone

This creates a my-project directory with all the project files.

Clone to Specific Directory

Clone and Enter Directory

What Gets Cloned

Prerequisites

  • Must be authenticated with vibe login
  • Must have access to the project (owner or collaborator)

Output

A successful clone shows:

After Cloning

Once cloned, you can immediately:
The project is automatically connected - no need to run vibe init or vibe set.

Cloning Private Projects

For private projects, you must:
  1. Be logged in (vibe login)
  2. Be a collaborator on the project
If you try to clone a project you don’t have access to:

Error Handling

Project Not Found

Solution: Verify the project URL is correct.

Directory Exists

Solution: Either:
  • Remove the existing directory
  • Specify a different directory name

Not Authenticated

Solution: Authenticate with vibe login.

Clone vs Set

Use clone when you don’t have the files locally. Use set when you already have files and want to connect them.