Skip to main content

Default File ⚡️


The Default File is restricted and requires setting the --power option to be used. You can pass it explicitly or set it globally by running:

scala-cli config power true

The default-file sub-command provides sensible default content for files such as .gitignore or for GitHub actions workflows, for Scala CLI projects.

To list the available files, pass it --list:

$ scala-cli default-file --list

Get the content of a default file with

$ scala-cli default-file .gitignore

Optionally, write the content of one or more default files by passing --write:

$ scala-cli default-file --write .gitignore .github/workflows/ci.yml
Wrote .gitignore
Wrote .github/workflows/ci.yml