a4-cli-0.1.0 is not a library.
a4-cli
Command-line tool for building, deploying, and managing Arete stream stacks.
Installation
From Source
Quick Start
# Initialize project (auto-discovers AST files)
# Authenticate
# Deploy
That's it! Your stack is deployed and you'll see the WebSocket URL.
Command Overview
| Command | Description |
|---|---|
a4 init |
Initialize project |
a4 up [stack] |
Deploy (push + build + deploy) |
a4 status |
Show project overview |
a4 stack list |
List all stacks |
a4 stack show <name> |
Show stack details |
a4 stack rollback <name> |
Rollback to previous version |
Daily Workflow
# Make changes to your stack, rebuild
# Deploy
# Check status
Stack Commands
a4 stack list
List all stacks with deployment status:
STACK STATUS VERSION URL
settlement-game active v3 wss://settlement-game.stack.arete.run
token-tracker active v1 wss://token-tracker.stack.arete.run
a4 stack show <name>
Show detailed information:
Shows: entity info, deployment status, version history, recent builds.
a4 stack push [name]
Push local stacks to remote without deploying:
a4 stack versions <name>
Show version history:
a4 stack rollback <name>
Rollback to a previous version:
a4 stack delete <name>
Delete a stack:
Deployment
a4 up [stack-name]
The happy path - push, build, and deploy in one command:
Authentication
Credentials: ~/.arete/credentials.toml
SDK Generation
Configuration
File: arete.toml
[]
= "my-project"
[]
= "./generated"
# Stacks - auto-discovered from .arete/*.stack.json
# `stack` may be a local AST name/path or a hosted stack identifier.
[[]]
= "my-game"
= "SettlementGame"
For most projects, you only need:
[]
= "my-project"
The CLI auto-discovers stacks from .arete/*.stack.json files.
WebSocket URLs
| Type | Pattern |
|---|---|
| Production | wss://{stack-name}.stack.arete.run |
| Branch | wss://{stack-name}-{branch}.stack.arete.run |
Environment Variables
| Variable | Description |
|---|---|
ARETE_API_URL |
Override API endpoint |
Troubleshooting
| Error | Solution |
|---|---|
Not authenticated |
Run a4 auth login |
Stack not found |
Check a4 stack list |
AST file not found |
Run cargo build to generate AST |
Build failed |
Check a4 status for build details |
License
Apache-2.0