{"id":23777937,"url":"https://github.com/TNG/please-pwsh","last_synced_at":"2025-09-05T22:31:10.967Z","repository":{"id":229744378,"uuid":"625214668","full_name":"TNG/please-pwsh","owner":"TNG","description":"An AI helper for creating CLI commands in Powershell","archived":false,"fork":false,"pushed_at":"2024-08-13T02:02:08.000Z","size":18,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-15T05:42:30.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TNG.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2023-04-08T12:20:36.000Z","updated_at":"2024-12-31T15:14:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"44bcd05a-63f4-4ca3-b663-62e9206973f4","html_url":"https://github.com/TNG/please-pwsh","commit_stats":null,"previous_names":["tng/please-pwsh"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TNG/please-pwsh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TNG%2Fplease-pwsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TNG%2Fplease-pwsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TNG%2Fplease-pwsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TNG%2Fplease-pwsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TNG","download_url":"https://codeload.github.com/TNG/please-pwsh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TNG%2Fplease-pwsh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273832162,"owners_count":25176262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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":[],"created_at":"2025-01-01T09:00:52.532Z","updated_at":"2025-09-05T22:31:10.597Z","avatar_url":"https://github.com/TNG.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# Please CLI for PowerShell Core\r\n\r\nAn AI helper script to create PowerShell commands. It is a copy of [Please CLI](https://github.com/TNG/please-cli/).\r\n\r\nThe initial approach to `ChatGPT please convert the bash script to pwsh` did not work. So its a rewrite that still contains trace amounts of AI.\r\n\r\n## Usage\r\n\r\nSame as [Please CLI](https://github.com/TNG/please-cli/), it translates natural language into PowerShell commands with the help of GPT:\r\n\r\n```\r\nPlease \"Get all files in the current directory that are larger than 1 MB\"\r\n\r\n🔣 Command:\r\n   Get-ChildItem -Path . -File | Where-Object { $_.Length -gt 1MB }\r\n❓ What should I do?\r\n[A] Abort  [C] Copy  [I] Invoke  [?] Help (default is \"A\"):\r\n```\r\n\r\nIt can also explain commands:\r\n\r\n```\r\nPlease -explain \"Get-ChildItem -Path . -File | Where-Object { $_.Length -gt 1MB }\"\r\n☝ The command lists all the files in the current directory with a file size greater than 1MB.\r\n\r\n🔣 Command:\r\n   Get-ChildItem -Path . -File | Where-Object { .Length -gt 1MB }\r\n❓ What should I do?\r\n[A] Abort  [C] Copy  [I] Invoke  [?] Help (default is \"A\"):\r\n```\r\n\r\n## Help\r\nFor help and parameter explanation run `Get-Help Please`.\r\n\r\n## Prerequisites\r\n\r\nYou need an [OpenAI API key](https://platform.openai.com/account/api-keys) and access to GPT 3.5 Turbo.\r\n\r\n## Installation\r\n\r\nFrom the [PowerShell Gallery](https://www.powershellgallery.com/packages/PleasePwsh) with\r\n```\r\nInstall-Module -Name PleasePwsh\r\n```\r\n\r\nSet the OpenAI API key as environment variable.\r\n- Open PowerShell profile: `Code $PROFILE`\r\n- Add a line with your API key: `$ENV:OPENAI_API_KEY = \u003cYOUR_API_KEY\u003e`\r\n\r\n\r\n## Configuration\r\n\r\nYou can use the following OpenAI compatible environment variables:\r\n* `OPENAI_API_KEY` - Your OpenAI API key\r\n* `OPENAI_API_BASE` - The base URL for the OpenAI API\r\n* `OPENAI_API_VERSION` - The version of the OpenAI API\r\n\r\nYou can use the more specific environment variables if you do not want to change OpenAI settings globally:\r\n* `PLEASE_OPENAI_API_KEY` - Your OpenAI API key\r\n* `PLEASE_OPENAI_API_BASE` - The base URL for the OpenAI API\r\n* `PLEASE_OPENAI_API_VERSION` - The version of the OpenAI API\r\n* `PLEASE_OPENAI_CHAT_MODEL` - The chat model to use\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTNG%2Fplease-pwsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTNG%2Fplease-pwsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTNG%2Fplease-pwsh/lists"}