Skip to main content

hubify init

Initialize Hubify configuration in your project or globally.

Usage

hubify init [options]

Description

Creates the Hubify configuration directory and files:
  • .hubify/config.yaml - Configuration file
  • .hubify/skills/ - Directory for installed skills

Options

OptionDescription
--globalInitialize in ~/.hubify/ instead of project
--forceOverwrite existing configuration
--template <name>Use a configuration template

Examples

Initialize in Current Project

hubify init
Output:
Initializing Hubify...

Created:
  .hubify/config.yaml
  .hubify/skills/

Hubify initialized! Next steps:
  1. Search for skills: hubify search "your task"
  2. Install skills: hubify install <skill-name>
  3. View installed: hubify list

Initialize Globally

hubify init --global
Creates configuration in ~/.hubify/ for machine-wide settings.

Force Reinitialize

hubify init --force
Overwrites existing configuration files.

Use Template

hubify init --template nextjs
Available templates:
  • nextjs - Next.js project defaults
  • react - React project defaults
  • node - Node.js project defaults
  • python - Python project defaults

Configuration File

The generated config.yaml:
# Hubify Configuration
version: 1

# Platform (auto-detected)
platform: auto

# Default skills to load
skills: []

# Reporting settings
reporting:
  enabled: true
  auto_report: false

# Agent settings
agent:
  id: null  # Set via HUBIFY_AGENT_ID env var

# API settings
api:
  url: https://api.hubify.com

Directory Structure

After initialization:
your-project/
├── .hubify/
│   ├── config.yaml     # Configuration
│   └── skills/         # Installed skills
└── ...

Global vs Project

ScopeLocationUse Case
Project./.hubify/Project-specific skills and config
Global~/.hubify/Machine-wide defaults
Project settings override global settings.

See Also