Skip to content

Getting Started

You’ll get started with Heim by going through a few simple steps. Read on to find out how to get the Heim runtime going, and how to get started with using your own applications in Heim.


  1. Install any software required for working with the language or framework you are interested in.

    Heim currently supports working with C#, Python, JavaScript / TypeScript, Rust, C and Go .

    Read more about installing the respective requirements for the currently supported languages, and how to install the Heim tools in the Heim Installation documentation.


  2. Heim can be downloaded and installed in multiple ways. Depending on your operating system, Heim may be installed as an app, from an installer package, or by downloading an archive and unpacking it, and then running a script included in the package.

    We currently support installing Heim on Windows, macOS, and Linux.



  3. Assuming that Heim has been correctly installed, starting the Heim runtime is as easy as running the following simple command in a terminal or console window:

    heim start

    Alternatively, you may access the heim-runtime file directly, by typing the following command in a terminal or console window:

    heim-runtime


  4. There are two ways of getting started using applications in Heim. In broad strokes, the options are to either copy an existing application into Heim, or to create an application from a template.

    Click the tabs below to read more about how to start using applications in Heim.


    <OPTIONAL> Place valid application folder in Heim directory
    Section titled “<OPTIONAL> Place valid application folder in Heim directory”

    If you want to use an existing, valid application that has been created elsewhere, start by placing the application folder in the directory you want to mount the application from.

    In the examples to follow, we’ll assume that you are using windows, and that you place your application folder in the C:\heim-applications directory.


    To deploy your application, use the following command in a terminal or console window, while standing in the application folder you’ve chosen:

    Terminal window
    heim deploy


    Assuming that your application directory is C:\heim-applications and the application folder is a-new-api, you should be looking at something like this in your terminal window.

    Terminal window
    PS C:\heim-applications\a-new-api> heim deploy



  5. To successfully test and use an application in Heim, you need to have started the Heim runtime. You also need to deploy the application, which you can read about in the previous section about using applications.


    Assuming that everything is up and running, your application should now be accessible through the trigger path assigned to it when it was created.

    should you happen to be unaware of the path for a particular application, you can find it (and edit it) in the application.toml in the root folder for that application.


    The full path for an application will be something like:

    ${server-address}/${trigger-path}


    For instance, if you are running a local installation of Heim, and you start it on port 3000, a valid address for an application with the http trigger path my-api will be something like:

    127.0.0.1:3000/my-api

    From there, you’ll be able to access, and test any endpoints you’ve created for the application.


    Once you’ve worked with Heim for a while, you will no doubt have your own applications, perhaps stretching over multiple files, structured according to your own standards and requirements.

    However, during your first steps with Heim, you’ll likely download an example application, or create one from a template. You can read more about how to use an existing application, and how to create your own application from a template in the section about using applications, above.

    Read on for information about how to start working with one of our example applications, or an application created from a template.


    A basic Heim C# application, created from a template or copied from one of our examples, should be structured something like this:

    • Directory{application-name}
      • Directorywit
        • Directorydeps
        • world.wit
      • .gitignore
      • component.toml
      • application.toml
      • {application-name}.csproj
      • Program.cs

    • Edit the Program.cs file, if you want to change the source code of your application.
    • Edit the component.toml file, if you want to change your application component metadata, define environment variables, or alter your build configurations.
    • Edit the application.toml file, if you want to change your application definitions, set values to environment variables, or alter application triggers.

You can control everything Heim does through our CLI. When reading through the previous sections of this document, you’ve found out how to start the Heim runtime, all as how to deploy applications, and how to create applications from a template, all of which can be done through our CLI.

But the CLI can do so much more! Have a look at our CLI reference documentation, to find out what else the CLI is capable of.




To get going with heim, you need to go through a few simple steps:

  1. Install required software – you’ll likely need software for building and working with a programming language.

  2. Install Heim – you’ll need to install the Heim tools. There are different options for installing Heim, depending on your operating system.

  3. Start Heim runtime – the Heim runtime can be started with the CLI command heim start, or heim-runtime.

  4. Start using an application – you’ll need to create an application from a template, or deploy an existing application.

  5. Work with an application – edit your application source code, or test your application through its trigger path.