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)

Ищем в базе…

Что это такое?Интерактивный инструмент командной строки для управления Kubernetes-кластерами OpenFrame и процессом разработки — жизненный цикл кластеров, установка чартов через ArgoCD, перехват сервисов и создание заготовок проектов.
Это полноценная платформа или просто обёртка CLI над существующими инструментами?Это точка входа в экосистему OpenFrame — MSP-платформу с ИИ, построенную на open-source-альтернативах. Сам CLI оркестрирует стандартные инструменты: K3D, ArgoCD, Helm, Telepresence.
Как его запустить?Скачайте бинарник для своей платформы (Linux AMD64, macOS Apple Silicon или Windows через WSL2), добавьте его в PATH, затем выполните 'openframe bootstrap' — и вся окружение поднимется одной командой.
Нужно ли заранее ставить Docker и kubectl?Да: Docker 20.10+, kubectl 1.25+, Helm 3.10+ и K3D 5.0+. Чего-то не хватает — CLI сам проверит и установит через 'openframe prerequisites install'.
Какой компьютер для этого нужен?Достаточно мощный: минимум 24 ГБ оперативной памяти, 6 ядер CPU и 50 ГБ свободного места на диске (рекомендуется 32 ГБ, 12 ядер и 100 ГБ). Сборки под macOS — только Apple Silicon, а на Windows всё работает через WSL2.
Что именно разворачивает openframe bootstrap?Kubernetes-кластер K3D с публичным чартом openframe-oss-tenant, развёрнутым через ArgoCD, плюс ingress-контроллер Traefik и базовые компоненты мониторинга и логирования — учётные данные не нужны.
Это вообще open source?Не в привычном смысле: проект распространяется под нестандартной лицензией Flamingo AI Unified License v1.0, а не под обычной open-source-лицензией, так что загляните в LICENSE.md, чтобы понять, какое использование она разрешает.
Чем это поможет мне разрабатывать сервисы, которые живут внутри кластера?Он интегрирует Telepresence для перехвата сервисов: сервис, работающий в Kubernetes, можно отлаживать с локальной машины, а hot reload ускоряет цикл «правка — проверка».
А управлять настоящими облачными кластерами он умеет, а не только локальными K3D?Да — 'openframe cluster create' поддерживает и локальные кластеры K3D, и облачные кластеры на EKS или GKE, а 'cluster list/status' показывает их состояние, с выводом в JSON через -o json.
Как это выглядит, пока выполняется долгая команда?В интерактивном терминале он показывает чек-лист этапов с таймингами по каждому, встроенную панель со здоровьем приложений во время ожидания и шлёт уведомление на рабочий стол, когда долгая установка завершится.
Он нормально ведёт себя в пайплайнах GitHub Actions?Да: этапы bootstrap сворачиваются в log groups, ошибки превращаются в аннотации задачи, а сводка попадает в Step Summary. Флаги вроде --non-interactive, --yes и --force делают любую команду пригодной для скриптов.
Что происходит, когда CLI обновляет сам себя?'openframe update' проверяет каждый релиз по контрольным суммам и подписям cosign, прежде чем заменить работающий бинарник, и сохраняет предыдущую версию для отката.
Какие есть похожие проекты?DevOps-Projects, helm, argo-cd, Reloader, kubesphere, hivepaas, sofka, compose
Автор
flamingo-stack
Размер
106 MB
Звёзды
723
Возраст
1 г
Коммиты · 90 дней