Skip to Content
RcmadeDocs
Ray SecretsTutorials

Installation

Install the Ray Secrets CLI in seconds using automated OS installers, package managers, or standalone precompiled binaries.

Ray Secrets CLI (ray) injects client-side encrypted secrets directly into child process memory with zero plaintext credentials written to disk. It is distributed as a self-contained native binary with zero runtime dependencies, and is also available across all standard package managers.

Quick Install

Choose your platform to get the one-line installation command:

curl
curl -fsSL https://secrets.rcmade.io/install.sh | bash

Verifying Installation

Verify that the CLI is installed and accessible in your shell:

ray --version

Zero-Argument Interactive Mode: You can also run ray directly without arguments to launch the interactive terminal menu:

ray

In an interactive terminal, this opens a keyboard-driven menu that guides you through login, workspace linking, and secret management.

Next Step: Once installed, run ray login or follow the 5-Minute Quickstart to authenticate your workstation and inject your first secret.


Installation Methods

macOS & Linux

Install the standalone native binary with a single terminal command:

curl -fsSL https://secrets.rcmade.io/install.sh | bash

The script automatically detects your operating system and CPU architecture, downloads the precompiled binary, and adds it to your user PATH.

Windows

On Windows, choose the installation method that fits your workflow:

  • Node Package Manager:

    npm install -g @rcmade/ray
  • PowerShell One-Liner:

    iwr https://secrets.rcmade.io/install.ps1 -useb | iex

Node.js & Bun Package Managers

If your workstation toolchain uses Node.js or Bun, you can install Ray CLI globally:

npm install -g @rcmade/ray

Ray CLI is also published across alternative registries:

  • pnpm: pnpm add -g @rcmade/ray
  • bun: bun add -g @rcmade/ray
  • yarn: yarn global add @rcmade/ray

Instant Zero-Install (npx)

Run any Ray CLI command on-demand without installing it permanently on your system:

npx @rcmade/ray login
npx @rcmade/ray doctor

Docker & Containers

For Docker container builds and minimal Linux environments, install the standalone binary directly:

RUN apk add --no-cache libstdc++ libgcc ca-certificates curl && curl -fsSL https://secrets.rcmade.io/install.sh | sh

For automated CI/CD runners, see the CI/CD with Service Tokens Guide.


Keeping Ray Updated

To upgrade Ray CLI to the latest release:

  • Node package managers:
    npm update -g @rcmade/ray
  • Standalone native installers: Re-run the one-line installation command (curl or PowerShell) to fetch and replace the binary with the latest release.

Uninstalling

If you ever need to remove Ray CLI from your workstation:

  • Node package managers:
    npm uninstall -g @rcmade/ray
  • macOS & Linux standalone:
    rm -rf ~/.ray
  • Windows standalone:
    Remove-Item -Recurse -Force "$env:USERPROFILE\.ray"

Direct Downloads

For air-gapped environments, offline workstations, or custom deployment pipelines, download precompiled archives directly:

checksums.txt

macOS

Apple Silicon

MacBook Pro/Air, Mac Studio, Mac Mini (Apple Silicon)

ray-darwin-arm64.tar.gz
macOS 11+ (ARM64)

macOS

Intel x86_64

Legacy Intel Macs & x86_64 virtualization

ray-darwin-x64.tar.gz
macOS 10.15+ (x86_64)

Linux (glibc)

x86_64 / amd64

Ubuntu, Debian, Fedora, CentOS, RHEL, Arch Linux, WSL2

ray-linux-x64.tar.gz
glibc 2.28+ (x64)

Linux (glibc)

ARM64 / aarch64

AWS Graviton (t4g/c6g/c7g), Raspberry Pi 4/5, Oracle Ampere

ray-linux-arm64.tar.gz
glibc 2.28+ (ARM64)

Alpine Linux (musl)

x86_64 / musl

Alpine-based Dockerfiles & lightweight containerized CI runners

ray-linux-x64-musl.tar.gz
Alpine Linux 3.16+ (x64)

Alpine Linux (musl)

ARM64 / musl

ARM64 Docker containers on AWS Graviton or Apple Silicon

ray-linux-arm64-musl.tar.gz
Alpine Linux 3.16+ (ARM64)

Windows

64-bit (x64 & ARM64)

Windows 10/11 laptops, desktops, and Windows Server CI runners

ray-windows-x64.zip
Windows 10, 11, Server 2019+

Manual Extraction

Extract the downloaded archive and place the ray binary in a directory within your system $PATH:

# Apple Silicon (M1/M2/M3/M4)tar -xzf ray-darwin-arm64.tar.gz# Or Intel x86_64# tar -xzf ray-darwin-x64.tar.gzchmod +x raysudo mv ray /usr/local/bin/

Integrity Verification

Every release publishes cryptographic SHA-256 hashes in checksums.txt. Verify your downloaded archive before extraction:

shasum -a 256 -c checksums.txt

System Diagnostics

To verify your environment, network connectivity, and credentials, run the built-in diagnostic suite:

ray doctor

This checks API connectivity, local token storage, and shell hook installation.


Troubleshooting & Frequently Asked Questions


Ready to eliminate plaintext secrets?

Create a workspace to organize environments, invite your team, and generate scoped Service Tokens for CI/CD.