Skip to content

channels

Michael Cheung edited this page Jul 5, 2017 · 1 revision

Description: Channels Command

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 test@ge.com -l

	Assign a channel to a user:
	$ pm channels -u test@ge.com -c test_channel

	Assign a role to a user:
	$ pm channels -u test@ge.com -r role-test

	Delete a channel from user document:
	$ pm channels -u test@ge.com -c test_channel -p

	Working with multiple users/channels:
	$ pm channels -u test1@ge.com -u test2@ge.com -c test_channel1 -c test_channel2
	$ pm channels -u test1@ge.com,test2@ge.com -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.
Clone this wiki locally