Learn full-stack web development using fastn in a week
Learn Now

Install fastn

Before you can use fastn you'll need to get it installed.

fastn is compatible with various operating systems, including Windows, MacOS, and Linux. Based on your machine and your choice of installation, you can select one of the following options:

For MacOS/Linux

ℹ️
Recommended
We recommend installing fastn using the installer script. You can do this by running the below command in your terminal. This is the preferred method.
Installer Script
source <(curl -fsSL https://fastn.com/install.sh)
Lang:
sh

For Windows

ℹ️
For Windows (Recommended)
We recommend you to install fastn through fastn installer: fastn.com/setup.exe. This is the preferred method as it only requires downloading the setup and installing it on your local system.

For Nix/NixOS

The fastn-stack/fastn is a Nix flake that you can use in various ways:
  • Directly run fastn without installing:
Run
nix run github:fastn-stack/fastn
Lang:
sh
  • Add it as an input in your Nix flake:
Flake usage
{
  description = "A very basic flake";

  inputs.fastn.url = "github:fastn-stack/fastn";

  outputs = { self, nixpkgs, fastn }:
  let
    system = "x86_64-linux";
    pkgs = import nixpkgs { inherit system; };
  in
  {
    devShells.${system}.default = pkgs.mkShell {
        name = "my-fastn-shell";
        buildInputs = [ fastn.defaultPackage.${system} ];
      };
  };
}
Lang:
nix