---
title: Hangar CLI Operating Manual · SpaceCorps Hangar
description: Command-line interface tool for publishing builds, managing release channels, and automating SpaceCorps Hangar deployments.
canonical: https://hangar.sliplane.app/cli.md
last-updated: 2026-09-28
---

# Hangar CLI (`hangar`)

The official command-line interface tool for managing SpaceCorps Hangar game releases, querying software catalogs, and uploading binaries to R2/S3 storage.

## Installation

Install via Cargo:

```bash
cargo install hangar-cli
```

Or download pre-compiled native binaries:

- macOS (Apple Silicon & Intel): `curl -fsSL https://hangar.sliplane.app/cli/install.sh | sh`
- Linux (x86_64 / arm64): `curl -fsSL https://hangar.sliplane.app/cli/install.sh | sh`
- Windows (PowerShell): `irm https://hangar.sliplane.app/cli/install.ps1 | iex`

## Quickstart & Authentication

Login with an API token or browser session:

```bash
hangar login --token <your_token>
```

## Common Commands

### 1. Browse Catalog

```bash
hangar catalog list
```

### 2. Inspect Releases

```bash
hangar releases list --product spacecorps-2027 --channel stable
```

### 3. Verify Binary Integrity

```bash
hangar verify --file ./SpaceCorps2027-v0.4.0.dmg --expected-sha256 <hash>
```

### 4. Publish New Build

```bash
hangar publish \
  --product spacecorps-2027 \
  --version 0.4.1 \
  --channel stable \
  --platform darwin-arm64 \
  --file ./SpaceCorps2027-v0.4.1-arm64.dmg
```
