This section covers some aspects of Scala CLI that apply across various commands. We have divided the available guides into categories, so that it's easier to find a relevant topic.
For concrete recipes that show you how to use Scala CLI in particular situations, refer to the cookbooks section.
These few guides are a good starting point when learning how to use Scala CLI.
- Configuration - learn how to configure various options, and what configuration styles are best for each use case
- Dependencies - learn how to define dependencies within a Scala CLI project.
- Updating dependencies - learn about how to keep your dependencies up-to-date automatically with Scala CLI.
usingdirectives - Scala CLI’s syntax that lets you store configuration information directly in source files
- IDE support - how to import and use Scala CLI-based projects in your favorite IDE.
- Migrating from the old
scalarunner - an in-depth look at all the differences between Scala CLI and the old
Guides on how to get started with Scala scripting with Scala CLI.
- Scripting guide - covers how Scala CLI allows for powerful scripting with Scala.
- Shebang - explains how to use the
shebangsub-command in a script's shebang header.
Less introductory guides on specific topics.
- Scala.js and Scala Native - learn how Scala CLI supports these non-JVM platforms
- Piping - covers how Scala CLI allows to work with piped sources.
- Snippets - learn how to use command line snippets with Scala CLI.
- Internals - learn about how Scala CLI works under the hood.
--power mode guides
- SBT and Mill export - learn how to convert your Scala CLI project into an SBT or Mill project (when you need a more powerful build tool).
- proxies - learn how to configure Scala CLI to work with proxies.
- Markdown - learn how to work with