Skip to main content

Environment Variables

Environment variables that affect SCM behavior.

Configuration

VariableDescriptionDefault
SCM_VERBOSEEnable verbose logging0 (disabled)
SCM_VERBOSE=1 scm run -p developer "help"

Editor

VariableDescription
VISUALPreferred editor for editing content
EDITORFallback editor if VISUAL is not set

SCM checks VISUAL first, then EDITOR. Used by commands like:

scm bundle fragment edit my-bundle coding-standards
scm bundle prompt edit my-bundle review

Template Variables

These are available within fragment templates (not shell environment):

VariableDescription
SCM_ROOTProject root directory (parent of .scm)
SCM_DIRFull path to .scm directory

See Templating for usage.