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.2.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.2 / Standard EditionVERIFIEDEssential commands
block script.blkExecute a Block program.
block --versionShow version and edition information.
block --helpDisplay usage and available commands.
block workspace showInspect project and workspace search roots.
block find [name]Find a script without scanning the entire drive.
block project runRun the entry declared by the nearest project manifest.
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.blkStop changing directories
For a project created with block ecosystem init, Block discovers main.blk from child directories. For several projects, set one workspace root:
block project root
block project run
block workspace set C:\BlockProjects
block workspace show
block find analyticsWhen more than one script matches, Block reports the candidates instead of choosing randomly. Use an absolute path for intentional disambiguation.