Skip to main content

CLI Installation

The @superflag-sh/cli package provides a command-line interface for managing Superflag feature flags, apps, and environments.

Requirements

  • Node.js 18+ or Bun
  • Internet connection for authentication

Installation

npm install -g @superflag-sh/cli

Verify Installation

superflag --version

First Time Setup

After installing, authenticate with your Superflag account:
superflag login
This will open your browser for authentication. See Authentication for details.

Updating

To update to the latest version:
npm update -g @superflag-sh/cli

Uninstalling

npm uninstall -g @superflag-sh/cli

Configuration Files

The CLI stores configuration in your home directory:
FilePurpose
~/.superflag/credentials.jsonAuthentication token
~/.superflag/context.jsonDefault app and environment

Next Steps