v0.0.0 is available. Check it out now 🚀
docs

Quick Start

Installation

To get started with Devalang, you need to install the CLI tool. You can do this using package managers :

Using NPM:

Using Cargo:

Create a new project

You can create a new project or initialize an existing one using the Devalang CLI tool.

Run the following command in your terminal at the desired directory:

You can also use --name and --template options to specify directly the project name and template:

Write your first script

Once you have created your project, you can start writing your first Devalang script.

Main entry file must be named index and have the .deva extension.

Open the index.deva file in your project directory and add the following code:

unknown.txt

You can also create a configuration file to set global parameters for your project.

This is optional but recommended for better organization (especially to evite typing the same arguments at each command).

Create a file named .devalang in your project directory and add the following content:

unknown.txt

If you want to override config, you can use the --no-config argument when running commands.

Run your script

To run your Devalang script, you can use the CLI tool.

Navigate to your project directory in the terminal and run:

If you want to re-run the script after file change:

If you want to re-run the script after file change AND repeat it indefinitely (useful for live coding):

You cannot use --watch and --repeat options at the same time.

Next steps

Congratulations 🎉 You have successfully set up your first Devalang project and run a simple script.