The Beginner CLI Tool is a Python-based command-line interface designed to assist newcomers in learning and executing Linux commands interactively. It provides features such as command explanations and scenario-based command suggestions.
.
├── beg_cli
│ ├── argsparser.py # Main script for command-line parsing
│ ├── config.ini # Configuration file
│ ├── demo.py # Demo script or additional functionality
│ ├── __init__.py # Initialization file for the CLI package
│ └── __pycache__ # Cache directory (automatically generated)
│ └── argsparser.cpython-311.pyc
├── LICENSE.md # License file
├── poetry.lock # Poetry lock file (dependency lock)
├── pyproject.toml # Poetry project configuration
├── README.md # Project README file (you are here!)
└── tests
└── __init__.py # Initialization file for tests (if any)
To install the Beginner CLI Tool, follow these steps:
Clone the repository:
git clone https://github.com/Mindslayer001/Beginner-Cli.git
Navigate to the project directory:
cd Beginner-Cli
Run the Setup.sh:
chmod +x setup.sh
./setup.sh
Obtain Gemini API Key:
To gain access to the Gemini API, you'll need to acquire an API key. Follow these steps to obtain your API key:
To use the Beginner CLI Tool, you have several options:
Command Explainer: Provide basic information and examples of a specific Linux command.
begcli -i [COMMAND]
Example:
begcli -i mkdir
Scenario-based Command Suggestion: Suggests commands based on a user scenario.
begcli -s [User Query]
Example:
begcli -s "I want to rename a file"
Contributions to the Beginner CLI Tool are welcomed! If you'd like to contribute, please follow these steps:
git checkout -b feature/your_feature
).git commit -am 'Add some feature'
).git push origin feature/your_feature
).This project is licensed under the MIT License - see the LICENSE.md file for details.
The project utilizes the Gemini API provided by GenAI under their free tier. Please refer to the GenAI Terms of Service for more information about the usage of their services.