Command Options
Many of the options are generally applicable to many commands. Some options have both a short form and a long form – for example, the long form of the assignContexts option is --assignContexts (two hyphens), but you can also use the short form -ac (one hyphen).
To get help on general options, run this command:
hammer help optionsOptions are used in a hammer command:
usage: hammer [<hammer-option>] <command-name> <option>
If option arguments contain spaces, they must be enclosed in quotes:
hammer modifyChangeSet --action=ADD label=history --searchLabels="(cliLabel1 AND cliLabel2) AND (dbdefLabel1 OR dbdefLabel2 OR dbdefLabel3)"
Option | <arg> | Description |
|---|---|---|
| Action to take, one of:
| Specifies the action to take in the modifyChangeSet command. |
| Complex context expression. | Assign the given contexts to changesets generated by diffChangelog command. Accepts a complex context expression. |
| Comma-separated list of labels | Assign the given labels to changesets generated by diffChangelog command. Accepts a comma separated list of labels. |
| File name | Assign metadata file name. |
| Label name | Label name for assign metadata. |
| Context name | Context to use for operation |
| Java property assignment | Set a Java system property |
| One of:
| Deployment threshold setting <arg> is one of stopOnError, stopOnWarn, alwaysDeploy default: stopOnError |
| One of:
| Overrides the
|
| true | false | Use external stored logic |
| List of stored logic objects | List of stored logic objects to exclude from a snapshot. |
| none | When used with deploy, forces deploy even if not all operations can be rolled back. When used with versionChangeLog, forces XML |
| One of:
| Format of the database snapshot. |
| none | Generate SQL for changes |
| none | Generate rollback SQL for changes |
|
| Include storage options |
| One of:
| Validate stored logic |
| List of jar files or directory containing jar files | Driver jars or directory containing jars. |
| Directory | Absolute or relative path to directory location for logs & reports for the operation DEPRECATED: Please use the -r --report option instead |
| Comma-separated list of labels | Label to use for operation
|
| Expression | Label expression to use for change set lookup Note that label expressions must be enclosed in quotes when used as CLI parameter options. For example, --lookupChangesets="(cliLabel1 AND cliLabel2) AND (dbdefLabel1 OR dbdefLabel2 OR dbdefLabel3)" |
| Number | Controls the number of changesets listed in each section of the statusDetails output. |
|
| Overrides the
|
| none | All script chucksums must match for change set lookup. |
| One of:
| Specifies how to combine the labels that are specified in the Step with the labels that are specified on the command line.
|
| One or a comma-separated list of context names | Specifies values to add or remove in the |
| N/A | Specifies the change to the
|
| One or a comma-separated list of labels. | Specifies values to add or remove in the |
| none | Do not prompt for input. |
| File or directory | Specifies the location of the output file. The semantics differ per command (diff, diffChangelog, snapshot) |
| Directory | Project directory |
| Pipeline name | Pipeline name to use for deploy, changelogSync, and rollback commands |
| none | Persist (save) snapshots of live databases during diff. |
| Password | Password for the database username ( |
| none | Send output to debug log only |
| Directory | Absolute or relative path to directory location for reports & log for the operation. |
| Password | Password for the reference database user name Required when the |
| User name | Reference database user name. Used only in two-credential commands (diff, diffChangeLog). Required when the |
| Checksum (number) | Script checksum to use for addLabels and removeLabels commands. |
| One or a comma-separated list of context names | Search the |
| One or a comma-separated list of changeset IDs | Search the |
|
| Search the Note: Searches for a false value also return changesets where the |
| One or a comma-separated list of labels or a label expression | Search the Note that label expressions must be enclosed in quotes when used as CLI parameter options. For example, --searchLabels="(cliLabel1 AND cliLabel2) AND (dbdefLabel1 OR dbdefLabel2 OR dbdefLabel3)" |
| One or a comma-separated list of filenames | Search the |
| One or a comma-separated list of file paths | Search the |
| One or a comma-separated list of versions | Search the |
| Comma-separated list of schema names | List of schemas to snapshot |
| One of:
| Specifies the scope of storage information used for all steps/dbdefs in the project. You must also specify that storage information be used for the step/dbdef using the following command:
|
| Password | Password for the target database user name. |
| User name | Target database user name. Required when the |
| User name | Database user name. Required when the Use -pw to specify the password for the database user. |
| none | Print version info. |