Skip to main content

Default File

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