Releases
A release is an immutable snapshot of your built app — compiled code, packaged images, and stack metadata. When you create a release, every active deployment picks it up and updates automatically.
Releasing requires a running manager — that's where releases are stored and where deployments pull updates from.
Build
alien build --platform awsThis compiles your stack for the specified platform. Alien reads alien.ts, runs the appropriate toolchains (TypeScript, Rust, etc.), and produces build artifacts.
You can build for multiple platforms at once:
alien build --platforms aws,gcpBuild steps
- Read the stack — Alien loads
alien.tsand resolves all resources and their connections. - Run toolchains — each function's code is compiled using the configured toolchain (TypeScript, Rust, etc.).
- Package artifacts — build outputs are packaged into OCI container images, Lambda zips, or platform-specific formats.
- Write metadata — the stack definition, resource graph, and image references are recorded.
Content-hash dedup
Every build produces a content hash of the output artifacts. If your code hasn't changed, the build reuses existing artifacts instantly — no recompilation needed. This makes repeated builds and releases fast.
Supported platforms
| Platform | What it targets |
|---|---|
aws | Lambda, S3, DynamoDB, IAM |
gcp | Cloud Run, Cloud Storage, Firestore |
azure | Container Apps, Blob Storage, Table Storage |
Release
alien releaseThis builds your code, pushes artifacts to the registry, and creates a release on the manager. Alien auto-discovers which platforms to release from your manager's artifact registry configuration.
Use --platforms to override auto-discovery:
alien release --platforms aws
alien release --platforms aws,gcpWhat happens during release
- Discover platforms — Alien queries the manager for configured platforms (or uses
--platformsif specified). - Build — Alien rebuilds for every platform to ensure artifacts reflect your latest code. Content-hash dedup makes this instant when nothing changed.
- Push — Images are pushed to the configured registry (embedded or external). If the same artifacts were already pushed in a prior release, the push is skipped automatically.
- Record — Alien records the release metadata (stack definition, image references, platform) on the manager.
- Update — Active deployments detect the new release and update automatically.
Using --prebuilt
For CI/CD pipelines where build and push happen in separate steps, use --prebuilt to skip both:
# In your CI build step:
alien build --platforms aws,gcp
# Push images to your registry externally...
# In your CI release step:
alien release --prebuiltThis requires that stack.json already contains remote image URIs (not local paths).
Multi-Platform Releases
Each platform gets its own build — a Lambda zip for AWS, a Cloud Run container for GCP — but the alien.ts manifest is the same. Write once, deploy everywhere.
Build and release multiple platforms in one command:
alien build --platforms aws,gcp,azure
alien release --platforms aws,gcp,azureConfigure multiple artifact registries in your alien-manager.toml and alien release handles them all in a single command.
How Updates Propagate
Once a release is pushed, Alien's deployment loop handles the rest:
- Push model: the manager calls cloud APIs to update functions and services directly. Updates are immediate.
- Pull model: agents poll for new releases (~30 seconds) and apply updates locally.
No manual intervention per customer. No version drift. Every deployment converges to the latest release.