modulecmd¶
SYNOPSIS¶
modulecmd shell [switches] [sub-command [sub-command-args]]
DESCRIPTION¶
The modulecmd command is a generic wrapper pointing to Modules execution engine modulecmd.tcl.
The modulecmd.tcl command is the low-level execution engine of the Environment Modules system. It is responsible for evaluating modulefile logic and emitting shell-specific commands that modify the user's environment.
Unlike the user-facing module command, modulecmd.tcl does not directly alter the environment. Instead, it writes shell code to standard output, which must be evaluated by the calling shell.
The module shell function or wrapper script invokes modulecmd.tcl internally and evaluates its output to apply environment changes.
The following shells are supported: sh, csh, tcsh, bash, ksh, zsh, fish, cmd, pwsh, python, perl, ruby, tcl, cmake, r and lisp.
See the Modulecmd startup, Command line switches and Module Sub-Commands sections in the module man page.
Direct invocation of modulecmd is primarily intended for debugging and advanced usage. End users should normally use the module command instead.
EXIT STATUS¶
modulecmd exits with 0 on successful execution. Otherwise 1
is returned.
ENVIRONMENT¶
See the ENVIRONMENT section in the module man page.
FILES¶
SEE ALSO¶
envml, ml, module, modulefile