Sqitch

sqitch-target

Name

sqitch-target - Manage target database configuration

Synopsis

sqitch target
sqitch target [-v | --verbose]
sqitch target add <name> <uri> [-s <property>=<value> ...]
sqitch target alter <name> [-s <property>=<value> ...]
sqitch target remove <name>
sqitch target rename <old> <new>
sqitch target show <name> [...]

Description

Manage the set of databases (“targets”) you deploy to. Each target may have a number of properties:

Each of these overrides the corresponding engine-specific configuration managed by engine.

Options

Actions

With no arguments, shows a list of existing targets. Several actions are available to perform operations on the targets.

add

Add a target named <name> for the database at <uri>. The --set option specifies target-specific properties. A new plan file and new script script directories will be created if they don’t already exist.

alter

Alter target named <name>. The --set option specifies engine-specific properties to set. New script script directories will be created if they don’t already exist.

remove, rm

Remove the target named <name>. The plan file and script directories will not be affected.

rename

Rename the target named <old> to <new>.

show

Gives some information about the target <name>, including the associated properties. Specify multiple target names to see information for each.

Configuration Variables

The targets are stored in the configuration file, but the command itself currently relies on no configuration variables.

Sqitch

Part of the sqitch suite.