Initialize repositories and packages for use with Ocuroot
init
command helps initialize repositories and packages for use with Ocuroot. It creates the necessary configuration files to work with the Ocuroot system.
init
command has two subcommands:
repo
: Initializes a git repository for use with Ocuroot by creating a repo.ocu.star
file at the root of the repository.package [path]
: Initializes a package at the specified path by creating a package.ocu.star
file with templated functions.repo.ocu.star
doesn’t exist when running init package
, it will be created automatically, so your project is ready to use right away!
repo.ocu.star
file at the root of your git repository. The repository ID is automatically derived from your git remote URL.
Example file content:
package.ocu.star
file at the specified path with templated functions for building, deploying, and destroying your package:
Example file content:
build
: Run the build function for a packagepackages
: List all packages in the current repository