Getting Started
Follow these steps to get Bell up and running on your machine.
1. Install the CLI
The Bell CLI is the core engine used to execute .bel files. You can install it globally via npm:
bash
npm install -g bell-langVerify the installation:
bash
bell --version2. Install the VSCode Extension
To get the best experience with syntax highlighting and integrated execution, install the Bell extension from the VSCode Marketplace.
- Open VSCode.
- Go to the Extensions view (
Ctrl+Shift+X). - Search for "Bell".
- Click Install.
3. Your First Bell File
Create a new file named hello.bel and add the following content:
bel
url "https://httpbin.org/get"
param userId "12345"
GET
log response.body.user.name4. Run it
Via CLI
Open your terminal and run:
bash
bell run hello.belSee the CLI Guide for more detailed usage.
Via VSCode
- Open
hello.bel. - Click the Play button in the top-right corner of the editor.
- The results will appear in the integrated terminal.
