Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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:

-o, --origin

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:

-n, --name

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: *, /, ?, \, $, :, \;, [, ], or ~. If the name contains spaces, they will be removed.

-v, --version

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: *, /, ?, \, $, :, \;, [, ], or ~. If the version contains spaces, they will be removed.

-r, --revision-date

The date reflecting the most recent code change to the source code contained within the provided origin. Recommended in order to make full use of web and portfolio features. Acceptable date formats include YYYY-mm-dd, mm/dd/YY, and other common U.S. date formats.

  • No labels