# metalcloud-cli user create-bulk Create multiple users in a single operation ## Synopsis Create multiple users at once from a JSON or YAML configuration file. This command processes an array of user configurations and creates all users in sequence. Each user configuration follows the same format as the single user create command. Required Flags: --config-source Source of bulk user configuration (JSON/YAML file path or 'pipe') Configuration File Format (JSON): [ { "displayName": "John Doe", "email": "john.doe@company.com", "password": "securePassword123", "accessLevel": "user", "emailVerified": true, "accountId": 12345 }, { "displayName": "Jane Smith", "email": "jane.smith@company.com", "password": "anotherPassword456", "accessLevel": "admin", "createWithAccount": true } ] The command will report success/failure for each user and provide a summary at the end. ``` metalcloud-cli user create-bulk [flags] ``` ### Examples ``` ## Create users from JSON file metalcloud-cli user create-bulk --config-source users.json ## Create users from YAML file metalcloud-cli user create-bulk --config-source users.yaml ## Create users from pipe echo '[{"email": "user1@company.com", "password": "pass1", "accessLevel": "user"}, {"email": "user2@company.com", "password": "pass2", "accessLevel": "admin"}]' | metalcloud-cli user create-bulk --config-source pipe ``` ### Options ``` --config-source string Source of the bulk user configuration. Can be 'pipe' or path to a JSON/YAML file with an array of user configs. -h, --help help for create-bulk ``` ### Options inherited from parent commands ``` -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") ``` ### SEE ALSO * [metalcloud-cli user](/content/configuration/cli/metalcloud-cli_user.md) - Manage user accounts and their properties #### Auto generated by spf13/cobra on 11-Aug-2025