# go-cmd/cmd

Non-blocking external commands in Go with streaming output

Repository: https://github.com/go-cmd/cmd
Canonical: https://ross.abutalabs.com/products/cmd
Language: Go
License: MIT
License Family: permissive
Topics: golang, command, asynchronous, real-time, non-blocking
Last push: 2026-06-28T16:02:42+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 8, longevity 100
- inputs: {"age_days": 3468, "days_push": 66, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1027, forks 141 (observed 2026-08-28T04:03:17.011104+00:00)

## What it is
A small Go library wrapping os/exec.Cmd to run external commands safely in concurrent, asynchronous applications. It provides channel-based non-blocking execution, real-time stdout/stderr streaming, live status, and proper process termination.

## Use cases
- run external commands asynchronously in Go
- stream stdout and stderr in real time from a subprocess
- start a long-running process and stop it later
- avoid race conditions when reading command output
- fire-and-forget command execution with a status channel

## When to choose
- you need non-blocking subprocess execution with streaming output in Go
- you want safe, race-free reading of stdout/stderr while a command runs
- you need to start, monitor, and stop external processes concurrently

## When to avoid
- you only need simple synchronous command execution with no streaming
- you are not working in Go

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, developer-tools
- domain: developer-tools, backend
- platform: go, windows, cross-platform
- tags: os-exec, process-management, streaming-output, non-blocking, async, command-line, linux, macos

## Member repositories
- go-cmd/cmd (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:17.011104+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:07:52.376595+00:00, confidence not recorded.
  - readme: https://github.com/go-cmd/cmd (fetched 2026-08-28T04:03:17.011104+00:00, sha 649002ccbeb9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
