> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skrmir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployment Lifecycle

> AiOS deployment lifecycle from submission to approval, execution, verification, rollback, and audit closure.

# Deployment Lifecycle

## Audience

This page is for developers, operators, approvers, and platform maintainers who need to understand the main application deployment path in AiOS.

## Goal and Scope

This page explains the end-to-end application deployment path in AiOS.

## Core Concepts

* all inputs normalize into `AppSpec`
* production mutations default to `AuthN -> AuthZ -> Approval -> Execute -> Audit`
* rollback and deployment share the same task chain

## Standard Workflow

### Dev / Test / Preview

1. submit deployment request
2. parse source and generate AppSpec
3. execute Render / Apply / HealthCheck
4. persist task and audit state

### Prod

1. submit production deployment request
2. AuthZ returns `require_approval`
3. create an approval ticket
4. execute only after binding validation succeeds
5. persist task, audit, and deployment history

## Planned CLI Examples (Not Yet Implemented)

The repository does not currently ship these deploy/rollback CLI subcommands. They remain illustrative of how a future entrypoint must obey the same deployment and approval chain.

```bash theme={null}
aios app up --from-git https://example.com/org/app.git --env dev
aios app rollback my-api --env prod
```

## Related Pages

* [Deploy Your First App](/en/getting-started/deploy-first-app)
* [Backup Model](/en/platform/backup-model)
* [Application Delivery Overview](/en/platform/application-delivery)
