Skip to content

metalcloud-cli account create

Create a new account with custom configuration

Create a new account in the MetalCloud platform with custom configuration.

This command creates a new account using configuration data provided through a JSON file or standard input. The configuration must include all required account properties such as name, description, and any custom settings.

Required Permissions:

  • users:write

Required Flags: —config-source Source of the new account configuration

Flag Details: —config-source string Source of the new account configuration. Can be ‘pipe’ to read from stdin or path to a JSON file. The JSON should contain account properties like name, description, and other account settings.

Examples:

metalcloud-cli account create —config-source /path/to/account.json

echo ’{“name”:“test-account”,“description”:“Test account”}’ | metalcloud-cli account create —config-source pipe

metalcloud-cli account new —config-source account-config.json

metalcloud-cli account create [flags]
--config-source string Source of the new account configuration. Can be 'pipe' or path to a JSON file.
-h, --help help for create
-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”