Skip to main content

crusoe diagnostics vm create

Trigger a diagnostic (bug report) collection for a VM.

Collection runs asynchronously on the VM through the Crusoe Watch Agent. The command returns a diagnostic ID that you pass to crusoe diagnostics vm status to track progress, and to crusoe diagnostics vm download once collection completes.

Usage

crusoe diagnostics vm create <vm-name/id> [flags]

Flags

FlagDescription
-f, --format stringOutput format. Supported formats: pretty, json (default: "pretty")
-h, --helpHelp for create
--jsonOutput in json format. Shorthand for --format json
--project-id stringProject ID. Optional if Project Name is set in CRUSOE_DEFAULT_PROJECT env variable or the config file
--project-name stringProject Name. Optional if set in CRUSOE_DEFAULT_PROJECT env variable or the config file

Examples

Trigger a collection for a VM:

crusoe diagnostics vm create np-9addff51-1
successfully created Diagnostic
Diagnostic ID: 4d96bc56-d3ea-4314-8aee-35373bbd9798

Keep the diagnostic ID — you need it to check status and to download the report.

What's Next