Skip to content

hubcli role create

Creates a new role.

The command has the following format:

hubcli role create [flags] role-name

flags
One or more optional flags that provide additional control over execution of the command.
role-name
The name for the new role.

The following flags are available:

--actions action-list
Defines the list of actions for the current permission. If more than one action is specified, separate actions with a comma. If you want to specify all actions, set this to * (asterisk).
-c string or --connection string
Specifies the name of the connection to use. If you do not specify this option, then the default connection is used. If there is no default connection, then you must specify a connection. The first connection created for the Altair SLC Hub instance is set by default as the default Hub instance, but a different default connection can be set using the hubcli connection use command.
--debug
Enables debug logging.
--description text
Specifies a description for the role. The description can be seen if you view the role in Altair SLC Hub Portal.
--effect effect
Specifies the effect for the current permission; this can be one of Allow or Deny. The default is Allow.
-f fname or --filename fname
Specifies the name of a file that contains the role definition. You can specify - (hyphen) to read the definition from stdin.
-h or --help
Returns help information for this command.
--matcher matcher
Defines the object matcher to use; this can be simple, doublestar, regex, or hierarchy. The default is simple.
--object object
Adds a new permission for the specified object.
--resetPermissions
Resets the list of permissions before applying --object, --actions, --effect.

For more information about actions, matchers, and permission effects see Role permissions.