openframe-cli README

项目的 README,来自 github.com/flamingo-stack/openframe-cli。合并为一个 markdown 文件:README.md。

OpenFrame

License

OpenFrame CLI

OpenFrame CLI (openframe) is the Go-based command-line tool that bootstraps and manages the lifecycle of the OpenFrame platform by Flamingo. It provisions Kubernetes clusters — locally via k3d, or in the cloud via GKE/EKS through Terraform — and deploys the OpenFrame platform onto them using ArgoCD's app-of-apps pattern. It also handles prerequisites, status monitoring, upgrades, teardown, and its own self-update, with both interactive wizards and non-interactive flags for CI/automation.

The platform's application code itself lives in a separate repository, flamingo-stack/openframe-oss-tenant, which this CLI clones and deploys onto the clusters it provisions.

Per the organization's dependency graph, this repository publishes a single Go module artifact — github.com/flamingo-stack/openframe-cli — with no recorded upstream dependencies and no downstream consumers among internally-published artifacts. It is a standalone, user-facing CLI binary distributed via GitHub Releases and go install, not a library consumed by other repositories.

Features

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"]
        Bootstrap[bootstrap]
        Cluster[cluster]
        App[app]
        Prereq[prerequisites]
        Update[update]
    end

    subgraph Domain["Domain Services"]
        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

The platform this CLI deploys — the app-of-apps chart and its underlying services — lives in the separate flamingo-stack/openframe-oss-tenant repository, cloned at install/upgrade time.

Technology stack

At runtime the CLI also shells out to Docker, k3d, Helm, Terraform, gcloud, and the AWS CLI. 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

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

Quick Start

1. Install the CLI

macOS/Linux — download the appropriate binary from the Releases page, or build from source with Go:

go install github.com/flamingo-stack/openframe-cli@latest

Windows — download the AMD64 build directly:

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

Run the installer the same way you would on other operating systems. On Windows, the native build re-executes itself inside WSL2 before any cluster command runs.

Confirm the binary is on your $PATH and runs:

openframe --help

2. Check prerequisites

openframe prerequisites check
openframe prerequisites install

3. Bootstrap the platform

openframe bootstrap

Running it with no arguments starts an interactive flow that creates a local k3d cluster and installs the full platform (ArgoCD plus the app-of-apps). You can also name the cluster explicitly:

openframe bootstrap my-cluster

For CI/automation:

openframe bootstrap --non-interactive

4. Check status and access the platform

openframe app status
openframe app access

openframe app status reports cluster reachability plus each ArgoCD application's sync/health state. openframe app access prints the ArgoCD admin credentials (read live from your cluster) and the port-forward command needed to reach the UI.

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

Documentation

📚 See the Documentation for comprehensive guides, including:

This project does not use GitHub Issues or GitHub Discussions. Community support happens on the OpenMSP Slack community.


Built with 💛 by the Flamingo team

openframe-cli (flamingo-stack/openframe-cli)

正在搜索数据库…

这是什么东西?一个交互式命令行工具,用来管理 OpenFrame Kubernetes 集群和开发流程,涵盖集群的生命周期、通过 ArgoCD 安装图表、服务拦截以及项目脚手架搭建。
它是一个完整的平台,还是只是包着现有工具的一层命令行外壳?它是 OpenFrame 生态的入口,OpenFrame 是一个基于开源替代方案构建的 AI 驱动 MSP 平台。这个命令行工具本身负责编排的是标准工具:K3D、ArgoCD、Helm、Telepresence。
我怎么把它跑起来?下载适合你平台的二进制文件(Linux AMD64、macOS Apple Silicon 或通过 WSL2 的 Windows),把它加到 PATH 里,然后运行 'openframe bootstrap',一条命令就能搭起整套环境。
我需要事先装好 Docker 和 kubectl 吗?需要:Docker 20.10+、kubectl 1.25+、Helm 3.10+ 和 K3D 5.0+。通过 'openframe prerequisites install',这个命令行工具可以帮你检查并自动安装缺的部分。
这东西对机器配置有什么要求?要求挺高:最低 24GB 内存、6 核 CPU 和 50GB 可用磁盘(推荐 32GB、12 核和 100GB)。macOS 版只支持 Apple Silicon,Windows 则要通过 WSL2 来运行。
openframe bootstrap 到底会部署些什么?一个 K3D Kubernetes 集群,通过 ArgoCD 部署公开的 openframe-oss-tenant 图表,外加 Traefik 入口控制器以及核心的监控和日志组件,不需要任何凭证。
它真的是开源的吗?严格来说不是:它采用的是自定义的 Flamingo AI Unified License v1.0,而不是标准的开源许可证,具体允许哪些用途请阅读 LICENSE.md。
对于跑在集群里的服务,它能帮我开发吗?可以。它集成了 Telepresence 来做服务拦截,让跑在 Kubernetes 里的服务可以在你本机上调试,还支持热重载,改完代码马上就能测试。
它能管理真实的云上集群,而不只是本地的 K3D 集群吗?可以。'openframe cluster create' 既支持本地 K3D 集群,也支持 EKS 或 GKE 上的云集群,'cluster list/status' 可以查看它们的状态,还能用 -o json 输出 JSON 格式。
长时间运行的命令执行时界面是什么样的?在交互式终端里,它会显示一个分阶段的清单并标注每阶段的耗时,等待期间还有原地刷新的仪表盘展示各应用的健康状况,长时间的安装完成时还会弹出桌面通知。
在 GitHub Actions 流水线里它表现好吗?很好:bootstrap 的各阶段会折叠成日志组,失败会变成任务注释,还会在 Step Summary 里写入一份摘要。像 --non-interactive、--yes 和 --force 这类参数让每条命令都能在脚本中使用。
命令行工具自我更新时会做什么?'openframe update' 会先用校验和以及 cosign 签名验证每个版本,确认无误后才替换正在运行的二进制文件,并保留上一个版本以便回滚。
大小
106 MB
星标
723
时长
1年
提交 · 90 天