Skip to content
Proyek

Tentang

Alat CLI modern untuk mengelola cluster Kubernetes OpenFrame dan alur kerja pengembangan. Menyediakan alternatif yang interaktif dan mudah digunakan untuk skrip shell, dengan pengelolaan siklus hidup cluster yang menyeluruh.

Sistem dan infrastruktur

Cara angka ini diukur

669 bintang12 Fork +1 dalam 24 jam

Yang dapat Anda lakukan

  • One command to stand up a platform. openframe bootstrap chains cluster creation and platform installation into a single staged flow — ideal for a first run.
  • Multiple cluster backends. The cluster command group manages lifecycle (create, delete, list, status, use, cleanup) across k3d (local, Docker-based), GKE, and EKS (cloud, via Terraform), behind one unified Provider interface.
  • ArgoCD-driven deployment. The app command group (install, upgrade, status, access, uninstall) installs ArgoCD and the app-of-apps onto an existing, reachable cluster, and manages the deployed platform's lifecycle.
  • Two upgrade modes. app upgrade either changes the deployed git ref (--ref) or force-syncs the current ref (--sync/default) — the two are mutually exclusive and never silently combined.

Pertumbuhan bintang terukur

dalam 24 jam
+1
dalam 7 hari
+2
dalam 15 hari
-4
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
OpenFrame

License

OpenFrame CLI

OpenFrame CLI (openframe) is the Go-based command-line tool that bootstraps and manages the full lifecycle of the OpenFrame platform by Flamingo. With a single binary, it provisions a Kubernetes cluster — locally via k3d, or in the cloud via GKE/EKS through Terraform — and deploys the OpenFrame platform onto it using ArgoCD's app-of-apps pattern.

OpenFrame itself is the unified, AI-driven platform that brings multiple MSP (Managed Service Provider) tools together behind a single interface, automating IT support operations across the stack. The platform's application code — the Helm charts, services, and app-of-apps manifests this CLI deploys — lives in the separate flamingo-stack/openframe-oss-tenant repository, which openframe-cli clones and installs onto the clusters it provisions.

This repository is a standalone, user-facing CLI binary distributed via GitHub Releases and go install, not a library consumed by other repositories. Per the organization's dependency graph it publishes a single Go module artifact, github.com/flamingo-stack/openframe-cli, with no recorded upstream dependencies or downstream consumers (coverage of that graph is partial, so this reflects what is currently indexed rather than a guarantee).

Features

  • One command to stand up a platform. openframe bootstrap chains cluster creation and platform installation into a single staged flow — ideal for a first run.
  • Multiple cluster backends. The cluster command group manages lifecycle (create, delete, list, status, use, cleanup) across k3d (local, Docker-based), GKE, and EKS (cloud, via Terraform), behind one unified Provider interface.
  • ArgoCD-driven deployment. The app command group (install, upgrade, status, access, uninstall) installs ArgoCD and the app-of-apps onto an existing, reachable cluster, and manages the deployed platform's lifecycle.
  • Two upgrade modes. app upgrade either changes the deployed git ref (--ref) or force-syncs the current ref (--sync/default) — the two are mutually exclusive and never silently combined.
  • Built-in prerequisite management. openframe prerequisites check|install verifies and installs the tools required for the chosen cluster --type (Docker, k3d, helm for local; terraform, AWS CLI for EKS; terraform, gcloud, gke-gcloud-auth-plugin for GKE).
  • Verified, pinned downloads. Binaries the CLI needs (k3d, helm, mkcert, terraform, infracost) are downloaded by the CLI itself, pinned to exact versions and checksum-verified — never an unverified curl | bash pattern.
  • Safe, signed self-update. openframe update [version]|check|rollback self-updates to a specific or latest release with cosign/Sigstore signature verification, or performs an offline rollback to the previous binary.
  • Interactive and scriptable. Most read commands support --output json|yaml for automation, and --non-interactive skips every prompt for CI pipelines; app status --interactive offers a k9s-style terminal UI over ArgoCD applications.
  • Windows support via WSL2. On Windows, the native binary transparently re-executes itself inside WSL2 before any cluster command runs, since the local cluster (Docker + k3d) and the Kubernetes client need to share a network namespace a native Windows process cannot reach reliably.
  • Exit-code fidelity. A failed external command's exit code is preserved end-to-end, making the CLI safe to drive from scripts and CI.

Architecture

The CLI is organized around three core abstractions — cluster (provisioning), app (platform deployment via ArgoCD), and prerequisites (tool verification/installation) — plus shared infrastructure for UI, command execution, verified downloads, and self-update.

graph TB
    subgraph CliLayer["CLI Layer (cmd/)"]
        Bootstrap[bootstrap]
        Cluster[cluster]
        App[app]
        Prereq[prerequisites]
        Update[update]
    end

    subgraph Domain["Domain Services (internal/)"]
        ClusterSvc["cluster.ClusterService"]
        ChartSvc["chart.services.ChartService"]
        AppStatus["app/status.Service"]
        PrereqFw["prerequisites.Runner"]
        SelfUpdate["selfupdate.Updater"]
    end

    subgraph Providers["Providers"]
        K3d["k3d provider"]
        EKS["EKS provider (terraform)"]
        GKE["GKE provider (terraform)"]
        ArgoCD["ArgoCD provider"]
        Helm["Helm provider"]
    end

    subgraph External["External Systems"]
        Docker[("Docker")]
        K8sAPI[("Kubernetes API")]
        CloudAPI[("GCP / AWS APIs")]
        GitHub[("GitHub Releases")]
    end

    Bootstrap --> ClusterSvc
    Bootstrap --> ChartSvc
    Cluster --> ClusterSvc
    App --> ChartSvc
    App --> AppStatus
    Prereq --> PrereqFw
    Update --> SelfUpdate

    ClusterSvc --> K3d
    ClusterSvc --> EKS
    ClusterSvc --> GKE
    ChartSvc --> ArgoCD
    ChartSvc --> Helm

    K3d --> Docker
    EKS --> CloudAPI
    GKE --> CloudAPI
    ArgoCD --> K8sAPI
    Helm --> K8sAPI
    SelfUpdate --> GitHub

Note: The application code OpenFrame deploys (services, Helm charts, app-of-apps manifests) lives in the separate flamingo-stack/openframe-oss-tenant repository. This CLI clones that repository's chart content at install/upgrade time rather than embedding it.

Per the organization's dependency graph, this repository has no recorded upstream dependencies and no recorded downstream consumers among internally-published artifacts — it is a standalone, user-facing CLI binary, not a library. Deeper architecture notes, including the full component-relationship and bootstrap-sequence diagrams, live in docs/reference/architecture/overview.md, docs/reference/architecture/ecosystem.md, and the raw .mmd sources under docs/diagrams/architecture/README.md.

Technology Stack

  • Go — the CLI's implementation language (see go.mod for the pinned toolchain version).
  • spf13/cobra — command routing and flag parsing across the entire cmd/ tree.
  • kubernetes/client-go — native Kubernetes API access (health checks, resource queries, context resolution).
  • pterm/pterm — terminal rendering: tables, spinners, boxes, themed status printers.
  • charmbracelet/huh and charmbracelet/bubbletea — interactive prompts/wizards and the app status --interactive TUI.
  • sigstore/sigstore-go — cosign keyless signature verification for self-update integrity.
  • golang.org/x/mod/semver — semantic version comparison driving update/downgrade decisions.
  • sigs.k8s.io/yaml — JSON/YAML round-tripping for machine-readable command output.
  • Terraform (shelled out, pinned/verified binary) — provisions GKE/EKS clusters.

At runtime the CLI also shells out to Docker, k3d, Helm, Terraform, gcloud, and the AWS CLI, all accessed through a CommandExecutor abstraction so they remain mockable in tests. Binaries for k3d, Helm, mkcert, Terraform, and infracost are downloaded by the CLI itself, pinned to exact versions and checksum-verified before use.

Hardware Requirements

Running a local cluster and the full OpenFrame platform is resource-intensive:

Tier RAM CPU Cores Disk
Minimum 24 GB 6 50 GB
Recommended 32 GB 12 100 GB

These sizing figures reflect running the full OpenFrame platform on a local k3d cluster — not the CLI binary itself, which is a small, lightweight process. They are enforced as advisory checks, not hard blocks: openframe app install warns and continues on a smaller-than-recommended cluster rather than refusing to run.

Quick Start

1. Download the Binary

Grab the release archive for your platform from GitHub Releases:

# macOS / Linux — replace the asset name for your OS/arch
curl -L -o openframe-cli.tar.gz \
  https://github.com/flamingo-stack/openframe-cli/releases/latest/download/openframe-cli_darwin_arm64.tar.gz
tar -xzf openframe-cli.tar.gz
sudo mv openframe /usr/local/bin/openframe

On Windows, download the AMD64 archive:

https://github.com/flamingo-stack/openframe-cli/releases/latest/download/openframe-cli_windows_amd64.zip

Unzip it and run the openframe.exe binary from a terminal — installation is otherwise the same as on other platforms. See the full list of release assets at the releases page. Windows cluster commands (k3d/Docker) automatically re-execute the CLI inside WSL2, auto-installing a verified Linux binary there the first time this happens — make sure WSL2 is available.

Alternatively, build from source if you have Go installed (see go.mod for the required toolchain version):

git clone https://github.com/flamingo-stack/openframe-cli.git
cd openframe-cli
make build
# binary is written to build/openframe-<os>-<arch>

2. Verify the Install

openframe --help

You should see the root command's usage, listing the command groups: bootstrap, cluster, app, prerequisites, and update.

3. Check Prerequisites

openframe prerequisites check

This verifies the tools needed for your target cluster type are present (Docker, k3d, and Helm for a local cluster). Missing tools can be installed automatically:

openframe prerequisites install

Binaries it downloads (k3d, Helm, mkcert, Terraform, infracost) are pinned to exact versions and checksum-verified before use.

4. Bootstrap OpenFrame

The fastest path to a running platform is the bootstrap command, which creates a local k3d cluster and installs ArgoCD + the app-of-apps in one staged flow:

openframe bootstrap

Pass a cluster name, or run non-interactively for CI/automation:

openframe bootstrap my-cluster
openframe bootstrap --non-interactive

This single command replaces what would otherwise be openframe cluster create followed by openframe app install. Once it finishes, check the platform's health and access details:

openframe app status
openframe app access

For the complete walkthrough, including expected output and next steps, see Quick Start and First Steps.

CLI Commands

openframe bootstrap                    # k3d cluster + platform install in one step
openframe cluster create|delete|list|status|use|cleanup
openframe app install|upgrade|status|access|uninstall
openframe prerequisites check|install
openframe update [version]|check|rollback

Most read commands support --output json|yaml for automation, and --non-interactive skips every prompt for CI pipelines.

Documentation

📚 See the Documentation for comprehensive guides, including:

Community

This project does not use GitHub Issues or GitHub Discussions for support or discussion. The community is managed on the OpenMSP Slack — join at openmsp.ai or via the Slack invite link.


Built with 💛 by the flamingo team

Jelajahi proyek terkait

Memuat…