| commit | 4ffeab7a2968c0128676aadf37fc8b1b494f3ed7 | [log] [tgz] |
|---|---|---|
| author | Gopal Nambiar <gopalnambiar2@gmail.com> | Wed Feb 28 14:50:42 2024 -0800 |
| committer | Gopal Nambiar <gopalnambiar2@gmail.com> | Wed Feb 28 14:50:42 2024 -0800 |
| tree | 15ca98c78fa1d7c35d91187b82a6b235e4cddf93 | |
| parent | f7abb2dc7673573954b9601367e68706bbec2bf0 [diff] |
Python -> Ruby
ResCLI is a command-line interface for managing ResDB instances and Python SDK instances. It provides functionalities to create, delete, view, and manage instances in a simple and efficient way.
To use ResCLI, you can download the binary from the Releases page on GitHub.
Go to the Releases page.
Download the latest release for your operating system (e.g., res-cli-linux for Linux).
Make the downloaded binary executable:
chmod +x res-cli
res-cli uses a configuration file (config.ini) to store settings such as the flaskBaseUrl. Follow the steps below to configure the CLI:
Create a configuration file named config.ini, Replace the flaskBaseUrl value with the appropriate Flask API server connection string.:
[Server] flask_base_url = http://xyz:1234 [User] current_user = bob@gmail.com
Once installed and configured, you can use res-cli to perform various actions related to ResDB and Python SDK instances. Run the CLI with the following command:
./res-cli
./res-cli login # Enter email and password when prompted
./res-cli logout
./res-cli create_instance <type>
./res-cli view_instances
./res-cli delete_instance <instance_id>
./res-cli whoami
For more detailed information about each command, run ./res-cli --help or ./res-cli --help.