2026-01-29 00:38:49 +00:00
|
|
|
# Core CLI
|
|
|
|
|
|
|
|
|
|
Core is a unified CLI for the host-uk ecosystem - build, release, and deploy Go, Wails, PHP, and container workloads.
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 19:59:49 +00:00
|
|
|
# Via Go (recommended)
|
2026-01-29 15:18:13 +00:00
|
|
|
go install github.com/host-uk/core/cmd/core@latest
|
2026-01-29 19:59:49 +00:00
|
|
|
|
|
|
|
|
# Or download binary from releases
|
|
|
|
|
curl -Lo core https://github.com/host-uk/core/releases/latest/download/core-$(go env GOOS)-$(go env GOARCH)
|
|
|
|
|
chmod +x core && sudo mv core /usr/local/bin/
|
|
|
|
|
|
|
|
|
|
# Verify
|
|
|
|
|
core doctor
|
2025-10-25 09:24:50 +01:00
|
|
|
```
|
|
|
|
|
|
2026-01-29 19:59:49 +00:00
|
|
|
See [Getting Started](getting-started.md) for all installation options including building from source.
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
## Command Reference
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
See [cmd/](cmd/) for full command documentation.
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
| Command | Description |
|
|
|
|
|
|---------|-------------|
|
2026-01-29 15:18:13 +00:00
|
|
|
| [go](cmd/go/) | Go development (test, fmt, lint, cov) |
|
|
|
|
|
| [php](cmd/php/) | Laravel/PHP development |
|
|
|
|
|
| [build](cmd/build/) | Build Go, Wails, Docker, LinuxKit projects |
|
|
|
|
|
| [ci](cmd/ci/) | Publish releases (dry-run by default) |
|
2026-01-29 15:54:20 +00:00
|
|
|
| [sdk](cmd/sdk/) | SDK generation and validation |
|
2026-01-29 15:40:13 +00:00
|
|
|
| [dev](cmd/dev/) | Multi-repo workflow + dev environment |
|
2026-01-29 15:18:13 +00:00
|
|
|
| [pkg](cmd/pkg/) | Package search and install |
|
|
|
|
|
| [vm](cmd/vm/) | LinuxKit VM management |
|
|
|
|
|
| [docs](cmd/docs/) | Documentation management |
|
|
|
|
|
| [setup](cmd/setup/) | Clone repos from registry |
|
|
|
|
|
| [doctor](cmd/doctor/) | Check development environment |
|
2026-01-29 00:38:49 +00:00
|
|
|
|
|
|
|
|
## Quick Start
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 15:18:13 +00:00
|
|
|
# Go development
|
|
|
|
|
core go test # Run tests
|
|
|
|
|
core go test --coverage # With coverage
|
|
|
|
|
core go fmt # Format code
|
|
|
|
|
core go lint # Lint code
|
|
|
|
|
|
|
|
|
|
# Build
|
|
|
|
|
core build # Auto-detect and build
|
2026-01-29 00:38:49 +00:00
|
|
|
core build --targets linux/amd64,darwin/arm64
|
|
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
# Release (dry-run by default)
|
|
|
|
|
core ci # Preview release
|
2026-01-29 19:59:49 +00:00
|
|
|
core ci --we-are-go-for-launch # Actually publish
|
2026-01-29 00:38:49 +00:00
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
# Multi-repo workflow
|
|
|
|
|
core dev work # Status + commit + push
|
|
|
|
|
core dev work --status # Just show status
|
2026-01-29 00:38:49 +00:00
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
# PHP development
|
|
|
|
|
core php dev # Start dev environment
|
|
|
|
|
core php test # Run tests
|
2026-01-29 00:38:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
|
|
Core uses `.core/` directory for project configuration:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
.core/
|
|
|
|
|
├── release.yaml # Release targets and settings
|
|
|
|
|
├── build.yaml # Build configuration (optional)
|
|
|
|
|
└── linuxkit/ # LinuxKit templates
|
|
|
|
|
```
|
|
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
And `repos.yaml` in workspace root for multi-repo management.
|
|
|
|
|
|
2026-01-29 19:59:49 +00:00
|
|
|
## Guides
|
|
|
|
|
|
|
|
|
|
- [Getting Started](getting-started.md) - Installation and first steps
|
|
|
|
|
- [Workflows](workflows.md) - Common task sequences
|
|
|
|
|
- [Troubleshooting](troubleshooting.md) - When things go wrong
|
|
|
|
|
- [Migration](migration.md) - Moving from legacy tools
|
|
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
## Reference
|
|
|
|
|
|
2026-01-29 00:38:49 +00:00
|
|
|
- [Configuration](configuration.md) - All config options
|
2026-01-29 19:59:49 +00:00
|
|
|
- [Glossary](glossary.md) - Term definitions
|
2026-01-29 00:38:49 +00:00
|
|
|
|
2026-01-29 15:10:25 +00:00
|
|
|
## Claude Code Skill
|
2026-01-29 00:38:49 +00:00
|
|
|
|
2026-01-29 15:10:25 +00:00
|
|
|
Install the skill to teach Claude Code how to use the Core CLI:
|
2026-01-29 00:38:49 +00:00
|
|
|
|
2026-01-29 15:10:25 +00:00
|
|
|
```bash
|
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/host-uk/core/main/.claude/skills/core/install.sh | bash
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
See [skill/](skill/) for details.
|