Run analysis locally using SFDX
Last updated
Was this helpful?
Was this helpful?
sfdx codescan:run --token <token> --projectkey <project key>> --organization <organization key> --server <Server Name>USAGE:
$ sfdx codescan:run [name=value...] [-s <string>] [-o <string>] [-k <string>] [-t <string>] [-u <string>] [-p
<string>] [--noqualitygate] [--javahome <string>] [--nofail] [--qgtimeout <integer>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
-k, --projectkey=projectkey sonar.projectKey - the project key
to create.
-o, --organization=organization CodeScan Organization Id. Only
required when connecting to CodeScan Cloud
-p, --password=password SonarQube password (token is preferred)
-s, --server=server SonarQube server. Defaults to CodeScan Cloud
(https://app.codescan.io)
-t, --token=token SonarQube token (preferred)
-u, --username=username SonarQube username (token is preferred)
--javahome=javahome JAVA_HOME to use
--json format output as json
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
[default: warn] logging level for this
command invocation
--nofail Don't fail if sonar-scanner fails
--noqualitygate Don't wait until the SonarQube background
task is finished and return the build
Quality Gate
--qgtimeout=qgtimeout Timeout in seconds to wait for
Quality Gate to complete (default 300)