--- type: project status: active tags: - gitea - github - python - automation - cli - homelab - sops --- # 🚀 new-repo — Automated Repository Provisioning CLI ## 🎯 Overview `new-repo` is a lightweight, zero-dependency Python 3 command-line utility integrated directly into the laptop's workstation configuration (`~/Config/home/scripts/new-repo.py`). It automates the creation of new repositories across a hybrid Git topology: - **Primary Forge**: Self-hosted Gitea instance (`gitea.roadtotech.me`). - **Offsite Backup Forge**: GitHub (`github.com`) via automated push mirroring. It eliminates repetitive manual setup by providing sensible defaults (Gitea as primary, automated GitHub push mirroring, `UNLICENSE` default, private visibility, auto-clone to `$PWD/`) while supporting Gitea repository templates and optional standalone configurations. --- ## 🏛️ System Architecture & Workflow ```mermaid sequenceDiagram autonumber actor User as Developer (Laptop) participant CLI as new-repo (Python 3) participant SOPS as sops (RAM Decrypt) participant Gitea as Gitea API (Primary) participant GitHub as GitHub API (Backup) participant Git as Local Git User->>CLI: new-repo [flags] alt Using Template (-t