Français
alta package
Lints, then writes a deterministic archive; prints its sha256 and the tree digest (source.sha256).
Les descriptions et les sorties sont en anglais, comme la CLI.
Usage
text
alta package <dir> [--out <file.alta.tar>] [--public] [--json]Arguments
| Nom | Description | |
|---|---|---|
dir | requis | The folder to package. |
Options
| Nom | Type | Défaut | Description |
|---|---|---|---|
--out | string | Défaut: <dir>.alta.tar | Where to write the archive. |
--public | flag | The archive is for a public repository: refused unless the chart says "privacy": "shareable". | |
--json | flag | Print the result (alta.pack/1) as JSON. |
Codes de sortie
| Nom | Description |
|---|---|
0 | ok |
1 | problèmes trouvés |
2 | mauvais usage |
3 | pas dans cette version |
Exemples
Package a chart
Terminal
sh
alta package my-agentSortie
text
packaged 4 files into my-agent.alta.tar (6656 bytes)
archive sha256: 26afc25c319001ec0bcce3f52f27c89d7710acfeb6055e2f0217120e4f901b4b
tree digest (the source.sha256 of a chart): 5868a4d8874b1e4ac8b42810aac8e877074190f3efd288e96183e68a2263f322
source block (the commit and the address come from `alta publish`):
{
"git": "https://<your repository>",
"commit": "<full commit of the push>",
"sha256": "5868a4d8874b1e4ac8b42810aac8e877074190f3efd288e96183e68a2263f322"
}For a public repository (a shareable chart only)
Terminal
sh
alta package my-agent --publicSortie · exit 1
text
not packaged: this chart is personal (privacy: "personal"); set "privacy": "shareable" in chart.json to package it for a public repository — see https://docs.altasystem.ai/charts/guides/share