Requirements

Installation Methods

Install Morphir using platform-specific install scripts that download from NuGet:

Linux:

curl -fsSL https://raw.githubusercontent.com/finos/morphir-dotnet/main/scripts/install-linux.sh | bash

macOS:

curl -fsSL https://raw.githubusercontent.com/finos/morphir-dotnet/main/scripts/install-macos.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/finos/morphir-dotnet/main/scripts/install-windows.ps1 | iex

These scripts will:

Global Tool Installation

Install Morphir as a global .NET tool (requires .NET SDK):

dotnet tool install -g Morphir

Local Project Installation

Add Morphir to your project:

dotnet add package Morphir
dotnet add package Morphir.Core

Build from Source

git clone https://github.com/finos/morphir-dotnet.git
cd morphir-dotnet
dotnet build

Verify Installation

Check that Morphir is installed correctly:

morphir info

Troubleshooting

Command Not Found

If the morphir command is not found after installation:

  1. Ensure the .NET tools directory is in your PATH:

    export PATH="$PATH:$HOME/.dotnet/tools"
    
  2. Restart your terminal or run:

    source ~/.bashrc  # or ~/.zshrc
    

Version Conflicts

If you encounter version conflicts, check your global.json file and ensure you’re using the correct .NET SDK version.