Usage
Description
Initialize a new VibeHub repository in the current directory. This sets up the necessary configuration for syncing with VibeHub.What It Does
When you runvibe init, the CLI:
- Creates a
.vibehubdirectory in your project - Generates a local configuration file
- Prepares the project for pushing to VibeHub
Options
Specify a project name (optional)
Add a project description (optional)
Examples
Basic Initialization
Initialize with Name
Initialize with Description
Directory Structure
After initialization, your project will have:.vibehub directory contains local configuration. You may want to add it to .gitignore.
Next Steps After Init
After initializing, you typically:-
Create a VibeHub project (if you haven’t already):
- Go to vibehub.co.in and create a new project
-
Connect to the project:
-
Push your code:
Common Workflows
New Project from Scratch
Existing Project
Re-initializing
If you need to reinitialize (e.g., after deleting.vibehub):
vibe set again to connect to your project.
Troubleshooting
Already Initialized
If the project is already initialized:- The command will notify you
- Your existing configuration is preserved
- Use
vibe statusto check current state
Permission Denied
If you can’t create the.vibehub directory:
- Check you have write permissions in the current directory
- Ensure you’re not in a read-only location
Related Commands
- vibe set - Connect to an existing VibeHub project
- vibe push - Push commits to VibeHub
- vibe status - Check repository status