AI Execution Layer CLI
Project description
aiel — AI Execution Layer CLI
aiel is the reference CLI for the AI Execution Layer: a workspace-centric automation platform that keeps AI workflows versioned, reviewable, and operator friendly. The CLI mirrors the day-to-day lifecycle for teams shipping AI automations—from authenticating against the platform, to selecting the right workspace/project, synchronizing code, and inspecting remote manifests.
Every command is transparent about its roadmap sprint, so teams can adopt the CLI confidently while newer subcommands are still rolling out.
Features
- Roadmap-aware UX: discover commands and their target sprint directly from the CLI (
aiel roadmapandaiel commands). - Profile-safe authentication:
aiel auth ...manages multiple environments, keyring-backed tokens (with file fallback), and human-friendly panels. - Workspace configuration:
aiel config ...drives interactive workspace/project selection powered by/v1/auth/me. - Git-inspired sync:
aiel repo ...offers familiarinit,status,add,commit,pull, andpushflows backed by the data plane. - Insightful observability:
aiel info ...andaiel files ...surface active context, manifests, and repo metadata for debugging. - Full test coverage: the test suite exercises every route with fixtures and mocks, ensuring confidence in day-to-day automation.
Installation
pip install aiel-cli
The CLI exposes the aiel entrypoint via Typer. Python 3.10+ is required.
Quick Start
# 1. Discover the active roadmap
aiel roadmap
# 2. Authenticate (token prompt is hidden)
aiel auth login
# 3. Initialize repo metadata
aiel repo init
# 4. Select a workspace and project
aiel config set workspace onboarding_team2
aiel config set project linkedin_onboarding
# 5. Inspect context and manifests
aiel info workspace
aiel files ls
# 6. Sync a repo
aiel repo pull
aiel repo status
Command Guide
| Group | Highlights |
|---|---|
aiel roadmap / aiel commands |
Render sprint tables and hints for every command (including placeholders such as aiel logs and aiel doctor). |
aiel auth |
login, status, list, logout, and revoke (roadmap) with Rich panels to document base URLs, scopes, and storage locations. |
aiel config |
list, set workspace, set project, set show provide a safe workflow for selecting workspace/project context per profile. |
aiel repo |
Implements a Git-inspired flow (status, init, add, commit, pull, push) over .aiel/ metadata and the data plane. |
aiel info |
Read-only introspection commands for workspace/projects. |
aiel files |
Read-only manifest view + repo metadata for the most recent pull. |
Each command prints detailed help (--help) and panels summarizing the action taken so operators have immediate context.
Authentication & Configuration
-
aiel auth login- Validates tokens via
/v1/auth/meand stores them using keyring when available (file fallback otherwise). - Panels indicate where the token was stored and which user/tenant is active.
- Validates tokens via
-
aiel auth status / list / logout- Status exits non-zero when the token is missing or invalid—ideal for CI smoke tests.
listenumerates profiles, marking the active one and where the token is stored.logoutremoves local credentials per profile.
-
aiel config set workspace- Fetches workspaces/projects via
_get_meand guides the operator through selecting defaults. - Auto-selects projects when only one is available; otherwise displays an interactive prompt (Questionary).
- Fetches workspaces/projects via
-
aiel config set project- Ensures a workspace is selected, then prompts or validates the project slug.
aiel config listreflects the active profile + workspace and project slug/name.
Credentials & Local State
- Auth profiles live in
~/.config/aiel/credentials.jsonwith restrictive file permissions on Unix. - Tokens can also be injected via
AIEL_TOKENfor CI or non-interactive usage. - Repo state lives under
.aiel/in the working directory (state.json,index.json,commits/).
Repo Workflow
All state lives under .aiel/ (state.json, index.json, commits/). The flow mirrors Git:
-
aiel repo init- Creates
.aiel/state.jsonand.aiel/index.jsonwith normalized metadata from the active profile.
- Creates
-
aiel repo status- Compares working tree hashes vs the last manifest and prints staged vs unstaged sections.
-
aiel repo add <path|.>- Computes sha256, content-types, and stages upserts or deletes into
index.json.
- Computes sha256, content-types, and stages upserts or deletes into
-
aiel repo commit -m "message"- Writes a local commit document under
.aiel/commits/and marks it as pending.
- Writes a local commit document under
-
aiel repo pull- Uses signed download URLs from the data plane to refresh the working tree and update manifest metadata.
-
aiel repo push- Signs uploads, streams bytes to the storage layer, commits uploads, deletes when needed, refreshes manifest metadata, and clears the index.
All network interactions are stubbed in the test suite, ensuring deterministic coverage without real API calls.
Workspace Introspection
aiel info workspaceprints the resolved user, tenant, workspace, and project so there’s no ambiguity about the current context.aiel info workspaces/projectswalks the payload returned by_get_meand prints structured tables for visibility.aiel files lsrenders the last manifest as a tree and summarizes repo metadata (last pull, pending commit, version).
These commands are intentionally read-only and safe to run in CI/CD or during incident response.
Testing
The repository ships with an end-to-end test suite covering every CLI route (unit + integration). Tests rely on a dedicated fixture configuration at tests/data/test_profile.json, which includes:
X-API-Token:<X-API-Token>- Workspace slug:
onboarding_team2 - Project slug:
linkedin_onboarding
Run the suite with coverage enforcement:
pip install -e .[dev]
pytest --cov=aiel --cov-report=term-missing --cov-fail-under=100
The tests patch network calls, use Typer’s CliRunner, and stage temporary .aiel/ directories to exercise the entire workflow without hitting real services.
Contributing
- Fork and clone the repository.
- Create a fresh virtual environment with Python 3.10+.
- Install dependencies (
pip install -e .[dev]). - Run
pytest --cov=aiel --cov-report=term-missing --cov-fail-under=100before opening a PR. - Update the roadmap comments or README whenever you expose a new command.
Open issues or discussions if you need new command groups, additional transports, or would like to upstream scripts into tools/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiel_cli-1.0.2.tar.gz.
File metadata
- Download URL: aiel_cli-1.0.2.tar.gz
- Upload date:
- Size: 41.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b97ab5027a2990de7f16666e683a36280940d8ed942ebd5925f302c0179e8681
|
|
| MD5 |
04519a0cf4fb4ca1be201210225c7e31
|
|
| BLAKE2b-256 |
d892179eb3ce02dc993f989dc8604b44364339cf8cb79d988c7a1d3dee1207dd
|
Provenance
The following attestation bundles were made for aiel_cli-1.0.2.tar.gz:
Publisher:
publish.yml on aldenirsrv/AI_EXECUTION_LAYER_CLI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiel_cli-1.0.2.tar.gz -
Subject digest:
b97ab5027a2990de7f16666e683a36280940d8ed942ebd5925f302c0179e8681 - Sigstore transparency entry: 797432361
- Sigstore integration time:
-
Permalink:
aldenirsrv/AI_EXECUTION_LAYER_CLI@70268a054db66fcee0dd6cd002cb53a435a37c6c -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/aldenirsrv
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@70268a054db66fcee0dd6cd002cb53a435a37c6c -
Trigger Event:
push
-
Statement type:
File details
Details for the file aiel_cli-1.0.2-py3-none-any.whl.
File metadata
- Download URL: aiel_cli-1.0.2-py3-none-any.whl
- Upload date:
- Size: 43.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da6ee909f8fffd96751a84b6988ae3a038ab1f3939be2ec7564d7c140a40c6b6
|
|
| MD5 |
1d852213c196c73fd4728edddeef1f1b
|
|
| BLAKE2b-256 |
0001bc32433680a41a5e5d714ec1975712cfd6d8ab55d74259e031abd6551057
|
Provenance
The following attestation bundles were made for aiel_cli-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on aldenirsrv/AI_EXECUTION_LAYER_CLI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiel_cli-1.0.2-py3-none-any.whl -
Subject digest:
da6ee909f8fffd96751a84b6988ae3a038ab1f3939be2ec7564d7c140a40c6b6 - Sigstore transparency entry: 797432364
- Sigstore integration time:
-
Permalink:
aldenirsrv/AI_EXECUTION_LAYER_CLI@70268a054db66fcee0dd6cd002cb53a435a37c6c -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/aldenirsrv
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@70268a054db66fcee0dd6cd002cb53a435a37c6c -
Trigger Event:
push
-
Statement type: