Public Access
50f253d444
Case-preserving gitea->git across the mokocli monorepo: brand text, functional identifiers (MOKOGITEA_TOKEN, GITEA_URL/ORG/REPO, --gitea-url), and all nested .mokogitea/ dirs (top-level + mcp/servers/*) -> .mokogit/. Protected: literal `.gitea` (upstream workflow-detection paths in the Enterprise plugins) and git.mokoconsulting.tech. WARNING: CI-breaking until the MokoGit server side is reconfigured. Claude-Session: https://claude.ai/code/session_01DQEMmJPe61ya7HDfA6BHP8
2.6 KiB
2.6 KiB
mokocli Enterprise API
PHP implementation of mokocli — enterprise standards, automation framework, workflow templates, and bulk sync tooling.
Primary platform: MokoGit — git.mokoconsulting.tech Backup mirror: GitHub (read-only mirror)
What Lives Here
| Directory | Purpose |
|---|---|
lib/Enterprise/ |
38 PHP enterprise library classes (platform adapters, sync, validation, plugins) |
cli/ |
CLI scripts (archive, create, release, sync rulesets, version management) |
automation/ |
Bulk sync, push files, repo cleanup, MokoGit migration |
validate/ |
18 validation scripts (health, structure, secrets, syntax, drift) |
templates/ |
Workflow templates and config templates synced to governed repos |
definitions/ |
Repository structure definitions (.tf format) |
deploy/ |
Deployment scripts (SFTP, Joomla) |
maintenance/ |
Labels, inventory, SHA pinning, version sync |
tools/ |
Standalone tools (legal doc generator) |
tests/ |
PHPUnit test suite |
Installation
composer require mokoconsulting-tech/enterprise
Composer Registry
This package is served from MokoGit package registry. Add this to your composer.json:
{
"repositories": [
{
"type": "composer",
"url": "https://git.mokoconsulting.tech/api/packages/MokoConsulting/composer"
}
]
}
CLI Tools
# Health check
vendor/bin/moko health -- --path .
# Sync standards
vendor/bin/moko sync
# Inventory
vendor/bin/moko inventory -- --path .
Platform Configuration
| Variable | Purpose |
|---|---|
GIT_PLATFORM |
git (default) or github |
GA_TOKEN |
MokoGit API / MokoGit Actions token |
GH_TOKEN |
GitHub API token (for mirror sync) |
GIT_URL |
MokoGit instance URL (default: https://git.mokoconsulting.tech) |
GIT_ORG |
MokoGit organization (default: MokoConsulting) |
License
GPL-3.0-or-later — See LICENSE.md