Setting up the database connection for the Opportunity Detect CLI

You edit the RemoteControlCLI.xml file to enable the CLI to connect with the Opportunity Detect design time database.

Before you begin

Obtain the following information about your design time database.

  • The name and URL of the database used with your design time installation.
  • The user name and password for an account with Administrator privileges in the design time database.
  • The URL of your design time installation
  • The URL and class name for the database driver used with your design time database.

Procedure

  1. Open the RemoteControlCLI.xml file, located in the cli directory under your Opportunity Detect design time installation.
  2. Run the encode script to encrypt the password for the database account. Copy the resulting string and use it as the value for the ConnectionPassword key in the RemoteControlCLI.xml file.

    For example: ./encode.sh YOUR_PASSWORD

    This step is optional, but provides the best security. If you do not encrypt the password, it is stored in clear text in the RemoteControlCLI.xml file.

    If you use an encrypted password, set the value of the ConnectionPasswordEncrypted key to True.

  3. Use the database information you obtained to complete the values in the rest of the keys in the RemoteControlCLI.xml file.
  4. Save and close the RemoteControlCLI.xml file.

Results

You can now run the CLI commands.