rspm create metadata

Advanced

Command to create metadata.

Terminal
rspm create metadata [flags]

Examples

Terminal
  # 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

  # Create metadata for a VS Code extension by name
  rspm create metadata --package-name=ms-python.python --key=approved --value=true

  # Create metadata for a VS Code extension version in an Open VSX source
  rspm create metadata --package-name=ms-python.python --version=2024.1.0 --source=openvsx --key=status --value=verified

  # Create metadata for a VS Code extension in a VSX repo
  rspm create metadata --package-name=redhat.java --repo=openvsx --key=team-owner --value=backend

  # Update existing metadata for a VS Code extension
  rspm create metadata --package-name=ms-python.python --repo=openvsx --key=approved --value=false --update-existing

Options

Terminal
  -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

Terminal
  -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
Back to top