Musher is the CLI for musher.dev. Use it to authenticate against the Musher platform and deploy containerized applications.
macOS / Linux (or WSL):
curl -fsSL https://get.musher.dev | shWindows (PowerShell):
irm https://get.musher.dev/install.ps1 | iexFrom source (requires Go 1.26.11+):
go install github.com/musher-dev/musher-cli/cmd/musher@latestCheck the installed version with musher version, and upgrade with musher update (or re-run the install
command above). Use 0.4.1 or later: from platform-api 32.0.0, a deployment's status is derived from its replicas,
and an older CLI can wait for its 15-minute timeout on a deploy that has failed, or report success when only part
of it is serving.
- Musher CLI — installed above.
- A Musher account and API key — create or manage keys in the console under Organization settings › API keys.
Authenticate and check your identity:
musher auth login
musher auth statusVerify your setup:
musher doctorBuild your repository and deploy it:
musher init # detect the project, write musher.yaml with an explicit build recipe
musher deploy # build, push, and deploy by digest; prints the URLRun musher with no arguments in a terminal to open the interactive UI:
deployments, live logs, and guided init, build, and deploy screens.
musher build and musher deploy build images on your machine and push them
to your own registry (GHCR, Docker Hub, …); the platform then deploys the
image pinned by digest.
- Dockerfile recipes build with BuildKit — Docker Engine's built-in BuildKit,
or a standalone
buildkitdviabuild.buildkit_host/MUSHER_BUILDKIT_HOST. - Buildpacks recipes build with Cloud Native Buildpacks (default builder:
Paketo
builder-jammy-base, pinned by digest whenmusher initwrites it). They need a Docker daemon. - Images default to
linux/amd64, the platform's host architecture, so builds on Apple Silicon still run. Override with--platform. - Push credentials come from your Docker config (
docker login <registry>). For a private image, add a pull credential for its registry in the Musher Console (Configuration → Registry Credentials);musher deploywarns when one is missing.
The recipe lives in musher.yaml and mirrors the component v2 build grammar;
it is used locally and never sent to the platform:
apiVersion: musher.dev/v1
kind: App
metadata:
name: web
spec:
workload:
kind: SERVICE
build:
repository: ghcr.io/acme/web # where to push
context: .
dockerfile: Dockerfile # or: buildpacks: {builderImage: …}
arguments: {NODE_ENV: production}
secrets: {NPM_TOKEN: {env: NPM_TOKEN}} # RUN --mount=type=secret,id=NPM_TOKEN
endpoints:
http: {targetPort: 8080}A build never guesses a recipe: musher init detects one and writes it down,
so what you review is what builds.
The Musher platform moved from a bundle registry to a deployment product. This
CLI is being rebuilt to match. The bundle and hub commands have been removed:
their backend endpoints were deleted (platform ADR 0062) and returned 404.
The CLI covers building (init, build), deploying (deploy, list,
status, logs), authentication, configuration, and diagnostics.
- Organization — The billing and access-control boundary. An API key is bound to exactly one.
- Environment — An isolated execution context (for example
staging,production) within an organization. - Deployment — The deployable unit, and the app itself. It is created from a blueprint and runs a pinned container image.
- Replica — One running instance of a deployment. You scale deployments, not replicas.
| Command | Description |
|---|---|
musher init [dir] |
Detect the project and write musher.yaml with an explicit build recipe |
musher build [dir] |
Build and push the image; stdout is the pushed repo:tag@sha256:… |
| Command | Description |
|---|---|
musher deploy [name] |
Deploy an image, or build from the recipe first; --no-build --image … skips the build |
musher list |
List deployments |
musher status <name> |
Show the state of a deployment |
musher logs <name> |
Read a deployment's logs |
| Command | Description |
|---|---|
musher auth login |
Authenticate with an API key. --no-verify stores without a round trip |
musher auth logout |
Clear stored credentials |
musher auth status |
Show the authenticated identity and organization |
| Command | Description |
|---|---|
musher config list |
List all configuration values |
musher config get <key> |
Read a configuration value |
musher config set <key> <value> |
Write a configuration value |
musher config profile |
Manage configuration profiles |
| Command | Description |
|---|---|
musher doctor |
Diagnostic checks |
musher update |
Self-update from GitHub Releases |
musher version |
Show version info |
musher completion |
Shell completions |
| Item | Location |
|---|---|
| Config file | ~/.config/musher/config.yaml |
| Credentials (keyring) | OS keyring, service musher/<api-host> |
| Credentials (fallback) | ~/.local/share/musher/credentials/<hostID>/api-key |
| Logs | ~/.local/state/musher/logs/musher.log |
Build settings: build.repository (default push target), build.platform
(default linux/amd64), build.buildkit_host (standalone BuildKit; otherwise
Docker's). Set them with musher config set.
Auth precedence: MUSHER_API_KEY env var / --api-key flag > OS keyring > credentials file.
API endpoint: --api-url flag > MUSHER_API_URL env var > api.url config key (default: https://api.musher.dev).
All paths follow XDG conventions. Override with MUSHER_CONFIG_HOME, MUSHER_DATA_HOME, MUSHER_STATE_HOME, or MUSHER_HOME.
| Flag | Description |
|---|---|
--api-url |
Override the API endpoint |
--api-key |
Provide an API key directly (overrides keyring) |
--json |
Output results as JSON |
--quiet |
Minimal output (for CI) |
--no-color |
Disable colored output |
--no-input |
Disable interactive prompts |
--no-tui |
Print help instead of opening the interactive UI on a bare musher (or set MUSHER_NO_TUI) |
See CONTRIBUTING.md for development setup, building, testing, and contribution guidelines.