# diagrid component example

Print an example component resource

### Description

Print an example component resource.

The example is a valid, minimal component you can edit and apply with
"diagrid apply -f \<file>". It is read from the spec embedded in the CLI, so no
project or login is needed. Use "diagrid component schema" for the full field
reference.

```
diagrid component example [flags]
```

### Examples

```

  # Print an example component as YAML
  diagrid component example

  # Bootstrap a new resource file from the example
  diagrid component example > component.yaml
```

### Options

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

### Options inherited from parent commands

```
      --api-key string   Diagrid Cloud API key
```

### SEE ALSO

- [diagrid component](./component.md)	 - Manage components
