New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@rtidx/cli

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rtidx/cli

RTIdx CLI — scan a repo for supply-chain and secrets risk from the terminal

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
25
-84.37%
Maintainers
2
Weekly downloads
 
Created
Source

rtidx

Scan a repository for supply-chain and secrets risk from the terminal — the CLI companion to RTIdx.

Install

npm install -g @rtidx/cli

Requires Node.js >= 20.

Usage

rtidx login                                    # sign in via your browser
rtidx logout                                   # sign out on this machine
rtidx whoami                                   # show who's signed in
rtidx check <repo-url> --context <context>     # scan a repository
rtidx config set api-url <url>                 # persist a default API URL
rtidx --version                                # print the installed version

<repo-url> must be a public GitHub or Bitbucket repository URL.

--context is required and must be one of: recruiter, client, unsolicited, dependency, self.

check options

FlagDefaultDescription
--context <value>(required)Why you're scanning this repo
--jsonfalsePrint machine-readable JSON instead of a human-readable report. Failures also write a second, schema-versioned JSON line to stderr ({schemaVersion, status: "error", code, message}) alongside the usual human-readable one, so a script has something to parse either way.
--fail-on <band>high_riskMinimum risk band that causes a non-zero exit code (low_risk, suspicious, high_risk, malicious)
--wait <minutes>10How long to wait for the scan to finish before timing out
--quiet, -qfalseSuppress progress lines ("Still scanning...") on stderr — useful for CI logs. Errors and the final result are never suppressed.

rtidx config

Persists settings under ~/.rtidx/config.json (%APPDATA%\rtidx\config.json on Windows, or $XDG_CONFIG_HOME/rtidx/config.json if set — same directory as the token file). Currently supports one key:

rtidx config set api-url https://rtidx.example.internal
rtidx config get api-url
rtidx config unset api-url

Precedence: the RTIDX_API_URL environment variable always wins over a persisted setting, which wins over the default (https://www.rtidx.com).

Exit codes

CodeMeaning
0Scan completed, risk band below --fail-on
1Scan completed, risk band at or above --fail-on
2Usage error (bad arguments, not signed in)
3Authentication error — run rtidx login
4Rate limited
5Network error, or timed out waiting for the scan

License

MIT

Keywords

security

FAQs

Package last updated on 06 Sep 2026

Related posts