running 'sbt new' noninteractively

141 views Asked by At

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?

1

There are 1 answers

0
Gabriele Petronella On BEST ANSWER

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"