Skip to content

IsurangaPerera/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Line Tool For WSO2 [IS]

N|Solid

Installation

CLI requires GO to run.

Linux Installation

$ go get github.com/gizak/termui
$ go get github.com/IsurangaPerera/mow.cli
$ git clone https://github.com/IsurangaPerera/cli.git
$ cd cli
$ go build .

Optional Steps

Create a Symlink to the cli directory inorder to run from anywhere

Configuration

Following attributes should be set inorder to run properly

  • Base URL (eg. localhost:9443)
  • User Credentials (username & password)
$ cli config -url [base_url] -u [user_name] -p [password]

Usage

CLI is currently extended with the following capabilities.

Command Arguements Description Type
addInternalRole -r role name string
-u user list string [ ]
-p permissions string [ ]
addRemoveRolesOfUser -u user name string
-r new roles string [ ]
-d deleted roles string [ ]
addRemoveUsersOfRole -r role name string
-u new users string [ ]
-d deleted users string [ ]
addRole -r role name string
-u user list string [ ]
-p permissions string [ ]
-s shared boolean
listAllUsers -f filter string
-l limit int

Samples

Add Internal Role

$ cli addInternalRole -r "sample" -u [isuranga harsha] -p [add create]

List All Users

$ cli listAllUsers

OR

$ cli listAllUsers -f "*" -l 10

Releases

No releases published

Packages

No packages published

Languages