init (coming soon)
🚧 Coming Soon: This command is currently unavailable. We're focusing on a small subset of functionalities for now.
Initialize a new Starthub project.
Usage​
starthub init [--path <directory>]
Options​
--path <directory>- Directory path where to initialize the project (default: current directory)
Description​
The init command creates a new Starthub project by generating a starthub.json manifest file and setting up the necessary project structure based on the selected package type.
Interactive Setup​
When you run init, you'll be prompted to provide:
-
Package name - The name of your package (default:
http-get-wasm) -
Version - The version of your package (default:
0.1.0) -
Package type - Choose from:
Wasm- WebAssembly moduleDocker- Docker containerComposition- Composite action
-
Repository - The repository URL (defaults vary by package type)
Generated Files​
Based on the selected package type, init will create:
Wasm Package​
starthub.json- Project manifestCargo.toml- Rust project configurationsrc/main.rs- Rust source file template
Docker Package​
starthub.json- Project manifestDockerfile- Docker configuration template
Composition Package​
starthub.json- Project manifestcomposition.json- Composition configuration template
Example​
starthub init --path ./my-action
This will create a new Starthub project in the ./my-action directory with all necessary files.