Choreo CLI (code name $chor
) reference is based on Choreo CLI specification
- auth - authentication and authorization actions in Choreo
- version - get Choreo client version information
- app - manage apps
auth
command is used to manage authentication and authorization in Choreo platform.
Manage authentication and authorization.
-h, --help help for auth
auth login
command can be used to login to Choreo. This is required to
perform all the tasks that interact with Choreo.
Login to Choreo.
auth login
$ chor auth login
-h, --help help for login
auth connect
command is used to connect a source code provider to Choreo.
At the moment only GitHub is supported.
Connect a source code provider.
auth connect SOURCE_PROVIDER
$ chor auth connect github
-h, --help help for connect
version
command can be used to retrieve version information
related to the Choreo client. In addition to the CLI version name,
Git commit hash, built date and target platform details are also printed.
Get Choreo client version information.
version
$ chor version
Version: 0.0.1
Git commit: b086b964ae81e8277842fad625784672bb44a3a7
Built: 2019-08-15T11:06:22+0530
OS/Arch: linux/amd64
-h, --help help for version
app
command is used to manage applications created with the Choreo platform.
Manage applications.
app
-h, --help help for application
app create
command is used to create a new application with the Choreo platform.
Create an application.
app create APP_NAME [options]
$ chor app create app1 -d "My first app"
-d, --description string Specify description for the application
-h, --help help for create
app list
command is used to list applications created with the Choreo platform.
List applications.
app list
$ chor app list
-h, --help help for list
app deploy
command is used to deploy a Ballerina application to the Choreo platform.
Deploy a Ballerina application.
app deploy GITHUB_URL
$ chor app deploy https://github.com/someuser/choreo-sample
$ chor app deploy -n my-app https://github.com/someuser/choreo-sample
-h, --help help for deploy
-n, --name string the name to be used for the created application
app logs
command is used to manage logs of a deployed application.
Manage application logs.
-h, --help help for list
application logs show APP_ID
command is used to show logs of a deployed application.
Show logs of a deployed application. Maximum number of log lines shown is 500. If the number of log lines is not specified 50 lines is shown by default.
app logs show APP_ID
$ chor app logs show app1234567890abcd
-n, --number-of-lines specify number of log lines which should be fetched
-h, --help help for list
app delete
command is used to delete an application created in the Choreo platform.
It will also remove the app deployment if the application is already deployed.
Delete an application.
app delete APP_ID
$ chor app delete a123456788901
-h, --help help for deploy
app status
command is used to retrieve the status of an application created in the Choreo platform.
Get status of an application
app status APP_ID
$ chor app status a123456788901
-h, --help help for deploy
-v, --verbose verbose output