{"id":16630236,"url":"https://github.com/anoopt/pnp.powershell.predictor","last_synced_at":"2025-09-25T12:11:44.892Z","repository":{"id":61183346,"uuid":"538932919","full_name":"anoopt/PnP.PowerShell.Predictor","owner":"anoopt","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-10T16:08:21.000Z","size":946,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T13:01:46.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/anoopt.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}},"created_at":"2022-09-20T10:33:43.000Z","updated_at":"2024-08-20T14:58:46.000Z","dependencies_parsed_at":"2022-10-12T07:05:55.972Z","dependency_job_id":null,"html_url":"https://github.com/anoopt/PnP.PowerShell.Predictor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anoopt/PnP.PowerShell.Predictor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2FPnP.PowerShell.Predictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2FPnP.PowerShell.Predictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2FPnP.PowerShell.Predictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2FPnP.PowerShell.Predictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anoopt","download_url":"https://codeload.github.com/anoopt/PnP.PowerShell.Predictor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2FPnP.PowerShell.Predictor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276914730,"owners_count":25727413,"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-25T02:00:09.612Z","response_time":80,"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":"2024-10-12T04:45:41.940Z","updated_at":"2025-09-25T12:11:44.875Z","avatar_url":"https://github.com/anoopt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PnP PowerShell Predictor module\n\n## Overview\n\n[PnP PowerShell Predictor](https://www.powershellgallery.com/packages/PnP.PowerShell.Predictor) is a PowerShell\nmodule that helps you navigate the cmdlets and parameters of\n[PnP PowerShell](https://pnp.github.io/powershell/). It provides suggestions for command completion when using PnP PowerShell cmdlets.\n\nPnP PowerShell Predictor uses the\n[subsystem plugin model](/powershell/scripting/learn/experimental-features#pssubsystempluginmodel)\navailable in PowerShell 7.2. This updated version requires\n[PSReadLine 2.2.2](https://www.powershellgallery.com/packages/PSReadLine/2.2.2) or higher to display\nsuggestions.\n\n![demo](./assets/demo.gif)\n\n## Requirements\n\nRequired configuration for PnP PowerShell Predictor:\n\n- [PowerShell 7.2](https://github.com/PowerShell/PowerShell/) or higher\n- [PSReadline 2.2.2](https://github.com/PowerShell/PSReadLine/) or higher\n\nInstall the latest version of PSReadLine:\n\n```powershell\nInstall-Module -Name PSReadline\n```\n\n#### Set preferred source and view for suggestions\n\nEnable predictions from history and plugins\n\n```powershell\nSet-PSReadLineOption -PredictionSource HistoryAndPlugin\n```\n\nEnable list view:\n\n```powershell\nSet-PSReadLineOption -PredictionViewStyle ListView\n```\n\n## Getting started\n\n### Install PnP PowerShell Predictor\n\nTo install the PnP.PowerShell.Predictor PowerShell module run the following\n\n```powershell\nInstall-Module -Name PnP.PowerShell.Predictor\n```\n\n### Import PnP PowerShell Predictor\n\nTo import the PnP PowerShell Predictor PowerShell module in the current session run the following\n\n```powershell\nImport-Module -Name PnP.PowerShell.Predictor\n```\n\n### Use PnP PowerShell Predictor\n\nOnce imported, start typing PnP PowerShell cmdlet (e.g. `Connect-PnPOnline`) and see the predictions loading.\n\n### Predictions source warning\n\nThe module tries to get the version of the cmdlets from GitHub based on the PnP PowerShell version on your machine. In case, it is not able to find the version of cmdlets from GitHub then it will load a set of predictions that are shipped with the module.\n\nHence some commands from the predictions might not be present in the version on PnP PowerShell on your machine and they might not work.\n\nTo disable this warning, set the environment vaiable `PnPPredictorShowWarning` to false in your profile.ps1 file.\n\n```powershell\n$env:PnPPredictorShowWarning = \"false\"\n```\n## Changing predictions search method\n\nBy default the module uses `Contains` search i.e. it shows predictions that contain the input entered. This can be changed to either `StartsWith` or `Fuzzy` by using the following cmdlet\n\n```powershell\nSet-PnPPredictorToolSearch -Method StartsWith|Contains|Fuzzy\n```\n\n`StartsWith` - as per the name shows predictions that start with the entered input\n`Fuzzy` - does a Fuzzy search and returns predictions. Sometimes the results might not be as per the expectaion in this case.\n\n## Disabling PnP PowerShell Predictor suggestions in the current session\n\nTo disable PnP PowerShell Predictor suggestions in the current session run the following\n\n```powershell\nDisable-PnPPredictorToolSuggestions\n```\n\n## Enabling PnP PowerShell Predictor suggestions in the current session\n\nTo enable PnP PowerShell Predictor suggestions in the current session run the following\n\n```powershell\nEnable-PnPPredictorToolSuggestions\n```\n## Uninstallation\n\nOnce installed and enabled, PnP PowerShell Predictor is loaded in the PowerShell profile.\nTo uninstall the PnP.PowerShell.Predictor module:\n\n1. Close **all** PowerShell sessions including VS Code.\n\n1. Launch a PowerShell session with no profile.\n\n   ```powershell\n   pwsh -noprofile\n   ```\n\n1. Uninstall PnP PowerShell Predictor\n\n   ```powershell\n   Uninstall-Module -Name PnP.PowerShell.Predictor -Force\n   ```\n\n1. Close PowerShell","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoopt%2Fpnp.powershell.predictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanoopt%2Fpnp.powershell.predictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoopt%2Fpnp.powershell.predictor/lists"}