Skip to content

metalcloud-cli infrastructure list

List infrastructures with optional filtering

List all infrastructures with various filtering options to control visibility and scope.

By default, this command shows only active infrastructures owned by the current user. Use the filtering flags to customize the output based on your needs.

Flags: —show-all Show infrastructures from all users (requires admin privileges) —show-ordered Include ordered (created but not yet deployed) infrastructures —show-deleted Include deleted infrastructures in the output

Examples:

metalcloud-cli infrastructure list

List all infrastructures including ordered and deleted ones

Section titled “List all infrastructures including ordered and deleted ones”

metalcloud-cli infrastructure list —show-all —show-ordered —show-deleted

metalcloud-cli infrastructure list —show-ordered

List all infrastructures from all users (admin only)

Section titled “List all infrastructures from all users (admin only)”

metalcloud-cli infrastructure list —show-all

metalcloud-cli infrastructure list [flags...] [flags]
-h, --help help for list
--show-all If set will return all infrastructures.
--show-deleted If set will also return deleted infrastructures.
--show-ordered If set will also return ordered (created but not deployed) infrastructures.
-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")

Auto generated by spf13/cobra on 11-Aug-2025

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”