Launch sbt run with a specific port number
If you are using IntelliJ and using inbuild SBT Shell, then you can use the below command
run 8080
The server will be started in the mentioned port 8080
If I remember well, I think you have to add all the parameters between quotes. In you case:
sbt "run 9001"
When you run sbt
console it's enough to use run 9001
without any quotation marks.
When I set up the configuration on IntelliJ, I had to add quote.