Skip to content

Latest commit

 

History

History
104 lines (68 loc) · 3.28 KB

sqitch-environment.pod

File metadata and controls

104 lines (68 loc) · 3.28 KB

Name

sqitch-environment - Environment variables recognized by Sqitch

Description

Sqitch supports a number of environment variables that affect its functionality. This document lists them all, along with brief descriptions of their purposes and pointers to relevant documentation.

SQITCH_CONFIG

Path to the project configuration file. Overrides the default, which is ./sqitch.conf. See sqitch-config for details.

SQITCH_USER_CONFIG

Path to the user's configuration file. Overrides the default, which is ./.sqitch/sqitch.conf. See sqitch-config for details.

SQITCH_SYSTEM_CONFIG

Path to the system's configuration file. Overrides the default, which is a file named sqitch.conf in the directory identified by sqitch --etc. See sqitch-config for details.

SQITCH_USER

Username to use when connecting to a database, for those database engines that support it. Defaults to the system username.

SQITCH_PASSWORD

Password to use when connecting to a database, for those database engines that support it. See sqitch-passwords for details.

SQITCH_USER_NAME

Full name of the current user. Used to identify the user adding a change to a plan file or deploying a change. Supersedes the <user.name> sqitch-config variable.

SQITCH_USER_EMAIL

Email address of the current user. Used to identify the user adding a change to a plan file or deploying a change. Supersedes the user.email sqitch-config variable.

SQITCH_ORIG_NAME

Full name of the original user. Intended for use by scripts that run Sqitch from another host, where the originating host user's identity should be passed to the execution host, such as this Docker script. This value will be used only when neither the $SQITCH_USER_NAME nor the user.name sqitch-config variable is set.

SQITCH_ORIG_EMAIL

Email address of the original user. Intended for use by scripts that run Sqitch on a separate host, where the originating host user's identity should be passed to the execution host, such as this Docker script. This value will be used only when neither the $SQITCH_USER_EMAIL nor the user.email sqitch-config variable is set.

SQITCH_EDITOR

The editor that Sqitch will launch when the user needs to edit some text (a change note, for example). If unset, the core.editor configuration variable will be used. If it's not set, $VISUAL or $EDITOR will be consulted (in that order). Finally, if none of these are set, Sqitch will invoke notepad.exe on Windows and vi elsewhere.

SQITCH_PAGER

The pager program that Sqitch will use when a command (like sqitch log) produces multi-page output. If unset, the core.pager configuration variable will be used. If this is also not set, the PAGER environment variable will be used. Finally, if none of these are set, Sqitch will attempt to find and use one of the commonly used pager programs like less and more.

See Also

Sqitch

Part of the sqitch suite.