Skip to content

Quick Start

Get up and running with MAKI in just a few minutes.

  • Rust 1.80 or later (if building from source)
  • OR use pre-built binaries
Terminal window
cargo install maki

Verify the installation:

Terminal window
maki --version

Create a new FHIR Implementation Guide project:

Terminal window
maki init MyIG
cd MyIG

Or initialize configuration in an existing project:

Terminal window
cd your-fsh-project
maki config init

Build FSH files to FHIR resources (SUSHI-compatible):

Terminal window
maki build --progress

This compiles FSH from input/fsh/ to FHIR JSON in fsh-generated/.

Check your FSH files for issues:

Terminal window
maki lint input/fsh/

MAKI will show you any issues found:

error[correctness/duplicate-definition]: Duplicate profile definition
> 15 │ Profile: PatientProfile
│ ^^^^^^^^^^^^^^ Profile 'PatientProfile' is already defined
16 │ * name 1..1 MS
i First defined at line 8

Format your FSH files for consistent style:

Terminal window
maki fmt input/fsh/

The formatter will:

  • Normalize spacing around : and =
  • Align rules for better readability
  • Preserve all comments and blank lines
  • Maintain consistent indentation

You can also check formatting without modifying files:

Terminal window
maki fmt --check input/fsh/

Many issues can be fixed automatically:

Terminal window
maki lint --write input/fsh/

MAKI will apply safe fixes and report what was changed.

Convert existing FHIR resources back to FSH:

Terminal window
maki gofsh ./fsh-generated -o ./converted-fsh --progress

Run linter and formatter before building:

Terminal window
maki build --lint --format --progress

Treat warnings as errors (useful for CI):

Terminal window
maki build --lint --strict

Clean output and rebuild from scratch:

Terminal window
maki build --clean --progress
Terminal window
# Build FSH to FHIR
maki build --progress
# Lint with automatic fixes
maki lint --write input/fsh/
# Format FSH files
maki fmt input/fsh/
# Check formatting (useful for CI)
maki fmt --check input/fsh/
# Convert FHIR to FSH
maki gofsh ./fsh-generated -o ./output
# List all available rules
maki rules
# Get help
maki --help
maki build --help
  • Run maki --help for command-line help
  • Run maki <command> --help for command-specific help
  • Check the Troubleshooting Guide for common issues