Giter Site home page Giter Site logo

cmdbuddy's Introduction

CMDbuddy

Experience terminal mastery made easy with our generative guide, featuring smart command suggestions, typo tolerance, and real-time assistance for seamless navigation and learning.

Preview

Alt Text

Acknowledgements

This project is built upon llm-app. We extend our gratitude to the llm-app contributors for their valuable work and contributions.

Key features

  1. Smart Command Suggestions: The guide provides intelligent command suggestions based on user input, making it easier for users to navigate the terminal efficiently.
  2. Gives response with respect to your current machine specifications.
  3. Typo Tolerance

Get Started

Prerequisites

  1. Make sure that Python 3.10 or above installed on your machine.
  2. Download and Install Pip to manage project packages.
  3. Create an OpenAI account and generate a new API Key: To access the OpenAI API, you will need to create an API Key. You can do this by logging into the OpenAI website and navigating to the API Key management page.

Step 1: Clone the repository

This is done with the git clone command followed by the URL of the repository:

git clone https://github.com/ujjwall-R/CMDbuddy

Next, navigate to the repository:

cd CMDbuddy

Step 2: Set environment variables

Create an .env file in the root directory and add the following environment variables, adjusting their values according to your specific requirements and setup.

For example:

APP_VARIANT=contextful
PATHWAY_REST_CONNECTOR_HOST=0.0.0.0
PATHWAY_REST_CONNECTOR_PORT=8080
OPENAI_API_KEY=<Your Token>
PATHWAY_CACHE_DIR=/tmp/cache

Step 3: Build and deploy custom API [You can test by deploying it locally on port 8080]

You can install and run the LLM App.

  • Install poetry:

    pip install poetry
  • Install llm_app and dependencies:

    poetry install --with examples --extras local
    pip install poetry

    You can omit --extras local part if you're not going to run local example.

  • Run the examples: You can start the example with the command:

    poetry run ./run_examples.py contextful

Step 3: Set CMDbuddy as your tool

Add path to main.sh in ~/.bashrc. If you use zsh add the path in ~/.zshrc.

# Add the following line at the end of the ~/.bashrc file
alias cbuddy='path/to/project/main.sh'

Restart terminal or run:

source ~/.bashrc

Step 4: Start to use it

  1.     cbuddy

Troubleshooting

Please check out our Q&A to get solutions for common installation problems and other issues.

Raise an issue

To provide feedback or report a bug, please raise an issue.

Contributing

Anyone who wishes to contribute to this project, whether documentation, features, bug fixes, code cleanup, testing, or code reviews, is very much encouraged to do so.

Coming Soon

  • Better query support
  • open source llm support

Need help?

Feel free to reach out.

cmdbuddy's People

Contributors

ujjwall-r avatar

Stargazers

Mudit Srivastava avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.