Chapter 02
Install and run.
Set up the engine, verify the command-line interface and execute your first Block program.
Before you begin
The guided setup is designed for Windows. Ensure you can install applications and update the user or system PATH.
Use the guided installer
- 01
Download Block Setup
Get the self-contained installation package from the download center.
Download BlockSetup-v2.2.0.exe ↓ - 02
Choose an edition
Select Lite, Standard or Block+ according to the runtimes your project needs.
- 03
Complete environment setup
Allow the installer to place the engine and register the
blockcommand. Restart the terminal after setup.
Block+ may require additional native toolchains. Review the install summary before confirming changes.
Verify the command
Open a new Command Prompt or PowerShell window and run:
block --versionA successful installation reports the engine version and selected edition.
Block Language Engine v2.2.0 / Standard EditionVERIFIEDEssential commands
block script.blkExecute a Block program.
block --versionShow version and edition information.
block --helpDisplay usage and available commands.
block serve [port]Start the built-in HTTP server.
block configOpen interactive engine settings.
block-plus check script.blkpRun Block+ cross-language checks.
Run your first program
Create hello.blk and add two native runtime stages.
<py>
greeting = "Hello from Python"
numbers = [1, 2, 3, 4]
</py>
<js>
console.log(greeting);
console.log(numbers.map(value => value * 2));
</js>block hello.blk