Star CLI
Last updated
Last updated
The star
command line interface (CLI) handles tasks in a database. This page covers the most important commands. The rest of the commands can be found with star --help
or star --helpextended
.
The version of the current Starcounter installation is displayed with star --version
or the shorthand star -v
.
Apps are started with star [app]
by specifying the path to the exe
file. For example:
When starting an app, Starcounter will fail to find the application resource directory (wwwroot
) if the current working directory is not the root of the project or the same directory as the resource directory. This will, for apps that use the Starcounter web stack presented in , throw, ArgumentOutOfRangeException
when opening the app.
To solve this, specify the resource directory with the --resourcedir
option:
By default, apps are started in the default
database. To start apps in another database, use the --database
option:
The shorthand notation is -d
: star -d=myDatabase HelloWorld
.
To start an app with another name than the existing one, use the --name
option:
Apps are stopped with the --stop
option:
Read more about this on the page .
Read for more information.