Skip to content

metalcloud-cli role

Manage user roles and permissions

Manage user roles and permissions in the MetalCloud platform.

Roles define sets of permissions that can be assigned to users to control access to various platform features and resources. This command group provides operations to list, view, create, update, and delete roles.

Available operations: list - List all available roles get - View detailed information about a specific role create - Create a new role with specified permissions update - Update an existing role’s permissions or metadata delete - Remove a role from the system

Examples:

metalcloud-cli role list

metalcloud-cli role get admin-role

metalcloud-cli role create —config-source role-config.json

echo ’{“permissions”: [“read”, “write”]}’ | metalcloud-cli role update my-role —config-source pipe

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