resdb-cli 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 resdb-cli, 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., resdb-cli-linux for Linux).
Make the downloaded binary executable:
chmod +x resdb-cli
resdb-cli uses a configuration file (config.ini) to store settings such as the MongoDB URI. Follow the steps below to configure the CLI:
Create a configuration file named config.ini, Replace the MongoDB_URI value with the appropriate MongoDB connection string.:
[Database] MongoDB_URI = mongodb://localhost:27017/ name = resui [User] current_user = gn@gmail.com
Once installed and configured, you can use resdb-cli to perform various actions related to ResDB and Python SDK instances. Run the CLI with the following command:
./resdb-cli
./resdb-cli login # Enter email and password when prompted
./resdb-cli logout
./resdb-cli create_instance <type>
./resdb-cli view_instances
./resdb-cli delete_instance <instance_id>
./resdb-cli whoami
For more detailed information about each command, run ./resdb-cli --help or ./resdb-cli --help.