Files
MokoCLI/README.md
T
jmiller 20c036f913
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 19s
chore(docs): normalize refs — MokoStandards->org wiki, moko-platform->mokocli, residual MokoGitea/MokoSuite
Non-workflow docs/config only (CLAUDE.md, README, branch-protection, ISSUE_TEMPLATE/config.yml,
ci-issue-reporter). Workflow files, manifest schema, and Makefile install paths left for the
forge-rebrand gate. Authored-by: Moko Consulting
2026-07-05 22:50:13 +00:00

2.6 KiB

mokocli Enterprise API

Version PHP License

PHP implementation of mokocli — enterprise standards, automation framework, workflow templates, and bulk sync tooling.

Primary platform: MokoGitea — 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, MokoGitea 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 MokoGitea 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 gitea (default) or github
GA_TOKEN MokoGitea API / MokoGitea Actions token
GH_TOKEN GitHub API token (for mirror sync)
GITEA_URL MokoGitea instance URL (default: https://git.mokoconsulting.tech)
GITEA_ORG MokoGitea organization (default: MokoConsulting)

License

GPL-3.0-or-later — See LICENSE.md