@@ -94,6 +94,30 @@ npm trust gitlab [package] --file [--project|--repo|--repository] [--env|--envir |
94 | 94 | | `--registry` | "https://registry.npmjs.org/" | URL | The base URL of the npm registry. | |
95 | 95 | | `--yes`, `-y` | null | null or Boolean | Automatically answer "yes" to any prompts that npm might print on the command line. | |
96 | 96 |
|
| 97 | +### `npm trust circleci` |
| 98 | + |
| 99 | +Create a trusted relationship between a package and CircleCI |
| 100 | + |
| 101 | +#### Synopsis |
| 102 | + |
| 103 | +```bash |
| 104 | +npm trust circleci [package] --org-id <uuid> --project-id <uuid> --pipeline-definition-id <uuid> --vcs-origin <origin> [--context-id <uuid>...] [-y|--yes] |
| 105 | +``` |
| 106 | + |
| 107 | +#### Flags |
| 108 | + |
| 109 | +| Flag | Default | Type | Description | |
| 110 | +| --- | --- | --- | --- | |
| 111 | +| `--org-id` | null | String (required) | CircleCI organization UUID | |
| 112 | +| `--project-id` | null | String (required) | CircleCI project UUID | |
| 113 | +| `--pipeline-definition-id` | null | String (required) | CircleCI pipeline definition UUID | |
| 114 | +| `--vcs-origin` | null | String (required) | CircleCI repository origin in format 'provider/owner/repo' | |
| 115 | +| `--context-id` | null | null or String (can be set multiple times) | CircleCI context UUID to match | |
| 116 | +| `--dry-run` | false | Boolean | Indicates that you don't want npm to make any changes and that it should only report what it would have done. This can be passed into any of the commands that modify your local installation, eg, `install`, `update`, `dedupe`, `uninstall`, as well as `pack` and `publish`. Note: This is NOT honored by other network related commands, eg `dist-tags`, `owner`, etc. | |
| 117 | +| `--json` | false | Boolean | Whether or not to output JSON data, rather than the normal output. * In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`. Not supported by all npm commands. | |
| 118 | +| `--registry` | "https://registry.npmjs.org/" | URL | The base URL of the npm registry. | |
| 119 | +| `--yes`, `-y` | null | null or Boolean | Automatically answer "yes" to any prompts that npm might print on the command line. | |
| 120 | + |
97 | 121 | ### `npm trust list` |
98 | 122 |
|
99 | 123 | List trusted relationships for a package |
|