Initialize repositories and packages for use with Ocuroot
The init
command helps initialize repositories and packages for use with Ocuroot. It creates the necessary configuration files to work with the Ocuroot system.
The 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.Both commands require you to be inside a git repository.
If repo.ocu.star
doesn’t exist when running init package
, it will be created automatically, so your project is ready to use right away!
The command creates a 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:
The command creates a package.ocu.star
file at the specified path with templated functions for building, deploying, and destroying your package:
Example file content:
The package name is automatically set to the directory name where the package is being initialized.
build
: Run the build function for a packagepackages
: List all packages in the current repositoryInitialize repositories and packages for use with Ocuroot
The init
command helps initialize repositories and packages for use with Ocuroot. It creates the necessary configuration files to work with the Ocuroot system.
The 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.Both commands require you to be inside a git repository.
If repo.ocu.star
doesn’t exist when running init package
, it will be created automatically, so your project is ready to use right away!
The command creates a 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:
The command creates a package.ocu.star
file at the specified path with templated functions for building, deploying, and destroying your package:
Example file content:
The package name is automatically set to the directory name where the package is being initialized.
build
: Run the build function for a packagepackages
: List all packages in the current repository