title | sidebar_position |
---|---|
Command-line options |
1 |
This is a summary of options that are available for each subcommand of the scala-cli
command.
All options that start with:
-g
-language
-opt
-P
-target
-V
-W
-X
-Y
are assumed to be Scala compiler options and will be propagated to Scala Compiler. This applies to all commands that uses compiler directly or indirectly.
Scalac options that are directly supported in scala CLI (so can be provided as is, without any prefixes etc.):
-encoding
-release
-color
-nowarn
-feature
-deprecation
-indent
-no-indent
-unchecked
-rewrite
-old-syntax
-new-syntax
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Run JMH benchmarks
Set JMH version (default: 1.37)
Available in commands:
bloop
, bloop exit
, bloop output
, bloop start
, bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
, uninstall
[Internal] Protocol to use to open a BSP connection with Bloop
[Internal] Socket file to use to open a BSP connection with Bloop
[Internal] Host the compilation server should bind to
[Internal]
Port the compilation server should bind to (pass -1
to pick a random port)
[Internal] Daemon directory of the Bloop daemon (directory with lock, pid, and socket files)
[Internal] If Bloop isn't already running, the version we should start
[Internal] Maximum duration to wait for the BSP connection to be opened
[Internal] Duration between checks of the BSP connection state
[Internal] Maximum duration to wait for the compilation server to start up
[Internal] Include default JVM options for Bloop
[Internal] Pass java options to use by Bloop server
[Internal] Bloop global options file
[Internal] JVM to use to start Bloop (e.g. 'system|17', 'temurin:21', …)
[Internal] Working directory for Bloop, if it needs to be started
Enable / disable usage of Bloop compilation server. Bloop is used by default so use --server=false
to disable it. Disabling compilation server allows to test compilation in more controlled mannter (no caching or incremental compiler) but has a detrimental effect of performance.
Available in commands:
Aliases: -p
, --print-classpath
Print the resulting class path
Available in commands:
[Internal] Dump config DB as JSON
Create PGP keychain in config
Aliases: --passphrase
A password used to encode the private PGP keychain
Email used to create the PGP keychains in config
When accessing config's content print the password value rather than how to get the password When saving an entry in config save the password value rather than how to get the password e.g. print/save the value of environment variable ENV_VAR rather than "env:ENV_VAR"
Aliases: --remove
Remove an entry from config
For repository.credentials and publish.credentials, whether these credentials should be HTTPS only (default: true)
For repository.credentials, whether to use these credentials automatically based on the host
For repository.credentials, whether to use these credentials are optional
For repository.credentials, whether to use these credentials should be passed upon redirection
Aliases: -f
Force overwriting values for key
Available in commands:
bloop
, bloop exit
, bloop start
, bsp
, compile
, config
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, pgp push
, publish
, publish local
, publish setup
, repl
, console
, run
, github secret create
, gh secret create
, setup-ide
, shebang
, test
, uninstall
[Internal] Specify a TTL for changing dependencies, such as snapshots
[Internal] Set the coursier cache location
[Internal] Enable checksum validation of artifacts downloaded by coursier
Disable using the network to download artifacts, use the local cache only
Available in commands:
compile
, package
, publish
, publish local
, repl
, console
, run
, shebang
, test
Run given command against all provided Scala versions and/or platforms
Available in commands:
bloop
, bloop start
, bsp
, compile
, config
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, pgp push
, publish
, publish local
, publish setup
, repl
, console
, run
, setup-ide
, shebang
, test
Turn debugging on
Debug port (5005 by default)
Debug mode (attach by default)
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Aliases: --dep
Add dependencies
Aliases: --compile-dep
, --compile-lib
Add compile-only dependencies
Aliases: -r
, --repo
Add repositories for dependency resolution.
Accepts predefined repositories supported by Coursier (like sonatype:snapshots
or m2Local
) or a URL of the root of Maven repository
Aliases: -P
, --plugin
Add compiler plugin dependencies
Available in commands:
Update all dependencies if a newer version was released
Available in commands:
Aliases: -o
Set the destination path
Aliases: -f
Overwrite the destination directory, if it exists
Aliases: --default-scaladoc-opts
Control if Scala CLI should use default options for scaladoc, true by default. Use --default-scaladoc-opts:false
to not include default options.
Available in commands:
Sets the export format to SBT
Aliases: --mvn
Sets the export format to Maven
Sets the export format to Mill
Sets the export format to Json
Aliases: --setting
Aliases: -p
Project name to be used on Mill build file
Version of SBT to be used for the export
Version of Maven Compiler Plugin to be used for the export
Version of Maven Scala Plugin to be used for the export
Version of Maven Exec Plugin to be used for the export
ArtifactId to be used for the maven export
GroupId to be used for the maven export
Version to be used for the maven export
Aliases: -o
Available in commands:
Check if sources are well formatted
Use project filters defined in the configuration. Turned on by default, use --respect-project-filters:false
to disable it.
Saves .scalafmt.conf file if it was created or overwritten
[Internal]
[Internal]
[Internal]
[Internal]
[Internal]
Aliases: -F
Pass an argument to scalafmt.
Aliases: --scalafmt-config
Custom path to the scalafmt configuration file.
Aliases: --scalafmt-conf-snippet
, --scalafmt-config-str
Pass configuration as a string.
Aliases: --dialect
Pass a global dialect for scalafmt. This overrides whatever value is configured in the .scalafmt.conf file or inferred based on Scala version used.
Aliases: --fmt-version
Pass scalafmt version before running it (3.8.3 by default). If passed, this overrides whatever value is configured in the .scalafmt.conf file.
Available in commands:
add-path
, bloop
, bloop exit
, bloop output
, bloop start
, bsp
, clean
, compile
, config
, default-file
, dependency-update
, directories
, doc
, export
, fix
, fmt
, format
, scalafmt
, help
, install completions
, install-completions
, install-home
, new
, package
, pgp pull
, pgp push
, publish
, publish local
, publish setup
, repl
, console
, run
, github secret create
, gh secret create
, github secret list
, gh secret list
, setup-ide
, shebang
, test
, uninstall
, uninstall completions
, uninstall-completions
, update
, version
Aliases: --suppress-experimental-warning
Suppress warnings about using experimental features
Available in commands:
add-path
, bloop
, bloop exit
, bloop output
, bloop start
, bsp
, clean
, compile
, config
, default-file
, dependency-update
, directories
, doc
, export
, fix
, fmt
, format
, scalafmt
, help
, install completions
, install-completions
, install-home
, new
, package
, pgp create
, pgp key-id
, pgp pull
, pgp push
, pgp sign
, pgp verify
, publish
, publish local
, publish setup
, repl
, console
, run
, github secret create
, gh secret create
, github secret list
, gh secret list
, setup-ide
, shebang
, test
, uninstall
, uninstall completions
, uninstall-completions
, update
, version
Print usage and exit
Aliases: -h
, -help
Print help message and exit
Aliases: --full-help
, -full-help
, -help-full
Print help message, including hidden options, and exit
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Aliases: --env-help
, --envs-help
, --help-env
Show environment variable help
Show options for ScalaJS
Show options for ScalaNative
Aliases: --doc-help
, --help-doc
, --scaladoc-help
Show options for Scaladoc
Aliases: --repl-help
Show options for Scala REPL
Aliases: --fmt-help
, --help-fmt
, --scalafmt-help
Show options for Scalafmt
Available in commands:
install completions
, install-completions
Aliases: --shell
Name of the shell, either zsh or bash
Path to *rc
file, defaults to .bashrc
or .zshrc
depending on shell
Aliases: -o
Completions output directory
[Internal] Custom banner in comment placed in rc file
[Internal] Custom completions name
Print completions to stdout
Available in commands:
package
, repl
, console
, run
, shebang
, test
Aliases: -J
Set Java options, such as -Xmx1g
Available in commands:
package
, repl
, console
, run
, shebang
, test
Aliases: --java-prop
Add java properties. Note that options equal -Dproperty=value
are assumed to be java properties and don't require to be passed after --java-prop
.
Available in commands:
bloop
, bloop start
, bsp
, compile
, config
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, pgp push
, publish
, publish local
, publish setup
, repl
, console
, run
, setup-ide
, shebang
, test
Set the Java home directory
Aliases: -j
Use a specific JVM, such as 14
, adopt:11
, or graalvm:21
, or system
. scala-cli uses coursier to fetch JVMs, so you can use cs java --available
to list the available JVMs.
[Internal] JVM index URL
[Internal] Operating system to use when looking up in the JVM index
[Internal] CPU architecture to use when looking up in the JVM index
[Internal] Javac plugin dependencies or files
Aliases: --javac-opt
[Internal] Javac options
[Internal] Port for BSP debugging
Available in commands:
add-path
, bloop
, bloop exit
, bloop output
, bloop start
, bsp
, clean
, compile
, config
, default-file
, dependency-update
, directories
, doc
, export
, fix
, fmt
, format
, scalafmt
, help
, install completions
, install-completions
, install-home
, new
, package
, pgp pull
, pgp push
, publish
, publish local
, publish setup
, repl
, console
, run
, github secret create
, gh secret create
, github secret list
, gh secret list
, setup-ide
, shebang
, test
, uninstall
, uninstall completions
, uninstall-completions
, update
, version
Aliases: -q
Decrease logging verbosity
Use progress bars
Available in commands:
export
, package
, publish
, publish local
, run
, shebang
Aliases: -M
Specify which main class to run
Aliases: --list-main-class
, --list-main-classes
, --main-class-list
List main classes available in the current context
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Aliases: --markdown
, --md
Enable markdown support.
Available in commands:
Aliases: -o
Set the destination path
Aliases: -f
Overwrite the destination file, if it exists
Generate a library JAR rather than an executable JAR
Aliases: --sources
, --src
Generate a source JAR rather than an executable JAR
Aliases: --javadoc
, --scaladoc
Generate a scaladoc JAR rather than an executable JAR
Generate an assembly JAR
For assembly JAR, whether to add a bash / bat preamble
[Internal] For assembly JAR, whether to specify a main class in the JAR manifest
[Internal] Generate an assembly JAR for Spark (assembly that doesn't contain Spark, nor any of its dependencies)
Package standalone JARs
Build Debian package, available only on Linux
Build dmg package, available only on macOS
Build rpm package, available only on Linux
Build msi package, available only on Windows
Build pkg package, available only on macOS
Build Docker image
[Internal] Exclude modules and their transitive dependencies from the JAR to be packaged
Aliases: --default-scaladoc-opts
Use default scaladoc options
Aliases: --graal
Build GraalVM native image
Available in commands:
Set the version of the generated package
Path to application logo in PNG format, it will be used to generate icon and banner/dialog in msi installer
Set launcher app name, which will be linked to the PATH
Aliases: -m
This should contain names and email addresses of co-maintainers of the package
The list of Debian package that this package is not compatible with
The list of Debian packages that this package depends on
Architectures that are supported by the repository (default: all)
This field represents how important it is that the user have the package installed
This field specifies an application area into which the package has been classified
CF Bundle Identifier
Licenses that are supported by the repository (list of licenses: https://spdx.org/licenses/)
The number of times this version of the software was released (default: 1)
Architectures that are supported by the repository (default: noarch)
Path to the license file
Name of product (default: Scala packager)
Text that will be displayed on the exit dialog
Suppress Wix ICE validation (required for users that are neither interactive, not local administrators)
Path to extra WIX configuration content
Aliases: --64
Whether a 64-bit executable is being packaged
WIX installer version
The GUID to identify that the windows package can be upgraded.
Building the container from base image
The image registry; if empty, it will use the default registry
The image repository
The image tag; the default tag is latest
Allows to override the executable used to run the application in docker, otherwise it defaults to sh for the JVM platform and node for the JS platform
GraalVM Java major version to use to build GraalVM native images (17 by default)
GraalVM version to use to build GraalVM native images (22.3.1 by default)
JVM id of GraalVM distribution to build GraalVM native images (like "graalvm-java17:22.0.0")
Pass args to GraalVM
Available in commands:
pgp pull
, pgp push
, publish setup
Key server to push / pull keys from
Available in commands:
add-path
, bloop
, bloop exit
, bloop output
, bloop start
, bsp
, clean
, compile
, config
, default-file
, dependency-update
, directories
, doc
, export
, fix
, fmt
, format
, scalafmt
, help
, install completions
, install-completions
, install-home
, new
, package
, pgp pull
, pgp push
, publish
, publish local
, publish setup
, repl
, console
, run
, github secret create
, gh secret create
, github secret list
, gh secret list
, setup-ide
, shebang
, test
, uninstall
, uninstall completions
, uninstall-completions
, update
, version
Allows to use restricted & experimental features
Available in commands:
[Internal] Directory where temporary files for publishing should be written
[Internal] Scala version suffix to append to the module name, like "_2.13" or "_3"
[Internal] Scala platform suffix to append to the module name, like "_sjs1" or "_native0.4"
Whether to build and publish source JARs
Aliases: --javadoc
, --scaladoc
Whether to build and publish doc JARs
Aliases: -K
ID of the GPG key to use to sign artifacts
Method to use to sign artifacts
Aliases: -G
, --gpg-opt
gpg command-line options
Set Ivy 2 home directory
[Internal]
Proceed as if publishing, but do not upload / write artifacts to the remote repository
[Internal]
[Internal]
Available in commands:
publish
, publish local
, publish setup
Organization to publish artifacts under
Name to publish artifacts as
Final name to publish artifacts as, including Scala version and platform suffixes if any
URL to put in publishing metadata
License to put in publishing metadata
VCS information to put in publishing metadata
Description to put in publishing metadata
Developer(s) to add in publishing metadata, like "alex|Alex|https://alex.info" or "alex|Alex|https://alex.info|alex@alex.me"
Secret key to use to sign artifacts with Bouncy Castle
Aliases: --secret-key-pass
Password of secret key to use to sign artifacts with Bouncy Castle
Use or setup publish parameters meant to be used on continuous integration
Available in commands:
Aliases: -R
, --publish-repo
Repository to publish to
User to use with publishing repository
Password to use with publishing repository
Realm to use when passing credentials to publishing repository
Available in commands:
Public key to use to verify artifacts (to be uploaded to a key server)
Check if some options for publishing are missing, and exit with non-zero return code if that's the case
GitHub token to use to upload secrets to GitHub - password encoded
Generate a random key pair for publishing, with a secret key protected by a random password
When generating a random key pair, the mail to associate to it
The option groups to check - can be "all", or a comma-separated list of "core", "signing", "repo", "extra"
Whether to check if a GitHub workflow already exists (one for publishing is written if none is found)
Whether to check if a .gitignore file already exists (one is written if none is found)
Dummy mode - don't upload any secret to GitHub
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Set Java options so that Python can be loaded
Aliases: --py
Enable Python support via ScalaPy
Aliases: --scalapy-version
Set ScalaPy version (0.5.3 by default)
Available in commands:
Aliases: -A
, --amm
Use Ammonite (instead of the default Scala REPL)
Aliases: --ammonite-ver
Set the Ammonite version (3.0.0-2-6342755f by default)
Aliases: -a
[Internal] Provide arguments for ammonite repl
[Internal] Don't actually run the REPL, just fetch it
Available in commands:
Aliases: --spark
[Internal] Run as a Spark job, using the spark-submit command
Aliases: --submit-arg
[Internal] Spark-submit arguments
Aliases: --spark-standalone
Run as a Spark job, using a vanilla Spark distribution downloaded by Scala CLI
Aliases: --hadoop
Run as a Hadoop job, using the "hadoop jar" command
Print the command that would have been run (one argument per line), rather than running it
Temporary / working directory where to write generated launchers
[Internal] Run Java commands using a manifest-based class path (shortens command length)
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Enable Scala.js. To show more options for Scala.js pass --help-js
The Scala.js version (1.17.0 by default).
The Scala.js mode, for fastLinkJS
use one of [dev
, fastLinkJS
or fast
], for fullLinkJS
use one of [release
, fullLinkJS
, full
]
[Internal]
Disable optimalisation for Scala.js, overrides --js-mode
The Scala.js module kind: commonjs/common, esmodule/es, nomodule/none
Emit source maps
Set the destination path of source maps
A file relative to the root directory containing import maps for ES module imports
Enable jsdom
Emit WASM
A header that will be added at the top of generated .js files
Primitive Longs may be compiled as primitive JavaScript bigints
Avoid class'es when using functions and prototypes has the same observable semantics.
Avoid lets and consts when using vars has the same observable semantics.
The Scala.js module split style: fewestmodules, smallestmodules, smallmodulesfor
Create as many small modules as possible for the classes in the passed packages and their subpackages.
The Scala.js ECMA Script version: es5_1, es2015, es2016, es2017, es2018, es2019, es2020, es2021
[Internal] Path to the Scala.js linker
[Internal] Scala.js CLI version to use for linking (1.17.0.1 by default).
[Internal] Scala.js CLI Java options
[Internal] Whether to run the Scala.js CLI on the JVM or using a native executable
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Enable Scala Native. To show more options for Scala Native pass --help-native
Set the Scala Native version (0.5.5 by default).
Set Scala Native compilation mode
Link-time optimisation mode
Set the Scala Native garbage collector
Path to the Clang command
Path to the Clang++ command
Extra options passed to clang
verbatim during linking
[Internal] Use default linking settings
List of compile options
[Internal] Use default compile options
Build target type
Embed resources into the Scala Native binary (can be read with the Java resources API)
Enable/disable Scala Native multithreading support
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
File with scalac options.
Aliases: -O
, --scala-opt
, --scala-option
Add a scalac
option. Note that options starting with -g
, -language
, -opt
, -P
, -target
, -V
, -W
, -X
, and -Y
are assumed to be Scala compiler options and don't require to be passed after -O
or --scalac-option
.
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Aliases: --help-scalac
Show help for scalac. This is an alias for --scalac-option -help
Aliases: --verbose-scalac
Turn verbosity on for scalac. This is an alias for --scalac-option -verbose
Available in commands:
Aliases: --test-scope
, --with-test
, --with-test-scope
Include test scope
Available in commands:
github secret create
, gh secret create
, github secret list
, gh secret list
Aliases: --repo
Available in commands:
github secret create
, gh secret create
Aliases: --pub-key
Aliases: -n
[Internal]
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Aliases: -S
, --scala
Set the Scala version (3.5.2 by default)
Aliases: -B
, --scala-bin
, --scala-binary
[Internal] Set the Scala binary version
Aliases: --class
, --class-path
, --classes
, -classpath
, --classpath
, -cp
, --extra-class
, --extra-class-path
, --extra-classes
, --extra-jar
, --jar
, --jars
Add extra JARs and compiled classes to the class path
Aliases: --compile-only-jar
, --compile-only-jars
, --extra-compile-only-jar
Add extra JARs in the compilaion class path. Mainly using to run code in managed environments like Spark not to include certain depenencies on runtime ClassPath.
Aliases: --extra-source-jar
, --source-jar
, --source-jars
Add extra source JARs
Aliases: --resource-dir
Add a resource directory
[Internal] Put project in class paths as a JAR rather than as a byte code directory
Specify platform
[Internal]
Aliases: -with-compiler
, --with-scala-compiler
Allows to include the Scala compiler artifacts on the classpath.
[Internal] Do not add dependency to Scala Standard library. This is useful, when Scala CLI works with pure Java projects.
[Internal] Should include Scala CLI runner on the runtime ClassPath. Runner is added by default for application running on JVM using standard Scala versions. Runner is used to make stack traces more readable in case of application failure.
[Internal]
Aliases: --compile-out
, --compile-output
, -d
, --destination
, --output-directory
Copy compilation results to output directory using either relative or absolute path
Aliases: --toolkit
Add toolkit to classPath (not supported in Scala 2.12), 'default' version for Scala toolkit: 0.5.0, 'default' version for typelevel toolkit: 0.1.27
Exclude sources
Force object wrapper for scripts
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Allows to execute a passed string as a Scala script
Aliases: -e
, --execute-sc
, --execute-scala-script
[Internal]
A synonym to --script-snippet, which defaults the sub-command to run
when no sub-command is passed explicitly
Allows to execute a passed string as Scala code
[Internal]
A synonym to --scala-snippet, which defaults the sub-command to run
when no sub-command is passed explicitly
Allows to execute a passed string as Java code
A synonym to --scala-snippet, which defaults the sub-command to run
when no sub-command is passed explicitly
Aliases: --md-snippet
Allows to execute a passed string as Markdown code
Aliases: --execute-md
[Internal]
A synonym to --markdown-snippet, which defaults the sub-command to run
when no sub-command is passed explicitly
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Aliases: --build-info
Generate BuildInfo for project
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Aliases: --suppress-warning-directives-in-multiple-files
Suppress warnings about using directives in multiple files
Suppress warnings about outdated dependencies in project
Available in commands:
Name of the test framework's runner class to use while running tests
Fail if no test suites were run
Specify a glob pattern to filter the tests suite to be run.
Available in commands:
Aliases: -f
Force scala-cli uninstall
[Internal] Don't clear Scala CLI cache
[Internal] Binary name
[Internal] Binary directory
Available in commands:
uninstall
, uninstall completions
, uninstall-completions
Path to *rc
file, defaults to .bashrc
or .zshrc
depending on shell
[Internal] Custom banner in comment placed in rc file
[Internal] Custom completions name
Available in commands:
[Internal] Binary name
[Internal] Binary directory
Aliases: -f
Force update Scala CLI if it is outdated
[Internal]
[Internal] A github token used to access GitHub. Not needed in most cases.
Available in commands:
add-path
, bloop
, bloop exit
, bloop output
, bloop start
, bsp
, clean
, compile
, config
, default-file
, dependency-update
, directories
, doc
, export
, fix
, fmt
, format
, scalafmt
, help
, install completions
, install-completions
, install-home
, new
, package
, pgp pull
, pgp push
, publish
, publish local
, publish setup
, repl
, console
, run
, github secret create
, gh secret create
, github secret list
, gh secret list
, setup-ide
, shebang
, test
, uninstall
, uninstall completions
, uninstall-completions
, update
, version
Aliases: -v
, -verbose
Increase verbosity (can be specified multiple times)
Aliases: -i
Interactive mode
Enable actionable diagnostics
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, publish setup
, repl
, console
, run
, setup-ide
, shebang
, test
, version
Method used to compute the project version
Set the project version
Aliases: --cli
Show plain Scala CLI version only
Aliases: --scala
Show plain Scala version only
[Internal] A github token used to access GitHub. Not needed in most cases.
Don't check for the newest available Scala CLI version upstream
Available in commands:
compile
, package
, publish
, publish local
, repl
, console
, run
, shebang
, test
Aliases: -w
Run the application in the background, automatically wake the thread and re-run if sources have been changed
Aliases: --revolver
Run the application in the background, automatically kill the process and restart if sources have been changed
Available in commands:
[Internal]
Available in commands:
Aliases: --dir
, --working-dir
[Internal]
Available in commands:
Aliases: -f
[Internal]
Available in commands:
[Internal] Command-line options JSON file
[Internal] Command-line launcher options JSON file
Aliases: --envs-file
[Internal] Command-line options environment variables file
Available in commands:
Aliases: --bsp-dir
[Internal] Custom BSP configuration location
Aliases: --name
[Internal] Name of BSP
Available in commands:
[Internal] Write result to files rather than to stdout
[Internal] List available default files
[Internal] List available default file ids
Aliases: -f
[Internal] Force overwriting destination files
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, publish setup
, repl
, console
, run
, setup-ide
, shebang
, test
[Internal]
[Internal]
Available in commands:
[Internal]
Aliases: -f
[Internal] Overwrite if it exists
[Internal] Binary name
[Internal]
Print the update to env
variable
[Internal] Binary directory
Available in commands:
[Internal]
[Internal]
[Internal]
[Internal]
[Internal]
[Internal]
[Internal]
Available in commands:
[Internal]
Aliases: -v
[Internal]
Available in commands:
[Internal] Whether to exit with code 0 if no key is passed
Available in commands:
Aliases: -f
[Internal] Try to push the key even if Scala CLI thinks it's not a public key
[Internal] Whether to exit with code 0 if no key is passed
Available in commands:
config
, pgp push
, publish
, publish local
, publish setup
[Internal] scala-cli-signing version when running externally (0.2.4 by default)
[Internal] Pass arguments to the Java command when running scala-cli-singing externally on JVM
[Internal] When running Scala CLI on the JVM, force running scala-cli-singing externally
[Internal] When running Scala CLI on the JVM, force running scala-cli-singing using a native launcher or a JVM launcher
Available in commands:
[Internal]
[Internal]
Aliases: -f
[Internal]
[Internal]
Available in commands:
[Internal]
Available in commands:
[Internal] Connection timeout, in seconds.
[Internal] How many times to retry establishing the connection on timeout.
[Internal] Waiting for response timeout, in seconds.
[Internal] How many times to retry the staging repository operations on failure.
[Internal] Time to wait between staging repository operation retries, in milliseconds.
Available in commands:
bsp
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, repl
, console
, run
, setup-ide
, shebang
, test
Aliases: --semanticdb
[Internal] Generate SemanticDBs
Aliases: --semanticdb-target-root
, --semanticdb-targetroot
[Internal] SemanticDB target root (default to the compiled classes destination directory)
Aliases: --semanticdb-source-root
, --semanticdb-sourceroot
[Internal] SemanticDB source root (default to the project root directory)
Available in commands:
[Internal]
Available in commands:
bsp
, clean
, compile
, dependency-update
, doc
, export
, fix
, fmt
, format
, scalafmt
, package
, publish
, publish local
, publish setup
, repl
, console
, run
, setup-ide
, shebang
, test
[Internal] Directory where .scala-build is written