Skip to main content

diagrid component schema

Print the OpenAPI schema for the component resource type

Description

Print the OpenAPI schema for the component resource type.

The schema lists every component field with all references resolved inline. It is read from the spec embedded in the CLI, so no project or login is needed. Use "diagrid component example" to print a ready-to-edit sample instead.

diagrid component schema [flags]

Examples


# Print the component schema as YAML
diagrid component schema

# Print the component schema as JSON
diagrid component schema --output json

Options

-h, --help help for schema
-o, --output string Output format, supported [yaml, json] (default "yaml")

Options inherited from parent commands

--api-key string Diagrid Cloud API key

SEE ALSO