metalcloud-cli template-asset config-example
Display template asset configuration example
Synopsis
Section titled “Synopsis”Display a template asset configuration example that can be used as a template for creating or updating template assets.
The example shows the JSON structure with all available fields:
- templateId: ID of the OS template that this asset belongs to (required)
- usage: Usage type of the asset (required, e.g., logo, icon, build_source_image)
- file: File configuration object (required)
- name: Name of the file (required)
- mimeType: MIME type of the file (required, e.g., image/png, application/octet-stream)
- checksum: File checksum for integrity verification (optional)
- contentBase64: Base64-encoded file content (optional, for direct upload)
- templatingEngine: Whether templating is enabled for the file (optional, default: false)
- url: External URL where the file can be downloaded (optional)
- tags: Array of tags for categorization (optional)
Examples:
Display configuration example
Section titled “Display configuration example”metalcloud-cli template-asset config-example
Save example to file for editing
Section titled “Save example to file for editing”metalcloud-cli template-asset config-example > asset-config.json
metalcloud-cli template-asset config-example [flags]Options
Section titled “Options” -h, --help help for config-exampleOptions inherited from parent commands
Section titled “Options inherited from parent commands” -k, --api_key string MetalCloud API key -c, --config string Config file path -d, --debug Set to enable debug logging -e, --endpoint string MetalCloud API endpoint -f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text") -i, --insecure_skip_verify Set to allow insecure transport -l, --log_file string Log file path -v, --verbosity string Log level verbosity (default "INFO")SEE ALSO
Section titled “SEE ALSO”- metalcloud-cli template-asset - Manage template assets for OS templates