xx
.md

stripe

stripe makes the selected official Stripe CLI binary available to dependent tasks. It is a dependency, not a function, and takes no arguments.

Load an exact stable Stripe CLI version in canonical x.y.z form. Stripe CLI 1.40.0 and newer are supported; 1.40.0 introduced the non-interactive whoami authentication check used by stripe_listen. On first use, xx downloads the matching official GitHub release archive, verifies its published SHA-256 digest and archive layout, and validates the binary with stripe --version. Later runs reuse the validated installation.

Official native archives are used on Windows x86-64, Linux x86-64 and ARM64, and macOS ARM64. Stripe does not publish a Windows ARM64 archive, so xx uses the official Windows x86-64 binary through Windows x64 emulation on that host.

The dependency only adds the managed binary to PATH. It does not copy host Stripe credentials or API keys into the task environment. Use an environment dependency or xx_secrets when an arbitrary Stripe command needs STRIPE_API_KEY.

load("@os@1", "os_run")
load("@secrets@1", "xx_secrets")
load("@[email protected]", "stripe")

os_run(
    ("stripe", "customers", "list"),
    deps=[stripe, xx_secrets(["STRIPE_API_KEY"])],
)