DOB-CLI - User Guide

Use the DOB-CLI to remotely execute tasks on the DevOps-Bot host server with ease. This guide provides step-by-step instructions to install, configure, and test the DOB-CLI.

User Guide: DOB-CLI

The DOB-CLI enables users to manage and execute tasks on a DevOps-Bot host server remotely. To use the CLI, you need a **persona credential**, which is part of the RBAC (Role-Based Access Control) functionality.

Pre-requisites

Ensure the Following Are Installed:

Installation Steps

  1. Update your package list:
  2. apt-get update
  3. Install Git:
  4. apt install git
  5. Install Pip:
  6. apt install python3-pip
  7. Clone the DOB-CLI repository:
  8. git clone https://github.com/Devops-Bot-Official/dob-cli.git
  9. Navigate to the repository folder:
  10. cd dob-cli
  11. Install the DOB-CLI package:
  12. pip install dob_cli-0.1-py3-none-any.whl
  13. Verify installation by running:
  14. dob --help

Configuration Steps

To configure DOB-CLI, you need the following:

Steps:

  1. Create a private key file:
  2. vim david_private.pem

    Add your private key contents to the file and save.

  3. Run the following command to configure the CLI:
  4. 
    dob config --persona-name david --token 827a89a7-8c36-416b-8e44-e7f78960618f --private-key-path david_private.pem --host-endpoint http://IP:4102
                

    Replace the values with your own persona name, token, private key path, and host endpoint.

Testing the Configuration

Run a Sample Proxy Command:

To test the configuration, execute the following command:

dob run generate-webhook-secret

If configured correctly, you’ll see a confirmation message, and a webhook secret will be generated successfully.

Notes


Installation Steps PDF Reference for DOB-CLI

For detailed installation steps, please refer to the PDF documentation:


Your browser does not support PDFs. Download the PDF.