Skip to main content

Overview

The VibeHub CLI (vibe) lets you push commits, sync code, and manage projects directly from your terminal. It’s the primary way to send commits from your local development environment to VibeHub.

Requirements

  • Node.js version 18.0.0 or higher
  • npm or yarn package manager
  • A VibeHub account

Installation

npm install -g @vibehub/cli

Using yarn

yarn global add @vibehub/cli

Verify Installation

After installation, verify it worked:
vibe --version
You should see the version number printed.

First-Time Setup

After installing, you need to authenticate:
vibe login
This opens your browser to sign in with your VibeHub account. Once authenticated, you’re ready to use the CLI. See Authentication for more details.

Basic Commands

Here are the most common commands to get started:
CommandDescription
vibe loginAuthenticate with VibeHub
vibe initInitialize a new VibeHub project
vibe set <url>Connect to an existing project
vibe pushPush commits to VibeHub
vibe pullPull commits from VibeHub
vibe statusCheck sync status

Quick Start Example

# 1. Login to VibeHub
vibe login

# 2. Navigate to your project
cd my-project

# 3. Connect to a VibeHub project
vibe set https://vibehub.co.in/username/my-project

# 4. Push your code
vibe push

Getting Help

Command Help

Get help for any command:
vibe --help
vibe push --help
vibe login --help

List All Commands

vibe --help

Updating the CLI

To update to the latest version:

npm

npm update -g @vibehub/cli

yarn

yarn global upgrade @vibehub/cli

Uninstalling

To remove the CLI:

npm

npm uninstall -g @vibehub/cli

yarn

yarn global remove @vibehub/cli

Troubleshooting

Command Not Found

If vibe is not recognized:
  1. Check that npm’s global bin is in your PATH
  2. Try running npm bin -g to find the path
  3. Add that path to your shell configuration

Permission Errors

If you get permission errors during installation:
# Option 1: Use sudo (Linux/Mac)
sudo npm install -g @vibehub/cli

# Option 2: Fix npm permissions (recommended)
# See: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

Node Version Too Old

If you see Node version errors:
  1. Check your Node version: node --version
  2. Update Node to version 18 or higher
  3. Consider using nvm to manage Node versions

Next Steps