The --ci flag
On developer machines, Safe Chain uses shell aliases to wrap package manager commands. Aliases require an interactive shell session, which CI runners do not provide.
Use the
--ci flag when installing Safe Chain in any CI/CD environment. It installs executable shims into PATH instead of shell aliases, so the protection works in non-interactive shells across all pipeline stages.Installation
Unix/Linux (GitHub Actions, Azure Pipelines, CircleCI, etc.)
Windows (PowerShell)
npm, npx, yarn, pnpm, pip, uv, and other supported package manager commands in the pipeline are automatically protected — no further changes required.
Supported platforms
GitHub Actions
Full workflow example for ubuntu-latest and other runners.
Azure Pipelines, CircleCI, Jenkins, Bitbucket, GitLab
Configuration examples for all other major CI/CD platforms.