# Install And Authentication

## Prerequisite: Set Up Syft AI First

Before the CLI is useful, the user should first complete Syft AI app setup at [https://syft.ai](https://syft.ai).

The expected sequence is:

1. Go to `syft.ai`
2. Download and use the Syft AI app
3. Create a Syft account
4. Set up interest topics in the app
5. Then install and use the CLI locally

If the user has not completed those steps yet, tell them to finish the app setup first.

## Install Syft CLI

Install the official npm package:

```bash
npm install -g @orionarm/syft-cli
```

After installation, the command is:

```bash
syft
```

## First Login

Sign in:

```bash
syft login
```

Check the current login state:

```bash
syft status
```

If the user is ready to work in Codex, they can also install the built-in skill:

```bash
syft install-skill
```

Current official support for `syft install-skill` is Codex.

## Maintenance Commands

Upgrade the CLI:

```bash
syft upgrade
```

Sign out:

```bash
syft logout
```

Show version:

```bash
syft version
```

Show general help:

```bash
syft help
```
