cli/docs/cmd/pkg/index.md
Snider 78cb2b3507 docs: sync php, pkg, setup, doctor, test with CLI
- php: add serve flags, packages subcommands, all commands
- pkg: fix description (GitHub repos not Go modules), add --add flag
- setup: replace --path/--ssh with --dry-run/--only
- doctor: add --verbose flag
- test: full documentation with all flags and JSON output
- Cleaned up TODO.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 16:26:27 +00:00

74 lines
1,018 B
Markdown

# core pkg
Package management for host-uk/core-* repos.
## Usage
```bash
core pkg <command> [flags]
```
## Commands
| Command | Description |
|---------|-------------|
| [search](search/) | Search GitHub for packages |
| `install` | Clone a package from GitHub |
| `list` | List installed packages |
| `update` | Update installed packages |
| `outdated` | Check for outdated packages |
## pkg search
Search GitHub for host-uk packages.
```bash
core pkg search <query> [flags]
```
See [search](search/) for details.
## pkg install
Clone a package from GitHub.
```bash
core pkg install <repo> [flags]
```
### Flags
| Flag | Description |
|------|-------------|
| `--add` | Add to repos.yaml registry |
### Examples
```bash
core pkg install core-php
core pkg install core-tenant --add
```
## pkg list
List installed packages.
```bash
core pkg list
```
## pkg update
Update installed packages.
```bash
core pkg update
```
## pkg outdated
Check for outdated packages.
```bash
core pkg outdated
```