channels - PredixDev/predix-mobile-cli GitHub Wiki
Adds channels to a user.
COMMAND: index-channels [options] <file ...>
This command allows the user to display user channel document, assign a channel or role to a user, and delete a channel from a user.
Examples:
Display user channel document:
$ pm channels -u [email protected] -l
Assign a channel to a user:
$ pm channels -u [email protected] -c test_channel
Assign a role to a user:
$ pm channels -u [email protected] -r role-test
Delete a channel from user document:
$ pm channels -u [email protected] -c test_channel -p
Working with multiple users/channels:
$ pm channels -u [email protected] -u [email protected] -c test_channel1 -c test_channel2
$ pm channels -u [email protected],[email protected] -c test_channel1,test_channel2
Note: spaces between commas not allowed for -u and -c options.
Options:
-h, --help output usage information
-D, --debug Set logging level to debug (more traces than "verbose")
-v, --verbose Set logging level to verbose.
-u, --user [username...] Set `user` parameter. Can be repeated to specify multiple users.
-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 channels. App definition file will be ignored.
-l, --list List all channels. App definition file will be ignored.
-f, --format Format output in a tabular form.
-i, --initialize initialize non exiting users.
--skip-ssl-validation Ignore TLS certificate validation errors.