Skip to content

[BUG] instance create examples fail due to missing required flags #24

Description

@cokerrd

Description

The zcp instance create command examples in the help text are incomplete and cause the command to fail with the missing required flags --storage-category and --network-plan. The flag descriptions are also incorrect as they do not correct define the flags which are required and the ones which are optional .

Steps to reproduce

zcp instance create --name my-vm --project default-9 --region yul-1 --template ubuntu-2604-lts-1 --plan ca2sl --billing-cycle hourly

The project and region flags can be excluded if the environment variables are set

Expected behavior

Successful creation of the instance

Actual behavior

The command fails with the error message :

Error: instance create: creating virtual machine: API error 422: Validation errors — network_plan: The network plan field is required.; storage_category: The storage category field is required.

Environment

  • zcp version (zcp version): 0.0.21
  • OS / Architecture: MacOs /ARM64
  • Shell: Zsh

Debug output

Debug output [DEBUG] POST https://api.zcp.zsoftly.ca/api/virtual-machines [DEBUG] POST https://api.zcp.zsoftly.ca/api/virtual-machines -> 422 [DEBUG] response: {"success":false,"message":"Validation errors","timezone":"2026-07-05T23:40:11.522984Z","data":{"storage_category":["The storage category field is required."],"network_plan":["The network plan field is required."]}} Error: instance create: creating virtual machine: API error 422: Validation errors — network_plan: The network plan field is required.; storage_category: The storage category field is required. ``` paste here ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions