Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

sonarqube-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sonarqube-cli

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

SonarQube CLI

Command line interface for SonarQube Server API.

Installation

  • npm install -g sonarqube-cli
  • The snr command should now be installed.

Configuration and Usage

snr can be configured according to the table below.

Env Variablesonar-project.propertiesCommand LineRequiredDefault
SONAR_TOKENsonar.tokennoneyesNone
SONAR_HOST_URLsonar.host.url--base-urlyesNone
n/asonar.projectKey--projectnoNone
n/asonar.organization--organization*None

Precedence:

  • command-line args are highest priority
  • next, if there's a sonar-project.properties somewhere up your working directory tree, it will be used.
  • env variables are checked last.
~$ snr help

CLI for SonarQube Server API

Options:
  -V, --version     output the version number
  --base-url <url>  SonarQube server base URL
  -h, --help        display help for command

Commands:
  info              Show CLI information
  issue             Manage issues
  hotspot           Manage security hotspots
  project           Manage SonarQube projects
  status            Check system status
  help [command]    display help for command

Development

yarn install
yarn dev          # Run CLI in development
yarn build        # Build for production
yarn lint         # Lint code
yarn format       # Format code
yarn typecheck    # Type check

Contributing

  • This project uses TS and commander.js
  • docs/refresh-docs.ts is used to refresh the API Specs.

FAQs

Package last updated on 29 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts