Skip to content

metalcloud-cli file-share list

List all file shares for an infrastructure

List all file shares associated with the specified infrastructure.

This command displays file shares with their basic information including ID, name, status, and other key attributes. Results can be filtered by status.

Required Arguments: infrastructure_id_or_label The infrastructure ID (numeric) or label to list file shares for

Optional Flags: —filter-status Filter results by file share status (can be used multiple times) Common statuses: active, inactive, creating, deleting, error

Examples:

List all file shares for an infrastructure

Section titled “List all file shares for an infrastructure”

metalcloud-cli file-share list my-infrastructure

metalcloud-cli file-share list 12345

metalcloud-cli file-share list my-infrastructure —filter-status active

metalcloud-cli file-share list my-infrastructure —filter-status active —filter-status creating

metalcloud-cli file-share list infrastructure_id_or_label [flags]
--filter-status strings Filter the result by file share status.
-h, --help help for list
-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”