# Install the CLI

> Install the alta command from the repository, in one minute.

`alta` creates, checks and previews your packs. It is not on npm yet: you install it from the Alta System OS repository, which also holds the game that `alta dev` serves.

**Before you begin (1 minute)**

- Node 20 or later (`node --version`).
- git.

## Install

```sh [Terminal]
git clone https://github.com/altasystem-ai/alta.git
cd alta-os
npm install
npm install --global ./tools/cli
```

The last line puts an `alta` command on your path. It points at this folder: keep the folder, and `git pull` in it to update `alta`.

## Check it works

```sh [Terminal]
alta help
```

You should see the list of commands: `new`, `check`, `pack`, `dev`, `publish`, `schemas`. Then go to the [Quickstart](https://docs.altasystem.ai/quickstart).

## Without a global install

If you cannot install globally (no rights on the npm folder, a shared machine), run `alta` from the repository folder through npm. Every command of these docs works the same way, with `npm run alta --` in front:

```sh [Terminal]
npm run alta -- new quest-pack my-first-pack
npm run alta -- check my-first-pack
```

## From npm

> **Soon:**

`npm install --global @altasystem/cli` will work once the package is published. Until then, use the repository.

## Uninstall

```sh [Terminal]
npm uninstall --global @altasystem/cli
```

**Next:**

- [Quickstart](https://docs.altasystem.ai/quickstart)
- [Your first chart in 5 minutes](https://docs.altasystem.ai/charts/quickstart)
- [The alta command](https://docs.altasystem.ai/reference/cli/)
