Skip to main content

Installation

The RedPennon CLI scans your codebase for flag references and reports them. It is the engine behind code references and the GitHub Action.

Install

npm install -g @redpennon/cli

This installs two equivalent binaries: rp (short) and redpennon.

rp --version
rp help

Authentication

Commands that talk to the API need an organisation API token (rpa_…), created under Settings → API tokens in the app. See Authentication → Organisation API tokens.

Provide it in priority order:

  1. --api-token rpa_… flag.
  2. RP_API_TOKEN environment variable.
  3. An auth config file resolved from the CLI config directory.
export RP_API_TOKEN=rpa_xxxxxxxxxxxxxxxxxxxxxxxx

rp usages is side-effect-free and can run with --no-api and no token at all; only commands that read or post project data need credentials.

Project and API base URL

OptionEnvPurpose
--project <key>RP_PROJECT_KEYSelects the project to report against.
--api-url <url>Overrides the API base URL (self-hosted / development).

Common commands

CommandDescription
rp usagesScan the working tree and print flag-key references. Never posts. See Usages.
rp keysFetch the project's variable keys (backs --only-unused).
rp repo initScaffold a .redpennon/config.yml.
rp statusShow resolved auth, project, and API URL.
rp autocompleteSet up shell completion.