Add SCM Token Mode

Overview

Mobb supports on-premise repositories as explained in the system requirements. However, to analyze an on-premise repository, the SCM token must be added to your Mobb account to grant Mobb access to read and write to your repository (To run analysis and commit fixes). This task can either be done on the Mobb UI as explained here, or via the Mobb CLI.

To add the SCM token via the CLI, you can use the add-scm-token mode. To learn more about what's required for this mode, you can run the following command:

npx mobbdev@latest add-scm-token --help

Output

cli.mjs add-scm-token

Add your SCM (Github, Gitlab, Azure DevOps) token to Mobb to enable automated fixes.

Options:
  --scm-type       SCM type                                 [required] [choices: "GitHub", "GitLab", "Ado", "Bitbucket"]
  --url            URL of the repository (used in GitHub, GitLab, Ado, Bitbucket)                    [string] [required]
  --token          SCM API token                                                                     [string] [required]
  --organization   Organization name in SCM (used in Azure DevOps)                                              [string]
  --refresh-token  SCM refresh token (used in GitLab)                                                           [string]
  --api-key        Mobb authentication api-key                                                                  [string]
  --ci             Run in CI mode, prompts and browser will not be opened                     [boolean] [default: false]
  --help           Show help                                                                                   [boolean]

Parameters:

--scm-type Description: SCM type [required] [choices: "GitHub", "GitLab", "Ado", "Bitbucket"]

--url Description: URL of the repository (used in GitHub, GitLab, Ado, Bitbucket) [string] [required]

--token Description: SCM API token [string] [required]

--organization Description: Organization name in SCM (used in Azure DevOps) [string]

--refresh-token Description: SCM refresh token (used in GitLab) [string]

--api-key Description: Mobb authentication api-key [string]

--help Description: Show help [boolean]

Last updated

Was this helpful?