Skip to content

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 ​

NameDescription
dirrequiredThe folder to package.

Options ​

NameTypeDefaultDescription
--outstringDefault: <dir>.alta.tarWhere to write the archive.
--publicflagThe archive is for a public repository: refused unless the chart says "privacy": "shareable".
--jsonflagPrint the result (alta.pack/1) as JSON.

Exit codes ​

NameDescription
0ok
1problems found
2bad usage
3not in this version

Examples ​

Package a chart

Terminal
sh
alta package my-agent
Output
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 --public
Output · 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

See also ​

Alta OS is open source (MIT).