rspm create bulk-metadata#
Advanced
Command to create metadata in bulk.
Examples#
# Create metadata in bulk.
# Create a JSON document
cat << EOF > bulk.json
[
{"package_name":"ggplot2","key":"score","value":"10","source":"approved-source","repo":"public-repo","version":"2.0.3"},
{"package_name":"tidyverse","key":"score","value":"9","repo":"public-repo","version":"2.0.3"},
{"package_name":"plumber","key":"approved","value":"yes","version":"2.0.3"}
]
EOF
# Create metadata for a package by name and version.
rspm create bulk-metadata --path=bulk.json
Options#
--csv-in string Path to csv file. Ignored if STDIN is used
--fail-all Fail all if at least one fails
-h, --help help for bulk-metadata
--path string Path to json file. Ignored if STDIN is used
--show-example Shows example metadata records
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