Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## UNRELEASED - CLI

- feat: Support `MODUS_HOME` environment variable [#639](https://github.com/hypermodeinc/modus/pull/639)

## UNRELEASED - Runtime

- fix: doc comments from object fields should be present in generated GraphQL schema [#630](https://github.com/hypermodeinc/modus/pull/630)
Expand Down
2 changes: 1 addition & 1 deletion cli/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Config
PACKAGE_ORG="@hypermode"
PACKAGE_NAME="modus-cli"
INSTALL_DIR="${MODUS_CLI:-"$HOME/.modus/cli"}"
INSTALL_DIR="${MODUS_CLI:-"${MODUS_HOME:-"$HOME/.modus"}/cli"}"
VERSION="latest"
INSTALLER_VERSION="0.1.2"

Expand Down
3 changes: 2 additions & 1 deletion cli/src/custom/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

import path from "node:path";
import os from "node:os";
import process from "node:process";

export const ModusHomeDir = path.join(os.homedir(), ".modus");
export const ModusHomeDir = process.env.MODUS_HOME || path.join(os.homedir(), ".modus");

export const MinNodeVersion = "22.0.0";
export const MinGoVersion = "1.23.0";
Expand Down
Loading