JSPM

@hatchpr/cli

0.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q78595F
  • License MIT

CLI for Hatch — self-hosted PR preview deployments (scaffold .hatch.yml auto-detecté)

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hatchpr/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @hatchpr/cli

    Official npm wrapper for the Hatch CLI — self-hosted PR preview deployments.

    The native Go binary is downloaded from GitHub Releases on install, matching your OS/arch.

    Install

    # One-shot use
    npx @hatchpr/cli init
    
    # Or install globally
    npm install -g @hatchpr/cli
    hatch init

    Usage

    cd your-repo
    hatch init                 # detect stack + write .hatch.yml
    hatch init --dry-run       # print to stdout, don't write
    hatch init --force         # overwrite an existing .hatch.yml

    See the full docs: https://hatchpr.dev

    How it works

    On npm install, the postinstall hook (install.js) detects your platform (darwin/linux/win32, x64/arm64), downloads the matching archive from https://github.com/itsaam/hatch/releases/download/v<version>/…, verifies the SHA-256 checksum, and extracts the hatch binary into bin/.

    No runtime dependencies.

    Supported platforms

    OS arch
    macOS x64, arm64
    Linux x64, arm64
    Windows x64

    License

    MIT — see LICENSE.