scalasbtgiter8

running 'sbt new' noninteractively


sbt new by default prompts the user to fill in various values.

Is there a way to accept the defaults noninteractively, or specify values on the command-line?


Solution

  • Yes, you can pass parameters with flags. For instance this is how to call the scalafix template non-interactively.

    sbt new scalacenter/scalafix.g8 --rewrite="reponame" --version="v1.0"