Skip to content

metalcloud-cli file-share

Manage file shares for infrastructure resources

Manage file shares for infrastructure resources including creating, updating, deleting, and configuring shared storage.

File shares provide shared storage capabilities across multiple instances within an infrastructure. Use these commands to manage the lifecycle and configuration of file shares.

Available Commands: list List all file shares for an infrastructure get Get detailed information about a specific file share create Create a new file share with specified configuration delete Delete an existing file share update-config Update file share configuration update-meta Update file share metadata get-hosts Get hosts configured for a file share update-hosts Update hosts configuration for a file share config-info Get configuration information for a file share

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 get my-infrastructure 12345

Create a new file share from a configuration file

Section titled “Create a new file share from a configuration file”

metalcloud-cli file-share create my-infrastructure —config-source config.json

-h, --help help for file-share
-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”