Skip to content

Find and install a chart ​

You add a charts repository to your machine, find a chart in it, download it with its digest checked, and read what installing it would do. Nothing is installed until you run the install again with --yes.

Before you begin 5 minutes

  • The alta command: install the CLI.
  • The address of a charts repository's index.json. Here: https://charts.example.org/index.json, an example repository with three charts.
  • For the last step, a machine running Alta OS (its server answers alta install).
  1. Add the repository

    First save the repository's public key: its maintainers publish it next to the index (here https://charts.example.org/repo-key.pub) or on the repository's page. Keep it as community.pub in the folder you run the commands from.

    alta repo add gives the repository a name on this machine and remembers its address and its key. It downloads nothing.

    Terminal
    sh
    alta repo add community https://charts.example.org/index.json --key community.pub
    Output
    text
    added community (https://charts.example.org/index.json); nothing was downloaded
    next: alta repo update community
  2. Fetch its index

    alta repo update downloads the index and the signature the repository serves next to it, and checks the signature with the key you gave. This and alta pull are the only two commands that use the network.

    Terminal
    sh
    alta repo update community
    Output
    text
    community: 3 charts (signature verified with the key of community)

    A bad signature, a signature made with another key, or none at all: the index is refused and the one fetched before is kept.

  3. Pull the chart

    alta pull downloads the chart's archive, checks its sha256 and the digest of its files against the index, runs the same checks as alta lint, and keeps the folder for alta install. If any check fails, nothing is kept.

    Terminal
    sh
    alta pull sky-notes
    Output
    text
    pulled sky-notes 0.1.0 from community into ~/.local/share/alta/charts/community/sky-notes
      archive sha256 and tree digest match the index; alta lint passes
    next: alta install sky-notes (through the machine's server, with your yes)

    A version whose review is not finished cannot be pulled. Pulling tea-timer from the same repository prints:

    Output
    text
    tea-timer 0.1.0 is not installable: its review is not finished: nothing is installable while a review is pending
  4. Read the plan, then install

    alta install asks your machine's server for the plan: the values, the sign-ins, each change with how it is undone, and the proofs. Without --yes it changes nothing.

    Terminal
    sh
    alta install sky-notes
    Output
    text
    sky-notes 0.1.0 (agent) on http://127.0.0.1:8790: installable
    needs:
      Sky notes will think with your Claude subscription · change
    risk:
      Risk: medium. Read why below before you agree.
      - It installs programs on your machine.
      - It needs you to sign in (Claude).
      - An agent may reach the network where it chooses (message).
      - It talks to online services while it runs (Claude).
    network:
      Needs online services to work.
      - Claude: It thinks with your Claude subscription: what you ask goes to Claude. A paid account is needed. What leaves your machine: what you ask.
    sign-ins:
      need-claude          signin.cli
    parts:
      agent                agent.create {"agent":"helper","chart":"sky-notes"}   undo: agent.archive
    proofs:
      agent helper
    repairs (none allowed until you say so):
      need-claude-again    signin.again       (always asked)
    
    Nothing changed. Run it again with --yes to install: each part runs as planned above, nothing else.

    When the plan is what you expect, run it again with --yes. In the game, the same plan is a quest: its first step says what the chart needs online, and you agree to it.

What you did ​

  • Added a repository, and fetched its index once.
  • Found a chart offline, by words and by what it needs online.
  • Downloaded exactly the files that were reviewed, checked on your machine.

What's next

Alta OS is open source (MIT).