Hi

Shall we add a command to get the current version of the CLI tool? It would
be usefull to identify which version some one is using in-order to identify
any issues, etc.

Chamila.

On Mon, Jan 29, 2018 at 9:10 PM, Randilu Soysa <rand...@wso2.com> wrote:

> Adding Sample Responses, Exports an Application from a desired environment
>
> Commands
>
> export-app
>
>     Flags
>       Required
>         -n, --name string          Name of the Application to be exported
>         -i, --uuid string          UUID of the Application to be exported
>         -e, --environment string   Environment to which the Application 
> should be exported
>       Optional
>         -u, --username string      Username
>         -p, --password string      Password
>
>         -k, --insecure             Allow connections to SSL endpoints without 
> certs
>             --verbose              Enable verbose mode
>
> apimcli export-app (--name <name-of-the-application> --uuid 
> <uuid-of-the-application> --environment 
> <environment-from-which-the-app-should-be-exported>) [flags]
>
> Examples:
>
>         apimcli export-app -n SampleApp 9f6affe2-4c97-4817-bded-717f8b01eee8 
> -e dev
>         apimcli export-app -n SampleApp 7bc2b94e-c6d2-4d4f-beb1-cdccb08cd87f 
> -e prod
>
>
> Sample Response:
>
>         Succesfully exported Application!
>         Find the exported Application at 
> /home/user/.wso2apimcli/exported/dev/admin_sampleApp.zip
>
>
>
> <https://github.com/randilu/WatchOver/blob/master/README.md#imports-an-application-to-a-desired-environment>Imports
> an Application to a desired environment
>
> Commands
>
> import-app
>
>     Flags
>         Required
>           -f, --file string          Name of the Application to be imported
>           -e, --environment string   Environment from the which the 
> Application should be imported (default "default")
>         Optional
>           -s, --addSubscriptions     Adds subscriptions of the Application
>           -o, --perserveOwner        Preserves app owner from the original 
> Environment
>           -u, --username string      Username
>           -p, --password string      Password
>
>
>           -k, --insecure             Allow connections to SSL endpoints 
> without certs
>               --verbose              Enable verbose mode
>
> apimcli import-app (--file <app-zip-file> --environment 
> <environment-to-which-the-app-should-be-imported>) [flags]
>
> Examples:
>
>         apimcli import-app -f qa/sampleApp.zip -e dev
>         apimcli import-app -f staging/sampleApp.zip -e prod -u admin -p admin
>         apimcli import-app -f qa/sampleApp.zip --preserveOwner 
> --addSubscriptions -e prod
>
>
> Sample Response:
>
>         ZipFilePath: 
> /home/user/.wso2apimcli/exported/staging/admin_sampleApp.zip
>         Succesfully imported Application!
>
>
>
> <https://github.com/randilu/WatchOver/blob/master/README.md#lists-the-applications-available-for-a-certain-user>Lists
> the Applications available for a certain user
>
> Commands
>
> list apps
>
>     Flags
>         Required
>             -e, --environment
>         Optional
>             -u, --username
>             -p, --password
>
>
> Examples:
>
>         wso2apim list apps -e dev
>         wso2ppim list apps -e staging
>         wso2ppim list apps -e staging -u admin -p 123456
>         wso2ppim list apps -e staging -u admin
>         wso2ppim list apps -e staging -p 123456
>
> Sample Response:
>
>         Environment: staging
>         No. of Applications: 3
>         
> +--------------------------------------+--------------------+------------+-----------+----------+
>         |                  ID                  |        NAME        | 
> SUBSCRIBER |   TIER    |  STATUS  |
>         
> +--------------------------------------+--------------------+------------+-----------+----------+
>         | 7bc2b94e-c6d2-4d4f-beb1-cdccb08cd87f | DefaultApplication | admin   
>    | 50PerMin  | APPROVED |
>         | b556d2f1-71be-4368-842e-482d0c9e5910 | sampleApp1         | admin   
>    | Unlimited | APPROVED |
>         | 3b1377e1-d8c6-4c64-a31c-af555407a14a | sampleApp2         | admin   
>    | Unlimited | CREATED  |
>         
> +--------------------------------------+--------------------+------------+-----------+----------+
>
>
>
>
>
> On Thu, Jan 25, 2018 at 5:41 PM, Randilu Soysa <rand...@wso2.com> wrote:
>
>> Hi everyone,
>>
>> I’m working on a project to introduce commands to provide application
>> import export support for the import-export-cli for APIM 2.x. I am planning
>> to introduce commands in order to list available applications of a specific
>> user, export an application from a desired environment and import an
>> application to a desired environment.
>>
>>
>> The commands are as follows,
>>
>>
>> Exports an Application from a desired environment
>>
>> Commands
>>
>> export-app
>>
>>     Flags
>>       Required
>>         -n, --name string          Name of the Application to be exported
>>         -i, --uuid string          UUID of the Application to be exported
>>         -e, --environment string   Environment from which the Application 
>> should be exported
>>       Optional
>>         -p, --password string      Password
>>         -u, --username string      Username
>>
>>         -k, --insecure             Allow connections to SSL endpoints 
>> without certs
>>             --verbose              Enable verbose mode
>>
>> apimcli export-app (--name <name-of-the-application> --uuid 
>> <uuid-of-the-application> --environment 
>> <environment-from-which-the-app-should-be-exported>) [flags]
>>
>> Examples:
>>
>>         apimcli export-app -n SampleApp 9f6affe2-4c97-4817-bded-717f8b01eee8 
>> -e dev
>>         apimcli export-app -n SampleApp 7bc2b94e-c6d2-4d4f-beb1-cdccb08cd87f 
>> -e prod
>>
>>
>>
>> <https://github.com/randilu/WatchOver/new/master?readme=1#imports-an-application-to-a-desired-environment>Imports
>> an Application to a desired environment
>>
>> Commands
>>
>> import-app
>>
>>     Flags
>>         Required
>>           -f, --file string          Name of the Application to be imported
>>           -e, --environment string   Environment from the which the 
>> Application should be imported
>>         Optional
>>           -s, --addSubscriptions     Adds subscriptions of the Application
>>           -o, --perserveOwner        Preserves app owner from the original 
>> Environment
>>           -p, --password string      Password
>>           -u, --username string      Username
>>
>>           -k, --insecure             Allow connections to SSL endpoints 
>> without certs
>>               --verbose              Enable verbose mode
>>
>> apimcli import-app (--file <app-zip-file> --environment 
>> <environment-to-which-the-app-should-be-imported>) [flags]
>>
>> Examples:
>>
>>         apimcli import-app -f qa/sampleApp.zip -e dev
>>         apimcli import-app -f staging/sampleApp.zip -e prod -u admin -p admin
>>         apimcli import-app -f qa/sampleApp.zip --preserveOwner 
>> --addSubscriptions -e prod
>>
>>
>>
>> <https://github.com/randilu/WatchOver/new/master?readme=1#lists-the-applications-available-for-a-certain-user>Lists
>> the Applications available for a certain user
>>
>> Commands
>>
>> list apps
>>
>>     Flags
>>         Required
>>             -e, --environment
>>         Optional
>>             -u, --username
>>             -p, --password
>>
>>
>> Examples:
>>
>>         apimcli list apps -e dev
>>         apimcli list apps -e staging
>>         apimcli list apps -e staging -u admin -p 123456
>>         apimcli list apps -e staging -u admin
>>         apimcli list apps -e staging -p 123456
>>
>>
>> Your suggestions and feedback on this is highly appreciated!
>>
>>
>> --
>> *Randilu Soysa*
>> Software Engineering Intern | WSO2
>>
>> Email    : rand...@wso2.com
>> Mobile   : +94 77 197 5078 <+94%2077%20197%205078>
>> linkedin : linkedin.com/in/randilusoysa
>> Web      : http://wso2.com
>>
>> <http://wso2.com/signature>
>>
>
>
>
> --
> *Randilu Soysa*
> Software Engineering Intern | WSO2
>
> Email    : rand...@wso2.com
> Mobile   : +94 77 197 5078 <+94%2077%20197%205078>
> linkedin : linkedin.com/in/randilusoysa
> Web      : http://wso2.com
>
> <http://wso2.com/signature>
>
> _______________________________________________
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Regards,
Chamila Adhikarinayake
Senior Software Engineer
WSO2, Inc.
Mobile - +94712346437
Email  - chami...@wso2.com
Blog  -  http://helpfromadhi.blogspot.com/
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to