aicli

Automate OpenShift Assisted Installer cluster and host workflows via CLI.

52|38|Updated Sep 11, 2020
One-click install
npx skills add https://github.com/karmab/aicli --skill aicli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aicli
Source: https://github.com/karmab/aicli/tree/main
Command: npx skills add https://github.com/karmab/aicli --skill aicli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

aicli eliminates the complexity of provisioning OpenShift clusters through the Assisted Installer API by providing a single, consistent CLI to create and control clusters, hosts, infraenvs, ISOs, and manifests.

Core Features & Use Cases

  • Cluster lifecycle management: create, start/stop, wait for install completion, export, and delete clusters.
  • Host and Day-2 operations: list hosts, wait for hosts to appear, update host settings (role/name/network/disk/labels), and launch day2 worker installs.
  • Discovery ISO and asset handling: fetch discovery ISOs and download/install artifacts like kubeconfig, install-config, ignition, and manifests for troubleshooting or automation.
  • Static/disconnected provisioning support: inject static networking data (nmstate), and handle disconnected installs by configuring registry/cert trust.

Quick Start

Run: aicli create cluster mycluster

Frequently Asked Questions about aicli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate OpenShift cluster deployment using the Assisted Installer API?

Automate OpenShift cluster deployment by using a CLI wrapper to create and manage clusters, infra environments, and hosts via the Assisted Installer API. Run deterministic API-driven operations for cluster state transitions from creation to install completion.

Can I inject static networking data during an OpenShift disconnected install?

Yes, you can inject static networking data during an OpenShift disconnected install. The CLI supports nmstate configuration for static networking and handles disconnected installs by configuring registry and certificate trust.

What do I need to connect to the Assisted Installer API for cluster provisioning?

To connect to the Assisted Installer API for cluster provisioning, you need an API target with authentication. This requires either a SaaS offline token or an on-prem URL to authorize deterministic API-driven operations.

How do I perform day-2 worker scaling operations on an OpenShift cluster?

Perform day-2 worker scaling by listing hosts, waiting for hosts to appear, and updating host settings like role, name, network, disk, and labels. The CLI then launches day-2 worker installs to scale the cluster.

How can I retrieve a discovery ISO and installation artifacts for OpenShift troubleshooting?

Retrieve a discovery ISO and download installation artifacts like kubeconfig, install-config, ignition, and manifests by using the CLI's asset handling features. These artifacts are fetched for troubleshooting or automation purposes.

What is the best way to manage OpenShift cluster lifecycles without manual API calls?

Manage OpenShift cluster lifecycles without manual API calls by using a single CLI to create, start, stop, wait for install completion, export, and delete clusters. This provides consistent command-driven control over all state transitions.