# StackAI Auto CLI

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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stackai.com/stackai-auto-cli/docs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
