Aller au contenu
En Markdown

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 ​

NomDescription
dirrequisThe folder to package.

Options ​

NomTypeDéfautDescription
--outstringDéfaut: <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.

Codes de sortie ​

NomDescription
0ok
1problèmes trouvés
2mauvais usage
3pas dans cette version

Exemples ​

Package a chart

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

Voir aussi ​

Le standard, le SDK et la CLI sont sous Apache-2.0 ; Alta System OS et Alta World sous FSL-1.1-ALv2.