Working with the command-line
To give you an idea of how the command-line works, here are a few pointers to help you get started. In this case, let’s begin by creating a new domain (or alternatively, namespace):
rhc domain create -n [DomainName] -l [rhlogin] -p [password]
Then new applications can be created as follows:
rhc app create -a [AppName] -t [AppType]
Both manual and automatic scaling options are available. Automatic scaling can be enabled with the -s option while creating the application (adding it to the above command). To scale the application manually, an SSH connection to the application needs to be established and changes can be made with the addgear and remove-gear commands: ssh [AppUUID]@[AppName]-[DomainName].example.com add-gear -a [AppName] -u [AppUUID] -n [DomainName] remove-gear -a [AppName] -u [AppUUID] -n [DomainName]
New cartridges can be also be added, if needed, as follows:
rhc app cartridge add -a AppName -c CartType
ThHsH FRPPDQGs hHOS LQ HDsLOy FRQfiJXULQJ WhH application. Developers can make changes to the code, or deploy the application, with the Git commands.
These are some of the commands generally used to set up and get started. There are a lot more options and arguments available, for which you can refer to the documentation.
2SHQ6hLIW FDQ DOsR EH FRQfiJXUHG WR wRUN GLUHFWOy from Eclipse, with the help of an extension known as JBoss tools, which can be installed directly from the Eclipse marketplace. Then you will be able to create a new