CLI Usage

 

CLI USAGE

 
app42 activities
command: app42 activities
List all activities with their status
$ app42 activities
+---------------+-----------+-----------+---------+-----------------------+
|                         === User Activities ===                         |
+---------------+-----------+-----------+---------+-----------------------+
| Operation     | Status    | Name      | Type    | Date                  |
+---------------+-----------+-----------+---------+-----------------------+
| setupInfra    | COMPLETED | testJava  | APP     | 2013-09-14 10:01:51.0 |
| deploy        | COMPLETED | testJava  | APP     | 2013-09-14 10:07:44.0 |
| stop          | COMPLETED | testJava  | APP     | 2013-09-14 10:08:53.0 |
| start         | COMPLETED | testJava  | APP     | 2013-09-14 10:09:13.0 |
| restart       | COMPLETED | testJava  | APP     | 2013-09-14 10:11:00.0 |
| deleteInfra   | COMPLETED | testJava  | APP     | 2013-09-14 10:12:42.0 |
| createService | COMPLETED | testMysql | SERVICE | 2013-09-14 10:13:16.0 |
| bindIP        | COMPLETED | testMysql | SERVICE | 2013-09-14 10:36:05.0 |
| unbindIP      | COMPLETED | testMysql | SERVICE | 2013-09-14 10:36:50.0 |
| bindIP        | COMPLETED | testMysql | SERVICE | 2013-09-14 10:39:00.0 |
| deleteService | COMPLETED | testMysql | SERVICE | 2013-09-14 10:40:38.0 |
+---------------+-----------+-----------+---------+-----------------------+
app42 addKeys
command: app42 addKeys
Add API key and Secret key
$ app42 addKeys
================= Enter your App42PaaS keys ==================
API Key      = your_api_key
Secret Key   = your_secret_key
Adding keys...done
app42 keys
command: app42 keys
List API key and Secret key
$ app42 keys
======================= API/Secret Key =======================
API Key      = your_api_key
Secret Key   = your_secret_key
app42 clearKeys
command: app42 clearKeys
Clear API key and Secret key
$ app42 clearKeys
Do you want to delete existing keys? [Yn]: y
=== API key and Secret key have been deleted. ===
app42 setupInfra
command: app42 setupInfra
Setup your deployment and runtime environment i.e. Instance(Memory, CPU) and Technology Stack
$ app42 setupInfra
Enter App Name: demo

Checking App Name Availability... OK

1: Shared
2: Dedicated
Select Instance Type [Shared]:

1: Amazon (Northern Virginia)
Select IaaS Provider [Amazon (Northern Virginia)]:

1: Ruby 2.0.0
2: Java 6
3: Java 7
4: PHP 5.3
5: PHP 5.5
6: Node 0.10.22
7: Python 2.7
8: GO 1.3
Select Runtime [Ruby 2.0.0]:

1: Ruby on Rack
2: Rails 4.0
3: Sinatra 1.4
Select Framework [Ruby on Rack ]:

1: Passenger 4.0
2: Thin 1.6
3: Unicorn 4.7
Select Web Server [Passenger 4.0]:

Specify Kontena Power: 1

Setting up the infrastructure... OK

Operation is in progress, Please wait...|
Setup Infra has been completed successfully.

Default application has been deployed. You can visit 'https://demo.iab.app42paas.com' to see the default application.
app42 apps
command: app42 apps
List all the deployed applications with their meta details
$ app42 apps
1: Shared
2: Dedicated
Choose App Type [Shared]: 1

+-------------------------------+------------+----------------------------+--------------------------+---------+-----------+------+-----------------+------------+----------------+---------------+--------+
|                                                                                             === My Apps ===                                                                                              |
+-------------------------------+------------+----------------------------+--------------------------+---------+-----------+------+-----------------+------------+----------------+---------------+--------+
| App Url                       | App Status | Iaas Provider              | Email                    | Vm Type | App State | Name | Iaas Identifier | Runtime    | Instance Count | Framework     | Memory |
+-------------------------------+------------+----------------------------+--------------------------+---------+-----------+------+-----------------+------------+----------------+---------------+--------+
| http://demo.iaa.app42paas.com | RUNNING    | Amazon (Northern Virginia) | pravinmishra88@gmail.com | Shared  | RUNNING   | demo | amazonuseast1   | Ruby 2.0.0 | 1              | Ruby on Rack  | 256 MB |
+-------------------------------+------------+----------------------------+--------------------------+---------+-----------+------+-----------------+------------+----------------+---------------+--------+
app42 appInfo
command: app42 appInfo
Show meta information of the application
$ app42 appInfo
Enter App Name: demo
+--------------------------------+------------+-----------------+------+------------+----------------+---------------+--------+
|                                                      === demo Info ===                                                      |
+--------------------------------+------------+-----------------+------+------------+----------------+---------------+--------+
| App Url                        | App Status | Iaas Provider   | Name | Runtime    | Instance Count | Framework     | Memory |
+--------------------------------+------------+-----------------+------+------------+----------------+---------------+--------+
| https://demo.iab.app42paas.com | RUNNING    | Amazon (Oregon) | demo | Ruby 2.0.0 | 1              | Ruby on Rack  | 256 MB |
+--------------------------------+------------+-----------------+------+------------+----------------+---------------+--------+
app42 logs
command: app42 logs
Returns the log file URL(s) for the application
$ app42 logs
Enter App Name: demo

Please visit below URL(s) to access app logs

+-------------------------------------------------------------------------------------+
|                                     Log URL(s)                                      |
+-------------------------------------------------------------------------------------+
| https://paashq.shephertz.com/app/getInstanceLog?id=7hbxqse7sswh23xuhlxzh79g6wzi98vd |
+-------------------------------------------------------------------------------------+
app42 scale
command: app42 scale
Scale application either by number of instance(s) OR kontena(s)
**For Shared App**

$app42 scale
Enter App Name: demo

1: Horizontal
2: Vertical
Choose Scale Type [Horizontal]: 

Horizontal scale by instance(s) [1]: 
Scaling Application demo by instance 1... OK

Operation is in progress, Please wait...-
Scale has been completed successfully.

**For Dedicated App**

$app42 scale
Enter App Name: demo

1: t1.micro
2: m1.small
3: m1.medium
4: m1.large
5: m1.xlarge
Select Instance Configuration [t1.micro]: 2

Scaling Application demo by instance m1.small... OK

Operation is in progress, Please wait...-
Scale has been completed successfully.
app42 descale
command: app42 descale
Descale application either by number of instance(s) OR kontena(s)
**For Shared App**

$app42 descale
Enter App Name: demo

1: Horizontal
2: Vertical
Choose Scale Type [Horizontal]: 

Horizontal descale by instance(s) [1]: 1
Descaling Application demo by instance 1... OK

Operation is in progress, Please wait...|
Descale has been completed successfully.

**For Dedicated App**

Enter App Name: demo

1: t1.micro
2: m1.small
3: m1.medium
4: m1.large
5: m1.xlarge

Select Instance Configuration [t1.micro]: 1

Descaling Application demo by instance t1.micro... OK

Operation is in progress, Please wait...|
Descale has been completed successfully.
app42 stop
command: app42 stop
Stop the application
**For Shared App**

$app42 stop --app demo
Stopping Application demo... OK

Operation is in progress, Please wait...-
1 out of 3 stopped
-
2 out of 3 stopped
-
App has been stopped successfully.

**For Dedicated App**

Enter App Name: demo

1: Hard Stop
2: Soft Stop
App Stop Type [Hard Stop]: 1

Stopping Application demo... OK

Operation is in progress, Please wait...
App has been stopped successfully.
app42 start
command: app42 start
Start the application
**For Shared App**

$app42 start --app demo
Starting Application demo... OK

Operation is in progress, Please wait...
1 out of 3 started
-
2 out of 3 started
|
App has been started successfully.

**For Dedicated App**

Enter App Name: demo

1: Hard Start
2: Soft Start
App Start Type [Hard Start]: 1

Starting Application demo... OK

Operation is in progress, Please wait...-
App has been started successfully.
app42 restart
command: app42 restart
Restart the application
**For Shared App**

$app42 start --app demo
Restarting Application demo... OK

Operation is in progress, Please wait...
1 out of 3 restarted
-
2 out of 3 restarted
|
App has been restarted successfully.

**For Dedicated App**

Enter App Name: demo

1: Hard Restart
2: Soft Restart
App Start Type [Hard Restart]: 1

Restarting Application demo... OK

Operation is in progress, Please wait...-
App has been restarted successfully.
app42 deploy
command: app42 deploy
Deploy the application over your runtime environment
$ app42 deploy
Enter App Name: demo

1: Binary
2: Source
Choose Upload Type [Binary]: 2

Enter Git URL?: https://github.com/shepHertz/demo.git
Deploying Application... OK

Operation is in progress, Please wait...|
App has been deployed successfully.
app42 update
command: app42 update
Update the application over your runtime environment
$ app42 update
Enter App Name: demo
1: Binary
2: Source
Choose Upload Type [Binary]: 2

Updating Application... OK

Operation is in progress, Please wait...-
App has been deployed successfully.
app42 deleteInfra
command: app42 deleteInfra
Delete the Infrastructure environment
$ app42 deleteInfra
Enter App Name: demo
Deleting Application demo... OK

Operation is in progress, Please wait...
1 out of 3 deleted
-
2 out of 3 deleted
|
App has been deleted successfully.
app42 appState
command: app42 appState
Show current state of the application
$ app42 appState
Enter App Name: demo
+--------------------+
| === demo State === |
+--------------------+
| RUNNING            |
+--------------------+
app42 addCustomURL
command: app42 addCustomURL
Add a custom URL to an app
$ app42 addCustomURL
Enter App Name: demo

Enter Custom URL: http://naveengoswami.com

Adding Custom URL To Application demo... OK
Custom URL has been added successfully.
app42 customURLInfo
command: app42 customURLInfo
List all custom URL(s) of an app
$ app42 customURLInfo
Enter App Name: demo

+-----------+-----------------------+--------------------------+
|              === demo Custome URLs Details ===               |
+-----------+-----------------------+--------------------------+
| App Name  | Created On            | Url                      |
+-----------+-----------------------+--------------------------+
| demo      | 2014-02-21 13:13:54.0 | http://naveengoswami.com |
+-----------+-----------------------+--------------------------+
app42 removeCustomURL
command: app42 removeCustomURL
Remove a custom URL from an app
$ app42 removeCustomURL
Enter App Name: demo

Enter Custom URL: http://naveengoswami.com

Removing Custom URL... OK
Custom URL has been deleted successfully.
app42 createService
command: app42 createService
Creates a new service e.g. MySQL, MongoDB, CouchDB, PostgreSQL, Redis etc.
$ app42 createService
Enter Service Name: mysqldemo

Deleting Service... OK

Operation is in progress, Please wait...
Service has been deleted successfully.

ubuntu@ubuntu-Lenovo-G580:~/workspace/App42PasS/PaaS/app42$ app42 createService
Enter Service Name: mysqldb

Checking Service Name Availability... OK

1: MySQL 5.5.31
2: Mongodb 2.4.4
3: Couchdb 1.0.1
4: PostgreSQL 9.1.9
5: Redis 2.8.3
Select Service [MySQL 5.5.31]: 

Enter Database Name: demo_db

1: Shared
Select Instance Type [Shared]: 

1: Amazon (Oregon)
Select IaaS Provider [Amazon (Oregon)]: 

Specify Kontena Power: 1

Creating Service... OK

Operation is in progress, Please wait...-
Service has been created successfully.

+---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
|                                                                                                     === mysqldb Details ===                                                                                                     |
+---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
| Database Name | Iaas Provider   | Token                            | Vm Ip        | State   | User Name        | Source Ip | Vm Port | Service Type | Destination Ip | Password                         | Memory | Service Name |
+---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
| demo_db       | Amazon (Oregon) | 0pcmpc64srphrwijmy616uipdjv7t0oi | 172.16.2.167 | RUNNING | admk0ltirejxgh3o |           | 27875   | MySQL 5.5.31 |                | a66tyn077yhlx2gue0t2nsjplls56g7m | 256 MB | mysqldb      |
+---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
app42 services
command: app42 services
List all the provisioned services with their meta details
$ app42 services
+---------------+-----------------+----------------------------------+--------------------------+-------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+
|                                                                                                  === Service List ===                                                                                                  |
+---------------+-----------------+----------------------------------+----------------------------+-------+--------------+---------+------------------+---------+--------------+------------------------------------+--------+
| Database Name | Iaas Provider   | Token                            | Email                      | Name  | Vm Ip        | State   | User Name        | Vm Port | Service Type | Password                         | Memory |
+---------------+-----------------+----------------------------------+--------------------------+---------+--------------+---------+------------------+---------+--------------+----------------------------------+----------+
| demo_db       | Amazon (Oregon) | 6lrw8g1t31w0aaqlo42egwsu74lfp4fs | pravinmishra88@gmail.com | mysqldb | 172.16.2.167 | RUNNING | a80tjirr6ua7lhsm | 10495   | MySQL 5.5.31 | aysytqm0j0se11dzoiom7vdcf2hscar0 | 256 MB |
+---------------+-----------------+----------------------------------+--------------------------+---------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+
app42 serviceInfo
command: app42 serviceInfo
Show meta information of the provisioned service
$ app42 serviceInfo
$ app42 serviceInfo
1: mysqldb
Select Service [mysqldb]: 1

+---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
|                                                                                                     === mysqldb Details ===                                                                                                     |
+---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
| Database Name | Iaas Provider   | Token                            | Vm Ip        | State   | User Name        | Source Ip | Vm Port | Service Type | Destination Ip | Password                         | Memory | Service Name |
+---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
| demo_db       | Amazon (Oregon) | 0pcmpc64srphrwijmy616uipdjv7t0oi | 172.16.2.167 | RUNNING | admk0ltirejxgh3o | 0.0.0.0   | 15847   | MySQL 5.5.31 | 54.213.93.154  | vagyqxta6e0a8q5jxunlr43v6cwohmdj | 256 MB | mysqldb      |
+---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
app42 resetServicePassword
command: app42 resetServicePassword
Reset password of provisioned service
$ app42 resetServicePassword
Enter Service Name: mysqldb

Enter Service Token: 0pcmpc64srphrwijmy616uipdjv7t0oi

Resetting Password... OKscaleSer

Operation is in progress, Please wait...
Service Password has been reset successfully.

Your new password is: vagyqxta6e0a8q5jxunlr43v6cwohmdj
app42 stopService
command: app42 stopService
Stop the service
$ app42 stopService
Enter Service Name: mysqldb

Stopping Service mysqldb... OK

Operation is in progress, Please wait...
Service has been stopped successfully.
app42 startService
command: app42 startService
Start the service
$ app42 startService
Enter Service Name: mysqldb

Starting Service mysqldb... OK

Operation is in progress, Please wait...-
Service has been started successfully.
app42 restartService
command: app42 restartService
Restart the service
$ app42 restartService
Enter Service Name: mysqldb

Restarting Service mysqldb... OK

Operation is in progress, Please wait...
Service has been restarted successfully.
app42 bindIP
command: app42 bindIp
Bind IP to provisioned service
$ app42 bindIp
Enter Service Name: mysqldb

Please Provide Source IP
(For public access, use '0.0.0.0'): 0.0.0.0

Binding IP to service... OK

Operation is in progress, Please wait...
Service binding has been completed successfully.

+---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
|                                                                                             === mysqldb Details ===                                                                                             |
+---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
| Database Name | Iaas Provider   | Token                            | Vm Ip         | Source Ip | State   | User Name        | Vm Port | Service Type | Password                         | Memory | Service Name |
+---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
| demo_db       | Amazon (Oregon) | 0pcmpc64srphrwijmy616uipdjv7t0oi | 54.213.93.154 | 0.0.0.0   | RUNNING | admk0ltirejxgh3o | 15847   | MySQL 5.5.31 | vagyqxta6e0a8q5jxunlr43v6cwohmdj | 256 MB | mysqldb      |
+---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
app42 bindInfo
command: app42 bindInfo
Show IP bind information related to provisioned service
$ app42 bindInfo
1: mysqldb
Select Service [mysqldb]: 

+---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
|                                                                                             === mysqldb Details ===                                                                                             |
+---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
| Database Name | Iaas Provider   | Token                            | Vm Ip         | Source Ip | State   | User Name        | Vm Port | Service Type | Password                         | Memory | Service Name |
+---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
| demo_db       | Amazon (Oregon) | 0pcmpc64srphrwijmy616uipdjv7t0oi | 54.213.93.154 | 0.0.0.0   | RUNNING | admk0ltirejxgh3o | 15847   | MySQL 5.5.31 | vagyqxta6e0a8q5jxunlr43v6cwohmdj | 256 MB | mysqldb      |
+---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
app42 unbindIP
command: app42 unbindIp
Unbind IP from provisioned service
$ app42 unbindIp
Enter Service Name: mysqldb

Please Provide Source IP: 0.0.0.0

Unbinding IP to service... OK

Operation is in progress, Please wait...
Service unbinding has been completed successfully.
app42 scaleService
command: app42 scaleService
Vertically scale service by number of Kontena(s)
$ app42 scaleService
Enter Service Name: mysqldb

Vertical scale by kontena power(s) [1]: 
Scaling Service 'mysqldb' by kontena 1... OK

Operation is in progress, Please wait...|
Vertical Scale has been completed successfully.
app42 descaleService
command: app42 stopService
Vertically descale services by number of Kontena(s)
$ app42 descaleService
Enter Service Name: mysqldb

Vertical descale by kontena power(s) [1]: 
Descaling Service 'mysqldb' by kontena 1... OK

Operation is in progress, Please wait...-
Vertical Descale has been completed successfully.
app42 uploadBackup
command: app42 uploadBackup
Upload existing backup into a service
$ app42 uploadBackup
Enter Service Name: db

Enter Backup File Path: /home/ubuntu/Downloads/demo_production-27Nov2013.sql

Do you also want to restore uploaded backup? [Yn]: n
Please be patient... This process may take a while to complete.

Uploading Service Backup... OK

Operation is in progress, Please wait...
Backup has been successfully restored.
app42 deleteService
command: app42 deleteService
Delete provisioned service
$ app42 deleteService
Enter Service Name: mysqldb

Deleting Service... OK

Operation is in progress, Please wait...|
Service has been deleted successfully.
app42 setupBPaaS
command: app42 setupBPaaS
Setup App42 BPaaS by choosing required configuration
$app42 setupBPaaS
Enter Setup Name: demo
Checking Setup Name Availability... OK

1: Shared
Select Instance Type [Shared]: 

1: Amazon (Oregon)
Select IaaS Provider [Amazon (Oregon)]: 

1: Light
2: Medium
3: Heavy
Select Flavour [Light]: 

Setting up the BPaaS infrastructure... OK

Operation is in progress, Please wait...-
BPaaS Setup has been completed successfully.

Your BPaaS setup has been completed successfully, For details, Login to PaaSHQ console.
app42 bPaaSSetups
command: app42 bPaaSSetups
List all the BPaaS setups
$app42 bPaaSSetups
+-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
|                                                                                                 === Setups List ===                                                                                                  |
+-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
| Created On            | Api Server Url                         | Setup Name | Iaas Provider   | Setup Type | Email                    | Vm Type | Setup Flavour | Setup Status | App Hq Url                          |
+-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
| 2014-02-24 08:00:21.0 | https://democloudapi.iab.app42paas.com | demo       | Amazon (Oregon) | BPaaS      | pravinmishra88@gmail.com | Shared  | light         | RUNNING      | https://demoapphq.iab.app42paas.com |
+-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
app42 bPaaSInfo
command: app42 bPaaSInfo
Show BPaaS setup information
$app42 bPaaSInfo
Enter Setup Name: demo
+-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
|                                                                                   === demo Details ===                                                                                    |
+-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
| Created On            | Api Server Url                         | Setup Name | Iaas Provider   | Setup Type | Vm Type | Setup Flavour | Setup Status | App Hq Url                          |
+-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
| 2014-02-24 08:00:21.0 | https://democloudapi.iab.app42paas.com | demo       | Amazon (Oregon) | BPaaS      | Shared  | light         | RUNNING      | https://demoapphq.iab.app42paas.com |
+-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
app42 upgradeBPaaS
command: app42 upgradeBPaaS
Upgrade BPaaS by choosing required configuration
$app42 upgradeBPaaS
Enter Setup Name: demo

1: Medium
2: Heavy
Select Flavour [Medium]: 2

Upgrading Setup... OK

Operation is in progress, Please wait...-
  
BPaaS setup demo upgraded successfully. 
app42 downgradeBPaaS
command: app42 downgradeBPaaS
Downgrade BPaaS by choosing required configuration
$app42 downgradeBPaaS
Enter Setup Name: demo

1: Light
2: Medium
Select Flavour [Light]: 2

Downgrading Setup... OK

Operation is in progress, Please wait...-
  
BPaaS setup demo downgraded successfully. 
app42 deleteBPaaS
command: app42 deleteSetup
Delete the BPaaS setup
$app42 deleteBPaaS
Enter Setup Name: demo
Deleting Setup... OK

Operation is in progress, Please wait...-
Setup deleted successfully.
app42 stopBPaaS
command: app42 stopBPaaS
Stop the BPaaS setup
$app42 stopBPaaS
Enter Setup Name: demo
Stopping BPaaS Setup demo... OK

Operation is in progress, Please wait...|
  
BPaaS setup demo stopped successfully.
app42 startBPaaS
command: app42 startBPaaS
Start the BPaaS setup
$app42 startBPaaS
Enter Setup Name: demo
Starting BPaaS Setup demo... OK

Operation is in progress, Please wait...|
  
BPaaS setup demo started successfully. 
app42 restartBPaaS
command: app42 restartBPaaS
Restart the BPaaS setup
$app42 restartBPaaS
Enter Setup Name: demo
Restarting BPaaS Setup demo... OK

Operation is in progress, Please wait...|
  
BPaaS setup demo restarted successfully. 
app42 setupWordPress
command: app42 setupWordPress
Setup App42 WordPress by choosing required configuration
$app42 setupWordPress
Enter WordPress Name: demo

Checking WordPress Name Availability... OK

1: Shared
Select Instance Type [Shared]: 

1: Amazon (Oregon)
Select IaaS Provider [Amazon (Oregon)]: 

1: Light
2: Medium
3: Heavy
Select Flavour [Light]: 

Setting up the wordpress infrastructure... OK

Operation is in progress, Please wait...-
WordPress Setup has been completed successfully.

Your WordPress setup has been completed successfully, For details, Login to PaaSHQ console.
app42 wordPressSetups
command: app42 wordPressSetups
List all the WordPress setups
$app42 wordPressSetups
+-----------------------+-----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+
|                                                                          === WordPress Setups List ===                                                                          |
+-----------------------+-----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+
| Created On            | App Url                                 | Setup Name | Iaas Provider   | Setup Type | Email                    | Vm Type | Setup Flavour | Setup Status |
+-----------------------+-----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+
| 2014-02-24 11:14:02.0 | https://demowordpress.iab.app42paas.com | demo       | Amazon (Oregon) | WP         | pravinmishra88@gmail.com | Shared  | medium        | RUNNING      |
+-----------------------+-----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+
app42 wordPressInfo
command: app42 wordPressInfo
Show WordPress setup information
$app42 wordPressInfo
Enter WordPress Name: demo

+-----------------------+-----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+
|                                                                 === demo Details ===                                                                 |
+-----------------------+-----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+
| Created On            | Api Server Url                          | Setup Name | Iaas Provider   | Setup Type | Vm Type | Setup Flavour | Setup Status |
+-----------------------+-----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+
| 2014-02-24 11:14:02.0 | https://demowordpress.iab.app42paas.com | demo       | Amazon (Oregon) | WP         | Shared  | medium        | RUNNING      |
+-----------------------+-----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+
app42 upgradeWordPress
command: app42 upgradeWordPress
Upgrade WordPress by choosing required configuration
$app42 upgradeWordPress
Enter Setup Name: demo

1: Medium
2: Heavy
Select Flavour [Medium]: 2

Upgrading Setup... OK

Operation is in progress, Please wait...-
  
WordPress setup demo upgraded successfully. 
app42 downgradeWordPress
command: app42 downgradeWordPress
Downgrade WordPress by choosing required configuration
$app42 downgradeWordPress
Enter Setup Name: demo

1: Light
2: Medium
Select Flavour [Light]: 2

Downgrading Setup... OK

Operation is in progress, Please wait...-
  
WordPress setup demo downgraded successfully.
app42 deleteWordPress
command: app42 deleteWordPress
Delete the WordPress setup
$app42 deleteWordPress
Enter WordPress Name: demo
Deleting WordPress Setup... OK

Operation is in progress, Please wait...-
WordPress Setup has been deleted successfully.
app42 stopWordPress
command: app42 stopWordPress
Stop the WordPress setup
$app42 stopWordPress
Enter WordPress Name: demo

Stopping WordPress Setup demo... OK

Operation is in progress, Please wait...|
WordPress Setup has been stopped successfully.
app42 startWordPress
command: app42 startWordPress
Start the WordPress setup
$app42 startWordPress
Enter WordPress Name: demo

Starting WordPress Setup demo... OK

Operation is in progress, Please wait...|
WordPress Setup has been started successfully.
app42 restartWordPress
command: app42 restartWordPress
Restart the WordPress setup
$app42 restartWordPress
Enter WordPress Name: demo

Restarting WordPress Setup demo... OK

Operation is in progress, Please wait...-
WordPress Setup has been restarted successfully.
app42 setupGPaaS
command: app42 setupGPaaS
Setup App42 GPaaS by choosing required configuration
$app42 setupGPaaS
Enter Setup Name: demo
Checking Setup Name Availability... OK

1: Amazon (Northern Virginia)
Select IaaS Provider [Amazon (Northern Virginia)]: 

1: t1.micro
2: m1.small
3: m1.medium
4: m1.large
5: m1.xlarge
Select Instance Configuration [t1.micro]: 

Do you want to add Static IP? [Yn]: 

Setting up the GPaaS infrastructure... OK

Operation is in progress, Please wait...|
GPaaS Setup has been completed successfully.

Your GPaaS setup has been completed successfully, For details, Login to PaaSHQ console.
app42 gPaaSSetups
command: app42 gPaaSSetups
List all the GPaaS setups
$app42 gPaaSSetups
 +-----------------------+-------------------------------------------+------------+----------------------------+------------+--------------------------+-----------+---------------+--------------+
  |                                                                                      === Setups List ===                                                                                       |
  +-----------------------+-------------------------------------------+------------+----------------------------+------------+--------------------------+-----------+---------------+--------------+
  | Created On            | App Url                                   | Setup Name | Iaas Provider              | Setup Type | Email                    | Vm Type   | Setup Flavour | Setup Status |
  +-----------------------+-------------------------------------------+------------+----------------------------+------------+--------------------------+-----------+---------------+--------------+
  | 2014-02-06 13:49:07.0 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | demo       | Amazon (Northern Virginia) | GPaaS      | pravinmishra88@gmail.com | Dedicated | t1.micro      | RUNNING      |
  +-----------------------+-------------------------------------------+------------+----------------------------+------------+--------------------------+-----------+---------------+--------------+
app42 gPaaSInfo
command: app42 gPaaSInfo
Show GPaaS setup information
$app42 gPaaSInfo
 Enter Setup Name: demo

  +-----------------------+-------------------------------------------+------------+----------------------------+------------+-----------+---------------+--------------+
  |                                                                        === gpaas Details ===                                                                        |
  +-----------------------+-------------------------------------------+------------+----------------------------+------------+-----------+---------------+--------------+
  | Created On            | Api Server Url                            | Setup Name | Iaas Provider              | Setup Type | Vm Type   | Setup Flavour | Setup Status |
  +-----------------------+-------------------------------------------+------------+----------------------------+------------+-----------+---------------+--------------+
  | 2014-02-21 09:36:43.0 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |  demo      | Amazon (Northern Virginia) | GPaaS      | Dedicated | t1.micro      | RUNNING      |
  +-----------------------+-------------------------------------------+------------+----------------------------+------------+-----------+---------------+--------------+
app42 upgradeGPaaS
command: app42 upgradeGPaaS
Upgrade GPaaS by choosing required configuration
$app42 upgradeGPaaS
Enter Setup Name: demo

1: m1.small
2: m1.medium
3: m1.large
4: m1.xlarge
Select Instance Configuration [m1.small]:

Upgrading Setup... OK

Operation is in progress, Please wait...|
GPaaS Setup has been upgraded successfully. 
app42 downgradeGPaaS
command: app42 downgradeGPaaS
Downgrade GPaaS by choosing required configuration
$app42 downgradeGPaaS
Enter Setup Name: demo

1: t1.micro
Select Instance Configuration [t1.micro]:

Downgrading Setup... OK

Operation is in progress, Please wait...-
GPaaS Setup has been updgraded successfully.
app42 deleteGPaaS
command: app42 deleteGPaaS
Delete the GPaaS setup
$app42 deleteGPaaS
Enter Setup Name: demo
Deleting Setup... OK

Operation is in progress, Please wait...|
GPaaS Setup has been deleted successfully.
app42 stopGPaaS
command: app42 stopGPaaS
Stop the GPaaS setup
$app42 stopGPaaS
Enter Setup Name: demo
Stopping GPaaS Setup demo... OK

Operation is in progress, Please wait...|
GPaaS Setup has been stopped successfully.
app42 startGPaaS
command: app42 startGPaaS
Start the GPaaS setup
$app42 startGPaaS
Enter Setup Name: demo
Starting GPaaS Setup fsdfds... OK

Operation is in progress, Please wait...-
GPaaS Setup has been started successfully.
app42 restartGPaaS
command: app42 restartGPaaS
Restart the GPaaS setup
$app42 restartGPaaS
Enter Setup Name: demo
Restarting GPaaS Setup demo... OK

Operation is in progress, Please wait...|
GPaaS Setup has been restarted successfully.
app42 assignStaticIP
command: app42 assignStaticIP
Assign Static IP to App belonging to GPaaS
$app42 assignStaticIP
Enter App Name: demoGPaaS

Assigning Static IP to App demoGPaaS... OK

Operation is in progress, Please wait...|
Static IP assigned successfully.
assign
app42 releaseStaticIP
command: app42 releaseStaticIP
Release Static IP from App belonging to GPaaS
$app42 releaseStaticIP
Enter App Name: demoGPaaS

Releasing Static IP from App demoGPaaS... OK

Operation is in progress, Please wait...|
Static IP released successfully.
app42 upgradeGPaaSDashboard
command: app42 upgradeGPaaSDashboard
Upgrade the GPaaS Setup Dashoard
$app42 upgradeGPaaSDashboard
Enter Setup Name: demo

Upgrading GPaaS Setup... OK

Operation is in progress, Please wait...
GPaaS Setup Dashboard has been upgraded successfully.
app42 runtimes
command: app42 runtimes
List supported runtimes by App42
$ app42 runtimes
+--------------+--------------+
| === Available Runtimes ===  |
+--------------+--------------+
| Name         | Version      |
+--------------+--------------+
| Ruby         | 2.0.0        |
| Java         | 6            |
| Java         | 7            |
| PHP          | 5.3          |
| PHP          | 5.5          |
+--------------+--------------+
app42 iaasProviders
command: app42 iaasProviders
List supported IaaS providers by App42
$ app42 iaasProviders
+-----------------+-----------------+
| === Available IaaS Providers ===  |
+-----------------+-----------------+
| Name            | Zone            |
+-----------------+-----------------+
| Amazon          | (Oregon)        |
+-----------------+-----------------+
app42 supportedServices
command: app42 supportedServices
List supported services by App42
$ app42 supportedServices
+--------------+--------------+
| === App42 PaaS Services === |
+--------------+--------------+
| Name         | Version      |
+--------------+--------------+
| MySQL        | 5.5.31       |
| Mongodb      | 2.4.4        |
| Couchdb      | 1.0.1        |
| PostgreSQL   | 9.1.9        |
+--------------+--------------+
app42 version
command: app42 version
Show Ruby client gem version
$ app42 version
App42 current version: 0.5.6
app42 help
command: app42 help
List available commands and their description
$app42 help

  Usage: app42 COMMAND [command-specific-options]

  Thank You for installing App42 PaaS Ruby Client! This is a powerful tool to make your Applications live with-in minutes.
  App42 PaaS is world's most advanced PaaS solution which supports multiple languages(Java, PHP, Ruby, Nodejs) and services
  (RDBMS like MySQL and PostgreSQL to NoSQL storage like MongoDB, Redis and CouchDB). To Get Started Signup at app42paas.shephertz.com,
  get your API Key and Secret key after you login and finally use App42 command to push your code to cloud. Enjoy Coding!! 

  Key
   keys                    #  List API key and Secret key
   addKeys                 #  Add API key and Secret key
   clearKeys               #  Clear API key and Secret key

  Applications 
   setupInfra              #  Setup your deployment and runtime environment i.e. Instance(Memory, CPU) and Technology Stack
   deploy                  #  Deploy the application over your runtime environment
   update                  #  Update the application over your runtime environment
   scale                   #  Scale application either by number of instance(s) OR kontena(s)
   descale                 #  Descale application either by number of instance(s) OR kontena(s)
   start                   #  Start the application
   stop                    #  Stop the application
   restart                 #  Restart the application
   deleteInfra             #  Delete the Infrastructure environment
   apps                    #  List all the deployed applications with their meta details
   appInfo                 #  Show meta information of the application
   appState                #  Show current state of the application
   logs                    #  Returns the log file URL(s) for the application
   addCustomURL            #  Add a custom URL to an app
   removeCustomURL         #  Remove a custom URL from an app
   customURLInfo           #  List all custom URL(s) of an app
   assignStaticIP          #  Assign Static IP to App belonging to GPaaS
   releaseStaticIP         #  Release Static IP from App belonging to GPaaS

  Services 
   createService           #  Creates a new service e.g. MySQL, MongoDB, CouchDB, PostgreSQL, Redis etc.
   deleteService           #  Delete provisioned service
   startService            #  Start the service
   restartService          #  Restart the service
   stopService             #  Stop the service
   resetServicePassword    #  Reset password of provisioned service
   scaleService            #  Vertically scale service by number of Kontena(s)
   descaleService          #  Vertically descale services by number of Kontena(s)
   uploadBackup            #  Upload existing backup into a service
   bindIP                  #  Bind IP to provisioned service
   unbindIP                #  Unbind IP from provisioned service
   bindInfo                #  Show IP bind information related to provisioned service
   services                #  List all the provisioned services with their meta details
   serviceInfo             #  Show meta information of the provisioned service

  BPaaS
   setupBPaaS             #  Setup App42 BPaaS by choosing required configuration
   deleteBPaaS            #  Delete the BPaaS setup
   startBPaaS             #  Start the BPaaS setup
   stopBPaaS              #  Stop the BPaaS setup
   restartBPaaS           #  Restart the BPaaS setup
   upgradeBPaas           #  Upgrade BPaaS by choosing required configuration
   downgradeBPaas         #  Downgrade BPaaS by choosing required configuration
   bPaaSInfo              #  Show BPaaS setup information
   bPaaSSetups            #  List all the BPaaS setups

  WordPress
   setupWordPress         #  Setup App42 WordPress by choosing required configuration
   deleteWordPress        #  Delete the WordPress setup
   startWordPress         #  Start the WordPress setup
   stopWordPress          #  Stop the WordPress setup
   restartWordPress       #  Restart the WordPress setup
   upgradeWordPress       #  Upgrade WordPress by choosing required configuration
   downgradeWordPress     #  Downgrade WordPress by choosing required configuration
   wordPressInfo          #  Show WordPress setup information
   wordPressSetups        #  List all the WordPress setups

  GPaaS
   setupGPaaS             #  Setup App42 GPaaS by choosing required configuration
   deleteGPaaS            #  Delete the GPaaS setup
   startGPaaS             #  Start the GPaaS setup
   stopGPaaS              #  Stop the GPaaS setup
   restartGPaaS           #  Restart the GPaaS setup
   upgradeGPaas           #  Upgrade GPaaS by choosing required configuration
   downgradeGPaas         #  Downgrade GPaaS by choosing required configuration
   gPaaSInfo              #  Show GPaaS setup information
   gPaaSSetups            #  List all the GPaaS setups
   upgradeGPaaSDashboard  #  Upgrade the GPaaS Setup Dashoard 

  Help
   version                 #  Show Ruby client gem version
   help                    #  List available commands and their description
   COMMAND --help          #  Display detailed help of a specific command

  Misc
   supportedServices       #  List supported services by App42
   iaasProviders           #  List supported IaaS providers by App42
   runtimes                #  List supported runtimes by App42
   activities              #  List all activities with their status