Skip to main content
The init command creates a new Helios project or adds Helios configuration to an existing project.

Usage

Arguments

string
Target directory for the project. If omitted, uses the current directory.

Options

boolean
default:"false"
Skip prompts and use defaults (React framework). Useful for automated workflows.
string
Specify framework without prompts. Valid values: react, vue, svelte, solid, vanilla.
string
Initialize from an example project. Downloads and sets up a complete example.
string
default:"BintzGavin/helios/examples"
Example repository to download from. Format: user/repo or user/repo/path.

Interactive mode

When run without flags, helios init presents an interactive setup:
  1. Choose between scaffolding a new project or downloading an example
  2. Select your framework (React, Vue, Svelte, Solid, or Vanilla)
  3. Configure component and library directories

Examples

Create a new React project

Quick start with defaults

This creates a React project with default settings:
  • Framework: React
  • Components directory: src/components/helios
  • Lib directory: src/lib

Specify a framework

Initialize from an example

This downloads the basic-animation example from the default repository.

Use a custom example repository

Add Helios to an existing project

If a package.json exists, Helios will detect the framework and only create the configuration file.

Configuration file

The command creates helios.config.json:

Configuration options

string
Configuration schema version. Currently 1.0.0.
string
Project framework: react, vue, svelte, solid, or vanilla.
string
Path where Helios components will be installed.
string
Path to the lib/utils directory.
array
List of installed component names.
object
Component dependencies and their versions.
string
Custom component registry URL.

Project templates

Each framework template includes:
  • package.json with required dependencies
  • composition.html entry point
  • vite.config.js build configuration
  • index.html development server entry
  • Framework-specific component examples
  • TypeScript configuration

Template structure

Next steps

After initialization:
  1. Install dependencies:
  2. Start the development server:
  3. Or launch Studio:
  4. Add components: