Star CLI
Introduction
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
.
Starcounter Version
The version of the current Starcounter installation is displayed with star --version
or the shorthand star -v
.
Starting Apps
Apps are started with star [app]
by specifying the path to the exe
file. For example:
Set Resource Directory
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 Blendable Web Apps, throw, ArgumentOutOfRangeException
when opening the app.
To solve this, specify the resource directory with the --resourcedir
option:
Read more about this on the page Static File Server.
Specify Database
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
.
Change App Name
To start an app with another name than the existing one, use the --name
option:
Stopping Apps
Apps are stopped with the --stop
option:
Read Starting and Stopping Apps for more information.
Last updated