{"id":24884367,"url":"https://github.com/mostafa-drz/genshell","last_synced_at":"2026-04-12T03:01:43.284Z","repository":{"id":239226721,"uuid":"795215078","full_name":"mostafa-drz/genshell","owner":"mostafa-drz","description":"Genshell A CLI tool that generates shell commands from natural language descriptions using AI models (Google's Gemini and OpenAI's ChatGPT). Supports multiple profiles, various shell environments, and easy configuration management.","archived":false,"fork":false,"pushed_at":"2024-05-10T19:50:01.000Z","size":87,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T09:46:58.993Z","etag":null,"topics":["ai","chatgpt","cli","gemini","nodejs","npm","openai","shell","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mostafa-drz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T20:11:59.000Z","updated_at":"2024-05-10T19:48:04.000Z","dependencies_parsed_at":"2024-05-10T20:40:33.439Z","dependency_job_id":null,"html_url":"https://github.com/mostafa-drz/genshell","commit_stats":null,"previous_names":["mostafa-drz/genshell"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mostafa-drz/genshell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafa-drz%2Fgenshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafa-drz%2Fgenshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafa-drz%2Fgenshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafa-drz%2Fgenshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mostafa-drz","download_url":"https://codeload.github.com/mostafa-drz/genshell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafa-drz%2Fgenshell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31702581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chatgpt","cli","gemini","nodejs","npm","openai","shell","typescript"],"created_at":"2025-02-01T14:26:58.842Z","updated_at":"2026-04-12T03:01:43.267Z","avatar_url":"https://github.com/mostafa-drz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Genshell\n\nGenshell is a CLI tool that generates shell commands from natural language descriptions using AI models (Google's Gemini and OpenAI's ChatGPT).\n\n## Features\n\n- Generate shell commands using natural language descriptions.\n- Support for multiple AI providers (Gemini and ChatGPT).\n- Configurable profiles to switch between different API keys and models.\n- Supports various shell environments (Bash, Zsh, Fish, PowerShell).\n\n## Installation\n\n```sh\nnpm install -g genshell\n```\n\n## Configuration\n\nYou can configure multiple profiles and switch between them.\n\n### Add a Profile\n\n```sh\ngenshell config add --profile-name \u003cprofileName\u003e --api-key \u003capiKey\u003e --model \u003cmodel\u003e --provider \u003cprovider\u003e\n```\n\n### Update a Profile\n\n```sh\ngenshell config update --profile-name \u003cprofileName\u003e --api-key \u003capiKey\u003e --model \u003cmodel\u003e --provider \u003cprovider\u003e\n```\n\n### List Profiles\n\n```sh\ngenshell config list\n```\n\n### Show active Profile\n\n```sh\ngenshell config active\n```\n\n### activate a different Profile\n\n```sh\ngenshell config activate \u003cprofileName\u003e\n```\n\n### Remove Profile\n\n```sh\ngenshell config remove --profile-name \u003cprofileName\u003e\n```\n\n## Usage\n\nTo generate a shell command:\n\n```sh\ngenshell \"description of the command\"\n```\n\nTo generate and execute the command:\n\n```sh\ngenshell \"description of the command\" --execute\n```\n\n## Examples\n\n```sh\ngenshell \"list all files in the current directory\"\n# Output: ls -al\n\ngenshell \"create a new directory named 'my-dir'\"\n# Output: mkdir my-dir\n```\n\n## Profile Details\n\n### Providers\n\n- `chatgpt`: Use OpenAI's ChatGPT for generating shell commands.\n- `gemini`: Use Google's Gemini for generating shell commands.\n\n### Models\n\n#### For ChatGPT\n\nCheck [here](https://platform.openai.com/docs/guides/text-generation) for a list of supported models by OpenAI API.\n\n#### For Gemini\n\nCheck [here](https://ai.google.dev/gemini-api/docs/models/gemini) for a list of supported models by Gemini API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostafa-drz%2Fgenshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmostafa-drz%2Fgenshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostafa-drz%2Fgenshell/lists"}