CLI Reference
The aio command-line interface for managing all AionixOne services.
Quick Start
# Deploy a function
aio fn deploy my-func --code ./src
# Invoke a function
aio fn invoke my-func --data '{"name": "World"}'
# Create and run a workflow
aio wf create order-flow --dsl workflow.yaml
aio wf run order-flow --input '{"orderId": "123"}'
# Create a cron trigger
aio tr create daily-report -t cron \
--config '{"schedule": "0 0 9 * * *"}' \
--action '{"target": "trn:stepflow:default:template/report"}'Global Options
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--output | -o | string | table | Output format: table, json, yaml, wide |
--quiet | -q | bool | false | Quiet mode (names/IDs only) |
--verbose | -v | bool | false | Verbose output |
--context | string | Override current context | ||
--tenant | string | default | Override tenant ID | |
--no-color | bool | false | Disable colored output | |
--raw | bool | false | Output raw API response | |
--api-base | string | Override API URL | ||
--profile | string | Use specific config profile | ||
--http-timeout | string | 30s | HTTP client timeout |
Reserved Short Options
These short options are reserved globally and cannot be used by subcommands:
-o → --output (global output format)
-q → --quiet (global quiet mode)
-v → --verbose (global verbose output)Command Groups
| Command | Service | Description |
|---|---|---|
aio fn | AionixFn | Serverless function management |
aio wf | StepFlow | Workflow orchestration |
aio tr | Igniter | Event triggers |
aio act | OpenAct | Connectors and actions |
aio sec | CredVault | Secret management |
aio param | ParamStore | Parameter management |
TRN Resolution
Commands accept both full TRN and short names:
# Full TRN
aio wf run trn:stepflow:prod:template/order-flow
# Short name (uses current tenant)
aio wf run order-flow
# With explicit tenant
aio wf run order-flow --tenant prodOutput Formats
Table (default)
NAME VERSION STATUS RUNTIME UPDATED
────────────────────────────────────────────────────────────────
my-function v3 active python 2 hours ago
hello-world v1 active nodejs 5 days ago
Showing 2 of 2 functionsJSON (-o json)
{
"success": true,
"data": { ... },
"metadata": { "requestId": "...", "timestamp": "..." }
}Quiet (-q)
my-function
hello-worldInput Methods
Inline JSON
aio fn invoke my-func --data '{"key": "value"}'From File (@ prefix)
aio fn invoke my-func --data @input.json
aio wf run my-workflow --input @workflow-input.yamlShell Completion
# Bash
aio completion bash > /etc/bash_completion.d/aio
# Zsh
aio completion zsh > ~/.zsh/completions/_aio
# Fish
aio completion fish > ~/.config/fish/completions/aio.fishConfiguration
The CLI uses a configuration file at ~/.aio/config.yaml:
current-context: default
contexts:
default:
api-base: http://localhost:53000
tenant: default
production:
api-base: https://api.aionixone.com
tenant: prod
profiles:
default:
output: table
no-color: falseSwitch contexts:
aio context use production
aio context currentEnvironment Variables
| Variable | Description |
|---|---|
AIONIX_API_BASE | Override API base URL |
AIONIX_TENANT | Override tenant ID |
AIONIX_API_KEY | API key for authentication |
AIONIX_CONFIG | Path to config file |
NO_COLOR | Disable colored output |