Skip to main content

Usage

Description

Pull commits and files from your VibeHub project to your local machine. This syncs your local repository with the remote state.

Arguments

remote
string
Remote name to pull from. Defaults to origin.
branch
string
Branch to pull. Defaults to the current branch.

Options

-f, --force
boolean
Force pull and overwrite local changes. Use with caution.
-d, --dry-run
boolean
Preview what would be pulled without actually pulling.
-p, --project-id
string
Specify a project ID to pull from.

Examples

Basic Pull

Pulls all new commits from the current branch on the connected VibeHub project.

Pull from a Specific Branch

Pulls commits from the develop branch on the remote.

Preview Changes

Shows what would be pulled without making any changes.

Force Pull

Force pulling will overwrite your local changes. Make sure to backup any unsaved work.

Branch Workflow

VibeHub CLI uses Git for local branch management. Here’s how to work with branches:

Pull from Current Branch

Pull from a Different Branch

Switch Branch and Pull

What Gets Pulled

When you pull, you receive:

Prerequisites

Before pulling, ensure you have:
  1. Authenticated with vibe login
  2. Initialized your project with vibe init
  3. Connected to a VibeHub project with vibe set <project-url>

Output

A successful pull shows:

Handling Conflicts

If your local changes conflict with remote changes:

Resolving Conflicts

  1. Backup your changes: Copy modified files elsewhere
  2. Force pull: vibe pull --force
  3. Manually merge: Re-apply your changes to the pulled files

Use Cases

Use pull to get the latest code when switching between computers.
Pull to receive commits pushed by collaborators.
Pull changes from a specific feature branch.
Force pull to reset your local state to match VibeHub.

Error Handling

Not Connected

Solution: Connect to a project with vibe set.

Not Authenticated

Solution: Authenticate with vibe login.

Access Denied

Solution: Request access from the project owner.

No Remote Changes

This means the cloud project is empty or you’re already up to date.