Orbita CLI
Orbita Command Line Interface is a standalone package that can export your whole project from one environment and import the project in another environment.
Steps for Mac OS / Linux
Please follow the below document for the steps to follow in Mac Operating System.
Download the zip file orbita-cli-macos (attached).
Unzip the file to a folder (the name will be orbita-cli-macos by default).
Go to the Terminal.
Navigate to the unzipped orbita-cli-macos folder in the terminal. (using cd <filepath>).
Run the below command to save the configuration.
./orbita-cli-macos config -sE https://source.orbita.cloud:8443 -dE https://destination.orbita.cloud:8443 -sP 5dbbe3267cb6da5c2ff1278b -dP 5f923dd546a487006fc6867b -sU sourceuser@example.com -dU destinationuser@example.com
To review the configuration data, use this command.
./orbita-cli-macos config -l
Use the below code to initiate the export and import of the project.
./orbita-cli-macos deploy
You will be prompted for the source password and then the destination password. You don't have to input the passwords if you use APIKeys of the source and destination users.
You will again be prompted to continue. Type
y
and pressEnter
.The project will be exported from the source environment and imported to the destination environment.
Help command ./orbita-cli-macos config -h
You have to use the commands in the below order. The below example is with APIKeys.
type y
and press Enter
Deployment completed.
Generate API Key
URL: /api/users/:id/apikey/key
Method: PUT
Response: User details with API Key
Only Admin users can get the API keys.
Appendix
Argument | Argument type | Description |
---|---|---|
-u | <username> | The specified username will be used for both source/destination |
-sU | <username> | Specify source username |
-dU | <username> | Specify destination username |
-sE | <baseURL> | Specify source base URL |
-dE | <baseURL> | Specify destination base URL |
-sP | <projectID> | Specify source project ID |
-dP | <projectID> | Specify destination project ID |
-sAPIKEY | <APIKEY> | Specify source API Key |
-dAPIKEY | <APIKEY> | Specify destination API Key |
-l | <information> | Display the Configuration Data |
-pWD | <password> | The specified password will be used for both source/destination |
-sPWD | <password> | Specify source username |
-dPWD | <password> | Specify destination username |