Install

Via Homebrew

On Linux, macOS and WSL, you can install Pen through Homebrew.

  1. Install Homebrew.

  2. Run the following command in your terminal.

    brew install pen-lang/pen/pen
    

Now, you should be able to run a pen command in your shell.

pen --version

Building from source

You can also build Pen from source on your local machine.

  1. Install the following software using a package manager of your choice (e.g. apt for Ubuntu and Homebrew for macOS.)

  2. Clone the Git repository.

    git clone https://github.com/pen-lang/pen
    
  3. Run a cargo command in the repository's directory.

    cargo install --path cmd/pen
    
  4. Set a PEN_ROOT environment variable to the directory.

    export PEN_ROOT=<directory>
    

Now, you are ready to use the pen command built manually.