# Introduction

Enterprise-grade command-line interface for auto-deploying, managing, and maintaining StackAI's 50+ service platform on customer infrastructure.

## Overview

The StackAI CLI orchestrates a complete Docker deployment for enterprise AI infrastructure. Built for Fortune 500 customers requiring strict data sovereignty, it provides:

* Complete bootstrap from bare Ubuntu to production
* License-key encrypted secrets with AES-256-GCM encryption
* Self-service diagnostics with automated support bundle generation
* HIPAA, ISO 27001, SOC 2 Type II, and GDPR compliant

## System Requirements

| Component          | Minimum   | Recommended |
| ------------------ | --------- | ----------- |
| **Ubuntu**         | 24.04 LTS | 24.04 LTS   |
| **Docker**         | 24.0+     | 27.0+       |
| **Docker Compose** | 2.20+     | 2.29+       |
| **RAM**            | 32GB      | 64GB+       |
| **CPU**            | 8 cores   | 16+ cores   |
| **Storage**        | 500GB SSD | 1TB+ NVMe   |

## Required Credentials

Before starting, ensure you have:

* **StackAI License Key** (provided by your StackAI Account Manager)
* **Registry Credentials** (provided by your StackAI Account Manager)
* **Domain Name** (for production deployments with TLS certificates)

## Quick Start

{% stepper %}
{% step %}

#### Install the CLI

```bash
curl -sSf https://install.stack.ai | bash
```

The installer prompts for your license key and saves it to your shell config.
{% endstep %}

{% step %}

#### Initialize StackAI

```bash
stackai init
```

This bootstraps the entire deployment: validates prerequisites, collects configuration, encrypts secrets, and sets up Docker.
{% endstep %}

{% step %}

#### Deploy Services

```bash
stackai system pull
stackai deploy start
```

{% endstep %}

{% step %}

#### Verify Deployment

```bash
stackai deploy status
```

{% endstep %}
{% endstepper %}
