Skip to content

rspm create metadata#

Advanced

Command to create metadata.

rspm create metadata [flags]

Examples#

  # Create metadata for a package by name.
  rspm create metadata --package-name=ggplot2 --key=score --value=high

  # Create metadata for a package by name and version.
  rspm create metadata --package-name=ggplot2 --version=1.0.0 --key=score --value=high

  # Create metadata for a package by name and version for a specific source.
  rspm create metadata --package-name=ggplot2 --version=1.0.0 --source=local2024 --key=score --value=high

  # Create metadata for a package by name for a specific repo.
  rspm create metadata --package-name=ggplot2 --repo=custom2024 --key=score --value=high

  # Create or update existing metadata for a package by name for a specific repo.
  rspm create metadata --package-name=ggplot2 --repo=custom2024 --key=score --value=high --update-existing

Options#

  -h, --help                  help for metadata
      --key string            The metadata key.
      --package-name string   The name of the package.
      --repo string           The name of the repo.
      --source string         The name of the source.
      --succeed-on-existing   Do not return an error when the metadata already exists.
      --update-existing       Update existing metadata with the same constraints and key
      --value string          The metadata value.
      --version string        The package version.

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