In SBT interactive mode I can prefix tasks with configuration names (scoped commands):
$ sbt
> compile
> Compile / compile
> Test / compile
I can also run tasks in batch mode (non-interactive mode)
$ sbt compile
but running
$ sbt Test / compile
gives an error
[info] Executing in batch mode. For better performance use sbt's shell
[error] Not a valid command: Test (similar: set, last, exit)
[error] Not a valid project ID: Test
[error] Expected ':'
[error] Expected '/'
[error] Not a valid key: Test (similar: test, testOnly, dist)
[error] Test
[error] ^
How do I run configuration-prefixed tasks in batch mode in SBT?