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:
- Choose between scaffolding a new project or downloading an example
- Select your framework (React, Vue, Svelte, Solid, or Vanilla)
- Configure component and library directories
Examples
Create a new React project
Quick start with defaults
- Framework: React
- Components directory:
src/components/helios - Lib directory:
src/lib
Specify a framework
Initialize from an example
basic-animation example from the default repository.
Use a custom example repository
Add Helios to an existing project
package.json exists, Helios will detect the framework and only create the configuration file.
Configuration file
The command createshelios.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.jsonwith required dependenciescomposition.htmlentry pointvite.config.jsbuild configurationindex.htmldevelopment server entry- Framework-specific component examples
- TypeScript configuration
Template structure
Next steps
After initialization:-
Install dependencies:
-
Start the development server:
-
Or launch Studio:
-
Add components: