How to install Metanorma

To be able to build Metanorma documents of any flavor, you need to have the metanorma-cli Ruby gem installed. To simplify installation of the gem and its dependencies, following installation methods are currently supported.

Full manual

Assuming you know what you’re doing, you can install Metanorma CLI gem by hand. You will have to take care of dependencies: an appropriate Ruby version, plus other software depending on the end documents you’re building.

Refer to Metanorma CLI installation docs for more.

Docker setup

This setup method works for all platforms that support the Docker container framework.


This method is the recommended way of getting Metanorma installed, although for certain reasons (such as performance) that you may wish to setup the components directly on your machine.

  1. Pull the container:

    docker pull ribose/metanorma
  2. Specify the :local-cache-only: AsciiDoc attribute in document header to speed up rendering (optional)

  3. To render the document into HTML, Word and XML, execute from within the directory containing the Metanorma document (replacing {my-document-file} with your actual document’s filename):

    docker run -v "$(pwd)":/metanorma/ -w /metanorma ribose/metanorma "metanorma -t iso -x html,doc,xml {my-document-file}"

See metanorma-docker for more information.


Using Homebrew

brew tap riboseinc/metanorma
brew install metanorma

This uses Metanorma’s Homebrew formula. To install using the HEAD development version of the formula, run:

brew install --HEAD

All-in-one script

Run the following for an automatic install that would prepare a fresh system to work with Metanorma.

This installs not just the Metanorma components, but also prerequisites such as Homebrew and basic tools like Sublime Text.

This should take less than 15 minutes depending on your machine and Internet connection:

bash <(curl -s


Linux setup uses all-in-one script. You need to have curl installed beforehand.

See more in metanorma-linux-setup repository.


sudo bash -c "curl -L | bash"
curl -L | bash


sudo bash -c "curl -L | bash"
curl -L | bash


Using Chocolatey

Execute the following:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(''))
cinst msys2 --params "/NoUpdate" -y # install msys2 without system update
cinst metanorma -y

Windows encoding in cmd.exe usually not UTF-8, so to make it UTF-8 please run chcp 65001. This workaround critical when you need work with LaTeXML

Docker installation shortcut

Run this command in your cmd.exe or PowerShell to install the Metanorma Docker container and all prerequisites (see Docker setup):

bitsadmin /transfer get %cd%\install.bat & .\install.bat

Installing gems separately

See Metanorma CLI docs on how to install that gem on its own, be sure to note the dependencies.