Name
sqitch-status - Show the current deployment status of a database
Synopsis
sqitch status [options] [<database>]
Description
Displays information about the current deployment status of a database. The most recently deployed change information is displayed, as well as any related tags. If there are undeployed changes in the plan, they will be listed. Otherwise, a message will indicate that the database is up-to-date.
The <database> parameter specifies the database to which to connect,
and may also be specified as the --target option. It can be target name,
a URI, an engine name, or plan file path.
Options
-
-t -
--targetThe target database to which to connect. This option can be either a URI or the name of a target in the configuration.
-
--projectProject for which to retrieve the status. Defaults to the status of the current project, if a plan can be found.
-
--show-changesAlso display a list of deployed changes.
-
--show-tagsAlso display a list of applied tags.
-
--date-format -
--dateFormat to use for timestamps. Defaults to
iso. Allowed values:-
iso -
iso8601Shows timestamps in ISO-8601 format.
-
rfc -
rfc2822Show timestamps in RFC-2822 format.
-
full -
long -
medium -
shortShow timestamps in the specified format length, using the system locale’s
LC_TIMEcategory. -
rawShow timestamps in raw format, which is strict ISO-8601 in the UTC time zone.
-
strftime:$stringShow timestamps using an arbitrary
strftimepattern. See “strftime Paterns” in DateTime for comprehensive documentation of supported patterns. -
cldr:$stringShow timestamps using an arbitrary
cldrpattern. See “CLDR Paterns” in DateTime for comprehensive documentation of supported patterns.
-
-
--registrysqitch status --registry registryThe name of the Sqitch registry schema or database in which sqitch stores its own data.
-
--db-client -
--clientsqitch status --client /usr/local/pgsql/bin/psqlPath to the command-line client for the database engine. Defaults to a client in the current path named appropriately for the database engine.
-
-d -
--db-namesqitch status --db-name widgets sqitch status -d bricolageName of the database. In general, targets and URIs are preferred, but this option can be used to override the database name in a target.
-
-u -
--db-user -
--db-usernamesqitch status --db-username root sqitch status --db-user postgres sqitch status -u MomUser name to use when connecting to the database. Does not apply to all engines. In general, targets and URIs are preferred, but this option can be used to override the user name in a target.
-
-h -
--db-hostsqitch status --db-host db.example.com sqitch status -h appdb.example.netHost name to use when connecting to the database. Does not apply to all engines. In general, targets and URIs are preferred, but this option can be used to override the host name in a target.
-
-p -
--db-portsqitch status --db-port 7654 sqitch status -p 5431Port number to connect to. Does not apply to all engines. In general, targets and URIs are preferred, but this option can be used to override the port in a target.
-
--plan-file -
-fsqitch status --plan-file my.planPath to the deployment plan file. Overrides target, engine, and core configuration values. Defaults to
$top_dir/sqitch.plan.
Configuration Variables
-
status.show_changesBoolean value indicates whether or not to display changes in the output. Defaults to false.
-
status.show_tagsBoolean value indicates whether or not to display tags in the output. Defaults to false.
-
status.date_formatFormat to use for timestamps. Supports the same values as the
--date-formatoption.
Sqitch
Part of the sqitch suite.
