2026-01-29 16:27:39 +00:00
|
|
|
# core pkg search
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
Search GitHub for repositories matching a pattern.
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
Uses `gh` CLI for authenticated search. Results are cached for 1 hour.
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
## Usage
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 16:27:39 +00:00
|
|
|
core pkg search [flags]
|
2026-01-29 09:34:57 +00:00
|
|
|
```
|
|
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
## Flags
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
| Flag | Description |
|
|
|
|
|
|------|-------------|
|
2026-01-29 16:27:39 +00:00
|
|
|
| `--pattern` | Repo name pattern (* for wildcard) |
|
|
|
|
|
| `--org` | GitHub organization (default: host-uk) |
|
|
|
|
|
| `--type` | Filter by type in name (mod, services, plug, website) |
|
|
|
|
|
| `--limit` | Max results (default: 50) |
|
|
|
|
|
| `--refresh` | Bypass cache and fetch fresh data |
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
## Examples
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 16:27:39 +00:00
|
|
|
# List all host-uk repos
|
|
|
|
|
core pkg search
|
|
|
|
|
|
|
|
|
|
# Search for core-* repos
|
|
|
|
|
core pkg search --pattern "core-*"
|
|
|
|
|
|
|
|
|
|
# Search different org
|
|
|
|
|
core pkg search --org mycompany
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
# Filter by type
|
|
|
|
|
core pkg search --type services
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
# Bypass cache
|
|
|
|
|
core pkg search --refresh
|
2026-01-29 09:34:57 +00:00
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
# Combine filters
|
|
|
|
|
core pkg search --pattern "core-*" --type mod --limit 20
|
2026-01-29 09:34:57 +00:00
|
|
|
```
|
|
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
## Output
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
Found 5 repositories:
|
|
|
|
|
|
|
|
|
|
host-uk/core
|
|
|
|
|
Go CLI for the host-uk ecosystem
|
|
|
|
|
★ 42 Go Updated 2 hours ago
|
|
|
|
|
|
|
|
|
|
host-uk/core-php
|
|
|
|
|
PHP/Laravel packages for Core
|
|
|
|
|
★ 18 PHP Updated 1 day ago
|
|
|
|
|
|
|
|
|
|
host-uk/core-images
|
|
|
|
|
Docker and LinuxKit images
|
|
|
|
|
★ 8 Dockerfile Updated 3 days ago
|
|
|
|
|
```
|
|
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
## Authentication
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
Uses GitHub CLI (`gh`) authentication. Ensure you're logged in:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
gh auth status
|
|
|
|
|
gh auth login # if not authenticated
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## See Also
|
|
|
|
|
|
2026-01-29 16:27:39 +00:00
|
|
|
- [pkg install](../) - Clone a package from GitHub
|
2026-01-29 15:18:13 +00:00
|
|
|
- [setup command](../../setup/) - Clone all repos from registry
|