Skip to content

Getting started

Choose a JavaScript, TypeScript, Python, Java, Kotlin or WebAssembly quickstart, or bring an existing project to Elide.

On this page

Choose the language you want to use. Each quickstart takes you from installation to a running program and its next steps.

Install

Install Elide for your operating system, then open a new terminal and check:

Terminal
bash
elide --version

If the shell cannot find elide, follow Verify the install. Python also needs the Python component.

Run a file

LanguageStart hereYou’ll do
JavaScript or TypeScriptJavaScript and TypeScript quickstartRun a file, import an npm package and run a test.
PythonPython quickstartAdd Python, run a standard-library program and test it with unittest.
Java or KotlinJava and Kotlin quickstartRun source, create a project, resolve Maven dependencies and run JUnit tests.
WebAssemblyWebAssembly guideRun a WASI module or load a module from JavaScript.

Executable scripts

To run a file directly from your shell, follow Executable scripts.

Create a project

The language quickstarts above show the files you need. For scripts, workspaces and a shared elide.pkl manifest, continue to Project setup.

Use an existing project

Add a dependency

Choose the command for your ecosystem: npm, Maven, or Python packages. Plain elide install installs Maven dependencies; npm requires elide install --ecosystems=npm.

Test

Use elide test for JavaScript and TypeScript or JUnit. For Python, run unittest or pytest as a module; elide test does not discover Python tests.

Build

JavaScript, TypeScript and Python source files run directly. For a project with build tasks, elide build writes outputs and build state to .dev/. See Build tasks and JVM packaging.

Next steps

Was this page helpful?