2026-01-29 15:46:24 +00:00
|
|
|
# core pkg search & core pkg install
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
Search GitHub for repositories and install them locally.
|
|
|
|
|
|
2026-01-29 15:46:24 +00:00
|
|
|
## core pkg search
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
Search GitHub for repositories matching a pattern.
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg search <pattern> [flags]
|
2026-01-29 09:34:57 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Flags
|
|
|
|
|
|
|
|
|
|
| Flag | Description |
|
|
|
|
|
|------|-------------|
|
|
|
|
|
| `--org` | Search within a specific organization |
|
|
|
|
|
| `--limit` | Maximum results (default: 10) |
|
|
|
|
|
| `--language` | Filter by programming language |
|
|
|
|
|
|
|
|
|
|
### Examples
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Search by pattern
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg search "cli tool"
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
# Search within organization
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg search --org host-uk
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
# Search with language filter
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg search --org host-uk --language go
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
# Search all core-* repos
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg search "core-" --org host-uk
|
2026-01-29 09:34:57 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Output
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
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 15:46:24 +00:00
|
|
|
## core pkg install
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
Clone a repository from GitHub.
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg install <repo> [flags]
|
2026-01-29 09:34:57 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Flags
|
|
|
|
|
|
|
|
|
|
| Flag | Description |
|
|
|
|
|
|------|-------------|
|
|
|
|
|
| `--path` | Destination directory (default: current dir) |
|
|
|
|
|
| `--branch` | Clone specific branch |
|
|
|
|
|
| `--depth` | Shallow clone depth |
|
|
|
|
|
|
|
|
|
|
### Examples
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Install by full name
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg install host-uk/core
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
# Install to specific path
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg install host-uk/core --path ~/Code/host-uk
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
# Install specific branch
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg install host-uk/core --branch dev
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
# Shallow clone
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg install host-uk/core --depth 1
|
2026-01-29 09:34:57 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Authentication
|
|
|
|
|
|
|
|
|
|
Uses GitHub CLI (`gh`) authentication. Ensure you're logged in:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
gh auth status
|
|
|
|
|
gh auth login # if not authenticated
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Workflow Example
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Find repositories
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg search --org host-uk
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
# Install one
|
2026-01-29 15:46:24 +00:00
|
|
|
core pkg install host-uk/core-php --path ~/Code/host-uk
|
2026-01-29 09:34:57 +00:00
|
|
|
|
|
|
|
|
# Check setup
|
|
|
|
|
core doctor
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## See Also
|
|
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
- [setup command](../../setup/) - Clone all repos from registry
|
|
|
|
|
- [doctor command](../../doctor/) - Check environment
|