add (3)
Attempts to add a new system to the selected project(s) inside of the vault.
usage: cmri system add <--origin origin> [<--name name>] [<--version version>] [<--revision-date revision_date>]
Please note that this command is not transactional across projects. In the event that multiple projects are selected, and addition of a system fails to a single project, this command will immediately stop work and fail. CodeMRI will make no attempt to clean up systems after a failed attempt to add a system to multiple projects.
In order to ensure that a system is only added to a single project, explicitly specify a selection set using the --selection
option as shown below:
cmri system add --selection "my-project" --origin /path/to/code --name my-codebase --version 1.0
See CodeMRI CLI Reference or run cmri --help
for more information information about general invocation and selection sets.
required arguments:
| The path to the source code or metadata for the system to create. If a Silverthread SQLite or Readable Database is provided, the name and version options may be omitted. |
optional arguments:
| The name of the system to create. Required if the origin is source code or if metadata does not supply a name. Must be at least 1 character long, must not contain: |
| The version of the system to create. Required if the origin is source code or if the metadata does not supply a version. Must be at least 1 character long, must not contain: |
| The date reflecting the most recent code change to the source code contained within the provided Acceptable date formats include: mm/dd/YY |