English
alta package
Lints, then writes a deterministic archive; prints its sha256 and the tree digest (source.sha256).
Usage
text
alta package <dir> [--out <file.alta.tar>] [--public] [--json]Arguments
| Name | Description | |
|---|---|---|
dir | required | The folder to package. |
Options
| Name | Type | Default | Description |
|---|---|---|---|
--out | string | Default: <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. |
Exit codes
| Name | Description |
|---|---|
0 | ok |
1 | problems found |
2 | bad usage |
3 | not in this version |
Examples
Package a chart
Terminal
sh
alta package my-agentOutput
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 --publicOutput · 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.os.altasystem.ai/charts/guides/share