Install Node.js (Required)
Starlight uses npm, which comes with Node.js.
- Download Node.js from https://nodejs.org
- Install the LTS version
- Restart your computer
Verify installation:
node -v npm -v
Create a Project Folder
Create a folder on C: or D: drive.
C:\starlight
Open Command Prompt or PowerShell inside this folder.
Install Starlight CLI
npm install -g starlight-cli
Verify installation:
starlight --help
Fix PowerShell Execution Policy
If PowerShell blocks the command:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
This change is temporary and applies only to the current session.
Create Your First Program
sldeploy "Hello, Starlight!";
starlight program.sl
Running Programs
starlight file.sl
Text Editor (Optional)
You may use Visual Studio Code, but it is not required. You can also write Starlight programs using Notepad or any text editor.
(Optional) Visual Studio Code
https://code.visualstudio.com/Install Starlight VS Code Extension
Download the extension:
starlight-0.0.1.vsix
Place the downloaded .vsix file into your project folder
(e.g. C:\starlight), then run:
code --install-extension starlight-0.0.1.vsix
Syntax highlighting is now enabled for
.sl files in VS Code.
Ready to Build
You are now ready to build programs with the Starlight Programming Language.