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

  # Add a custom "Docs" tab linking to external documentation for a package
  rspm create metadata --package-name=ggplot2 --key=tab.docs --value=https://ggplot2.tidyverse.org

  # Add a custom "Setup" tab for all packages in a repository (embedded PPM page)
  rspm create metadata --repo=cran --key=tab.setup --value=https://ppm.example.com/client/#/repos/cran/setup

  # Add a custom "User Guide" tab scoped to a specific source
  rspm create metadata --source=pypi --key=tab.user-guide --value=https://docs.example.com/python-packages

  # Add a custom "Configuration" tab for a VS Code extension
  rspm create metadata --package-name=posit.shiny --key=tab.configuration --value=https://shiny.posit.co/py/docs/install-create-run.html#vs-code

  # Create metadata for an agent plugin by name in a plugins repo
  rspm create metadata --package-name=my-claude-plugin --repo=my-plugins --key=team-owner --value=backend

  # Create metadata for an agent plugin across all repos (no repo constraint)
  rspm create metadata --package-name=my-claude-plugin --key=approved --value=true

  # Add a custom "Docs" tab to an agent plugin's detail page
  rspm create metadata --package-name=my-claude-plugin --key=tab.docs --value=https://example.com/docs

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