publish (coming soon)
🚧 Coming Soon: This command is currently unavailable. We're focusing on a small subset of functionalities for now.
Publish an action to the Starthub registry.
Usage​
starthub publish [--no-build]
Options​
--no-build- Skip the build step and only push/tag (assumes the image or WASM file already exists locally)
Description​
The publish command builds and publishes your action to the Starthub registry. The command reads the starthub.json manifest file in the current directory to determine the package type and publishing process.
Package Types​
Docker Package​
For Docker packages, the command will:
- Build the Docker image (unless
--no-buildis specified) - Tag the image for the Starthub registry (
registry.starthub.so/<name>:<version>) - Push the image to the registry
Requirements:
- A
Dockerfilemust exist in the current directory - Docker must be installed and running
Wasm Package​
For WebAssembly packages, the command will:
- Build the WASM module using
cargo build --release --target wasm32-wasi(unless--no-buildis specified) - Package the WASM file into a zip archive
- Prepare it for upload to the registry
Requirements:
- Rust and Cargo must be installed
- The project must be a valid Rust project targeting
wasm32-wasi
Composition Package​
Composition actions cannot be published directly using this command.
Examples​
Publish with build:
starthub publish
Publish without building (assumes image/WASM already exists):
starthub publish --no-build
Notes​
- The command must be run in a directory containing a
starthub.jsonfile - You must be authenticated using
starthub loginbefore publishing - The package name and version are read from the
starthub.jsonmanifest