Recipes

Practical examples and patterns for common use cases.


Available Recipes

Recipe Description
Offline Development Set up a registry for air-gapped environments
CI/CD Cache Speed up builds with a local package cache
Multiple Sources Mirror from multiple registries
Team Registry Share a registry across your team
Authentication Connect to private registries

Quick Reference

Common Commands

# Initialize
moonbit-registry init [path] [--name <name>]

# Mirror packages
moonbit-registry mirror <patterns...> [--full] [--strict] [-s <source>]

# Serve registry
moonbit-registry serve [--port <port>] [--host <host>]

# Manage sources
moonbit-registry source list
moonbit-registry source add <name> [options]
moonbit-registry source remove <name>
moonbit-registry source default <name>

# Configuration
moonbit-registry config [key] [value]

# Sync with remote
moonbit-registry sync [--push] [--pull]

Environment Variables

Variable Description
MOONCAKES_REGISTRY URL of the registry for moon CLI
PARTNER_REGISTRY_TOKEN Token for authenticated sources (example)

Table of contents