Installation Instructions

Upgrade Notice

Prior to version 1.24.27, CodeMRI® Platform required a separate installation of Understand. Beginning with CodeMRI® Platform 1.24.27, this requirement has been lifted. You may uninstall Understand by removing the /opt/understand directory.

1. Prepare for Install

2. Download & Install CodeMRI® (CMRI)

2.1 Acquire CodeMRI®(CMRI)

Installation will fail if the install path contains any spaces. 

Please be sure to extract the installer into a path whose name contains no spaces. For example, /opt/cmri. If the installation path contains any spaces, the installation may fail or CodeMRI may fail to work properly.

2.2 Unpack CodeMRI®(CMRI)

If no pre-existing unzip program exists on the system, run apt-get install unzip for Debian based systems or yum install unzip bzip2 libxcb libXext ncurses-compat-libs for Redhat (RHEL)/CentOS based systems.

a. At this point the installation process will begin.

CMRI Versions prior to 1.24.50 will need to run the setup script with sudo.

3. Start CodeMRI®

CMRI should now be operational, start Command Prompt and run the command cmri --help. You should see the following output on your terminal:

Welcome the CodeMRI(R) CLI Reference. The CodeMRI(R) Command-line Interface (CLI) provides an easy to use interface for administering and using your CodeMRI(R) product. To get started, see General Invocation.

Press q then enter to return to the terminal.

  • Before using CMRI, you will need to create a vault. It's recommend to create a folder called “vault”.

    • Using CMRI in the installation directory will cause complications, you must create the vault in a different directory. 

    • Navigate to the directory where you want your vault to be created. Alternatively, specify the directory path using the --vault flag for the command below.

    • Run cmri vault create and answer the prompts given.

Contact information for vault creation does not need to match the license email.

  • Create and select a project.

    • Start the shell by running cmri shell.

    • Use the project add command to add a new project. CodeMRI will select the project automatically after it is added.

> project add --name ProjectName

==================================
1 projects and 0 systems selected.

  • Create and select a system.

    • Use the system add command as shown below to add a new system. CodeMRI will select the system automatically after it is added:

> system add --name ProjectName --version 47.0 --origin "/path/to/code/"
Successfully added new system to selected project(s).

==================================
1 projects and 1 systems selected.

Note that code (system) added can be compressed or uncompressed.

Once you receive the license code from Silverthread support, enter the code as instructed in the reply and re-run job run produce_reports.

Update from previous version

  - Skip the process of creating a vault and logging in if there is an existing vault.