akua pkg
akua pkg add
Add a dependency to akua.toml and lock it
akua pkg add [flags] <name>| Argument | Required | Description |
|---|---|---|
<name> | yes | Local alias: the key in [dependencies] |
| Flag | Type | Description |
|---|---|---|
--oci | string | OCI reference (oci://registry/repo) |
--git | string | Git repository URL |
--path | string | Local path, relative to the workspace |
--repo | string | HTTPS Helm repository URL (with --chart) |
--chart | string | Chart name within the Helm repo (required with --repo) |
--url | string | HTTPS URL of one CustomResourceDefinition manifest file; sets crds = true |
--k8s | string | Kubernetes version of the typed core schemas (oci://ghcr.io/kcl-lang/k8s at that tag), e.g. 1.35 |
--crds | string | Generate typed schemas from the CustomResourceDefinitions in the source: a file or directory in it, . for all |
--version | string | Version (OCI) or semver requirement (Helm) |
--tag | string | Git tag |
--rev | string | Git commit (full SHA) |
--force | boolean | Replace an existing entry under name |
--workspace | string | Workspace root containing akua.toml |
Every command also accepts the universal flags.