init command creates a new Helios project or adds Helios configuration to an existing project.
Usage
Arguments
Target directory for the project. If omitted, uses the current directory.
Options
Skip prompts and use defaults (React framework). Useful for automated workflows.
Specify framework without prompts. Valid values:
react, vue, svelte, solid, vanilla.Initialize from an example project. Downloads and sets up a complete example.
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
Configuration schema version. Currently
1.0.0.Project framework:
react, vue, svelte, solid, or vanilla.Path where Helios components will be installed.
Path to the lib/utils directory.
List of installed component names.
Component dependencies and their versions.
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: