UNPKG

@salesforce/plugin-trust

Version:

validate a digital signature for a npm package

358 lines 12.2 kB
{ "commands": { "node:info": { "aliases": [], "args": {}, "description": "Command for internal use only.", "flags": { "json": { "description": "Format output as json.", "helpGroup": "GLOBAL", "name": "json", "allowNo": false, "type": "boolean" }, "flags-dir": { "helpGroup": "GLOBAL", "name": "flags-dir", "summary": "Import flag values from a directory.", "hasDynamicHelp": false, "multiple": false, "type": "option" } }, "hasDynamicHelp": false, "hidden": true, "hiddenAliases": [], "id": "node:info", "pluginAlias": "@salesforce/plugin-trust", "pluginName": "@salesforce/plugin-trust", "pluginType": "core", "strict": true, "summary": "Returns the path to node and npx files bundled by the Salesforce CLI.", "enableJsonFlag": true, "isESM": true, "relativePath": [ "lib", "commands", "node", "info.js" ], "aliasPermutations": [], "permutations": [ "node:info", "info:node" ] }, "plugins:trust:verify": { "aliases": [], "args": {}, "description": "Verifies the digital signature on an npm package matches the signature and key stored at the expected URLs.", "examples": [ "<%= config.bin %> <%= command.id %> --npm @scope/npmName --registry https://npm.pkg.github.com", "<%= config.bin %> <%= command.id %> --npm @scope/npmName" ], "flags": { "json": { "description": "Format output as json.", "helpGroup": "GLOBAL", "name": "json", "allowNo": false, "type": "boolean" }, "flags-dir": { "helpGroup": "GLOBAL", "name": "flags-dir", "summary": "Import flag values from a directory.", "hasDynamicHelp": false, "multiple": false, "type": "option" }, "npm": { "char": "n", "name": "npm", "required": true, "summary": "Specify the npm name. This can include a tag/version.", "hasDynamicHelp": false, "multiple": false, "type": "option" }, "registry": { "char": "r", "name": "registry", "summary": "The registry name. The behavior is the same as npm.", "hasDynamicHelp": false, "multiple": false, "type": "option" }, "loglevel": { "deprecated": { "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable." }, "hidden": true, "name": "loglevel", "hasDynamicHelp": false, "multiple": false, "type": "option" } }, "hasDynamicHelp": false, "hiddenAliases": [], "id": "plugins:trust:verify", "pluginAlias": "@salesforce/plugin-trust", "pluginName": "@salesforce/plugin-trust", "pluginType": "core", "strict": true, "summary": "Validate a digital signature.", "enableJsonFlag": true, "isESM": true, "relativePath": [ "lib", "commands", "plugins", "trust", "verify.js" ], "aliasPermutations": [], "permutations": [ "plugins:trust:verify", "trust:plugins:verify", "trust:verify:plugins", "plugins:verify:trust", "verify:plugins:trust", "verify:trust:plugins" ] }, "plugins:trust:allowlist:add": { "aliases": [], "args": {}, "description": "The plugin allowlist lets users automatically install a plugin without being prompted, even when the plugin is unsigned.\n\nThis command adds one or more plugins to the `unsignedPluginAllowList.json` file, creating the file if it doesn't exist. Plugins already present in the allowlist are skipped.", "examples": [ "Add a single plugin to the allowlist:\n<%= config.bin %> <%= command.id %> --name @scope/my-plugin", "Add multiple plugins to the allowlist:\n<%= config.bin %> <%= command.id %> --name @scope/my-plugin --name another-plugin" ], "flags": { "json": { "description": "Format output as json.", "helpGroup": "GLOBAL", "name": "json", "allowNo": false, "type": "boolean" }, "flags-dir": { "helpGroup": "GLOBAL", "name": "flags-dir", "summary": "Import flag values from a directory.", "hasDynamicHelp": false, "multiple": false, "type": "option" }, "name": { "char": "n", "name": "name", "required": true, "summary": "The npm name of the plugin to add to the allowlist. Add multiple plugins by specifying the `--name` flag multiple times.", "hasDynamicHelp": false, "multiple": true, "type": "option" } }, "hasDynamicHelp": false, "hiddenAliases": [], "id": "plugins:trust:allowlist:add", "pluginAlias": "@salesforce/plugin-trust", "pluginName": "@salesforce/plugin-trust", "pluginType": "core", "strict": true, "summary": "Add plugins to the plugin allowlist.", "enableJsonFlag": true, "isESM": true, "relativePath": [ "lib", "commands", "plugins", "trust", "allowlist", "add.js" ], "aliasPermutations": [], "permutations": [ "plugins:trust:allowlist:add", "trust:plugins:allowlist:add", "trust:allowlist:plugins:add", "trust:allowlist:add:plugins", "plugins:allowlist:trust:add", "allowlist:plugins:trust:add", "allowlist:trust:plugins:add", "allowlist:trust:add:plugins", "plugins:allowlist:add:trust", "allowlist:plugins:add:trust", "allowlist:add:plugins:trust", "allowlist:add:trust:plugins", "plugins:trust:add:allowlist", "trust:plugins:add:allowlist", "trust:add:plugins:allowlist", "trust:add:allowlist:plugins", "plugins:add:trust:allowlist", "add:plugins:trust:allowlist", "add:trust:plugins:allowlist", "add:trust:allowlist:plugins", "plugins:add:allowlist:trust", "add:plugins:allowlist:trust", "add:allowlist:plugins:trust", "add:allowlist:trust:plugins" ] }, "plugins:trust:allowlist:list": { "aliases": [], "args": {}, "description": "The plugin allowlist lets users automatically install a plugin without being prompted, even when the plugin is unsigned.\n\nThis command prints the contents of the `unsignedPluginAllowList.json` file as a table.", "examples": [ "List all plugins on the allowlist:\n<%= config.bin %> <%= command.id %>" ], "flags": { "json": { "description": "Format output as json.", "helpGroup": "GLOBAL", "name": "json", "allowNo": false, "type": "boolean" }, "flags-dir": { "helpGroup": "GLOBAL", "name": "flags-dir", "summary": "Import flag values from a directory.", "hasDynamicHelp": false, "multiple": false, "type": "option" } }, "hasDynamicHelp": false, "hiddenAliases": [], "id": "plugins:trust:allowlist:list", "pluginAlias": "@salesforce/plugin-trust", "pluginName": "@salesforce/plugin-trust", "pluginType": "core", "strict": true, "summary": "List the plugins on the plugin allowlist.", "enableJsonFlag": true, "isESM": true, "relativePath": [ "lib", "commands", "plugins", "trust", "allowlist", "list.js" ], "aliasPermutations": [], "permutations": [ "plugins:trust:allowlist:list", "trust:plugins:allowlist:list", "trust:allowlist:plugins:list", "trust:allowlist:list:plugins", "plugins:allowlist:trust:list", "allowlist:plugins:trust:list", "allowlist:trust:plugins:list", "allowlist:trust:list:plugins", "plugins:allowlist:list:trust", "allowlist:plugins:list:trust", "allowlist:list:plugins:trust", "allowlist:list:trust:plugins", "plugins:trust:list:allowlist", "trust:plugins:list:allowlist", "trust:list:plugins:allowlist", "trust:list:allowlist:plugins", "plugins:list:trust:allowlist", "list:plugins:trust:allowlist", "list:trust:plugins:allowlist", "list:trust:allowlist:plugins", "plugins:list:allowlist:trust", "list:plugins:allowlist:trust", "list:allowlist:plugins:trust", "list:allowlist:trust:plugins" ] }, "plugins:trust:allowlist:remove": { "aliases": [], "args": {}, "description": "The plugin allowlist lets users automatically install a plugin without being prompted, even when the plugin is unsigned.\n\nThis command removes one or more plugins from the `unsignedPluginAllowList.json` file. Plugins not present in the allowlist are skipped.", "examples": [ "Remove a single plugin from the allowlist:\n<%= config.bin %> <%= command.id %> --name @scope/my-plugin", "Remove multiple plugins from the allowlist:\n<%= config.bin %> <%= command.id %> --name @scope/my-plugin --name another-plugin" ], "flags": { "json": { "description": "Format output as json.", "helpGroup": "GLOBAL", "name": "json", "allowNo": false, "type": "boolean" }, "flags-dir": { "helpGroup": "GLOBAL", "name": "flags-dir", "summary": "Import flag values from a directory.", "hasDynamicHelp": false, "multiple": false, "type": "option" }, "name": { "char": "n", "name": "name", "required": true, "summary": "The npm name of the plugin to remove from the allowlist. Remove multiple plugins by specifying the `--name` flag multiple times.", "hasDynamicHelp": false, "multiple": true, "type": "option" } }, "hasDynamicHelp": false, "hiddenAliases": [], "id": "plugins:trust:allowlist:remove", "pluginAlias": "@salesforce/plugin-trust", "pluginName": "@salesforce/plugin-trust", "pluginType": "core", "strict": true, "summary": "Remove plugins from the plugin allowlist.", "enableJsonFlag": true, "isESM": true, "relativePath": [ "lib", "commands", "plugins", "trust", "allowlist", "remove.js" ], "aliasPermutations": [], "permutations": [ "plugins:trust:allowlist:remove", "trust:plugins:allowlist:remove", "trust:allowlist:plugins:remove", "trust:allowlist:remove:plugins", "plugins:allowlist:trust:remove", "allowlist:plugins:trust:remove", "allowlist:trust:plugins:remove", "allowlist:trust:remove:plugins", "plugins:allowlist:remove:trust", "allowlist:plugins:remove:trust", "allowlist:remove:plugins:trust", "allowlist:remove:trust:plugins", "plugins:trust:remove:allowlist", "trust:plugins:remove:allowlist", "trust:remove:plugins:allowlist", "trust:remove:allowlist:plugins", "plugins:remove:trust:allowlist", "remove:plugins:trust:allowlist", "remove:trust:plugins:allowlist", "remove:trust:allowlist:plugins", "plugins:remove:allowlist:trust", "remove:plugins:allowlist:trust", "remove:allowlist:plugins:trust", "remove:allowlist:trust:plugins" ] } }, "version": "3.8.11" }