role - PredixDev/predix-mobile-cli GitHub Wiki

Description: role Command

Assign a role to a user.

COMMAND: index-role [options] <file ...>

This command allows the user to define a user role.

  Examples:
	Display the role assigned to a user:
	$ pm role -r role-test -l

	Assign a one or more channels for a role:
	$ $ pm role -r role-test -c channel1,channel2

	Assign a role to a user:
	$ pm channels -u [email protected] -r role-test

	Delete a user role:
	$ pm roles -r role-test -p

	

Options:

    -h, --help                    output usage information
    -D, --debug                   Set logging level to debug (more traces than "verbose")
    -v, --verbose                 Set logging level to verbose.
    -c, --channel [channel_name]  Set `channel` parameter. Can be repeated to specify multiple channels.
    -r, --role [role_name]        Set `role` parameter. Can be repeated to specify multiple roles.
    -p, --purge                   Purge roles. App definition file will be ignored.
    -l, --list                    List all roles. App definition file will be ignored.
    -f, --format                  Format output in a tabular form.
    --skip-ssl-validation         Ignore TLS certificate validation errors.
⚠️ **GitHub.com Fallback** ⚠️