Skip to content

core pkg

Package management for host-uk repositories.

Usage

bash
core pkg <command> [flags]

Commands

CommandDescription
searchSearch GitHub for packages
installClone a package from GitHub
listList installed packages
updateUpdate installed packages
outdatedCheck for outdated packages

Search GitHub for host-uk packages.

bash
core pkg search [flags]

Results are cached for 1 hour in .core/cache/.

Flags

FlagDescription
--orgGitHub organisation (default: host-uk)
--patternRepo name pattern (* for wildcard)
--typeFilter by type in name (mod, services, plug, website)
--limitMax results (default: 50)
--refreshBypass cache and fetch fresh data

Examples

bash
# List all repos in org
core pkg search

# Search for core-* repos
core pkg search --pattern 'core-*'

# Search different org
core pkg search --org mycompany

# Bypass cache
core pkg search --refresh

pkg install

Clone a package from GitHub.

bash
core pkg install <org/repo> [flags]

Flags

FlagDescription
--dirTarget directory (default: ./packages or current dir)
--addAdd to repos.yaml registry

Examples

bash
# Clone to packages/
core pkg install host-uk/core-php

# Clone to custom directory
core pkg install host-uk/core-tenant --dir ./packages

# Clone and add to registry
core pkg install host-uk/core-admin --add

pkg list

List installed packages from repos.yaml.

bash
core pkg list

Shows installed status (✓) and description for each package.


pkg update

Pull latest changes for installed packages.

bash
core pkg update [<name>...] [flags]

Flags

FlagDescription
--allUpdate all packages

Examples

bash
# Update specific package
core pkg update core-php

# Update all packages
core pkg update --all

pkg outdated

Check which packages have unpulled commits.

bash
core pkg outdated

Fetches from remote and shows packages that are behind.


See Also

  • setup - Clone all repos from registry
  • dev work - Multi-repo workflow

Released under the EUPL-1.2 License.