rspm create bulk-blocklist-rules#
Advanced
Command to create blocklist rules.
Examples#
# Create blocklist rules in bulk.
# Create a JSON document
cat << EOF > bulk.json
[
{"priority": 99, "package_name": "tidyverse", "version": "2.0", "source_id": 3, "source_type": 4, "repo_id": null, "license": "MIT", "license_types": "GPL-1.0-or-later", "vulns": true, "deleted_packages": false, "exception": true, "description": "This is a description", "source_name": "cran", "repo": "cran"},
{"package_name": "ggplot2", "repo": "cran"}
]
EOF
rspm create bulk-blocklist-rules --path=bulk.json
Options#
--fail-all Fail all if at least one fails
-h, --help help for bulk-blocklist-rules
--path string Path to json file. Ignored if STDIN is used
--show-example Shows an example blocklist rule
Options inherited from parent commands#
-a, --address string The address of the remote server. If not specified, the PACKAGEMANAGER_ADDRESS environment variable is used.
-c, --config string Path to config file
--insecure-ssl-skip-verify If true, skip SSL certificate validation. This reduces the security that SSL normally provides.
-o, --output-format string Specify the output format 'human' for human-readable output or 'json' for JSON-encoded output. (default "human")
-v, --verbose Provide additional output