Command Line Interface
The rek CLI is your main tool for managing projects, running code, and handling dependencies.
Running Code
To execute a REK script, use the run command:
rek run filename.rek
If you don't provide a filename, REK will attempt to run main.rek by default.
Project Management
Initialize a Project
Create a new project with a kloset.toml configuration file:
rek init --name my-project
Managing Dependencies
REK uses Kloset as its package manager. You can add or remove dependencies easily.
Add a dependency:
rek add http
Remove a dependency:
rek remove http
Install dependencies:
If you clone a project, install all dependencies listed in kloset.toml:
rek install
Other Commands
rek --version: Display the current version.rek --help: Show help information for commands.