{"id":15693561,"url":"https://github.com/lvqq/pnpm-alias","last_synced_at":"2025-11-12T22:29:46.817Z","repository":{"id":147802831,"uuid":"562060326","full_name":"lvqq/pnpm-alias","owner":"lvqq","description":"Alias for pnpm commands, support zsh/bash/omz-plugin/powershell/cmd","archived":false,"fork":false,"pushed_at":"2023-05-07T04:30:21.000Z","size":12,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T04:57:15.988Z","etag":null,"topics":["alias","bash","omz-plugin","pnpm","pnpm-alias","powershell","windows-command-line","zsh"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lvqq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2022-11-05T07:12:45.000Z","updated_at":"2025-01-28T03:42:03.000Z","dependencies_parsed_at":"2023-05-27T14:15:32.257Z","dependency_job_id":null,"html_url":"https://github.com/lvqq/pnpm-alias","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lvqq/pnpm-alias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvqq%2Fpnpm-alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvqq%2Fpnpm-alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvqq%2Fpnpm-alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvqq%2Fpnpm-alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvqq","download_url":"https://codeload.github.com/lvqq/pnpm-alias/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvqq%2Fpnpm-alias/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284122919,"owners_count":26951149,"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-11-12T02:00:06.336Z","response_time":59,"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":["alias","bash","omz-plugin","pnpm","pnpm-alias","powershell","windows-command-line","zsh"],"created_at":"2024-10-03T18:45:41.020Z","updated_at":"2025-11-12T22:29:46.803Z","avatar_url":"https://github.com/lvqq.png","language":"PowerShell","readme":"# pnpm-alias\r\nAlias for pnpm common commands, support Windows PowerShell/Command and zsh/bash. Powered by [command-alias](https://github.com/lvqq/command-alias).\r\n\r\n# Alias\r\n| Alias              | Commands                    | Remarks                                                                             |\r\n| ------------------ | --------------------------- | ----------------------------------------------------------------------------------- |\r\n| pn                 | `pnpm`                      | The pnpm command                                                                    |\r\n| pna                | `pnpm add`                  | Install the specified packages as `dependencies`                                    |\r\n| pnad               | `pnpm add --save-dev`       | Install the specified packages as `devDependencies`                                 |\r\n| pnao               | `pnpm add --save-optional`  | Install the specified packages as `optionalDependencies`                            |\r\n| pnap               | `pnpm add --save-peer`      | Add the specified packages to `peerDependencies` and install it as dev dependencies |\r\n| pnag               | `pnpm add --global   `      | Install a package globally                                                          |\r\n| pni                | `pnpm install`              | Install all dependencies                                                            |\r\n| pnup               | `pnpm update`               | Update packages to the specified range                                              |\r\n| pnupg              | `pnpm update --global`      | Update global packages                                                              |\r\n| pnrm               | `pnpm remove`               | Removes packages from node_modules and from the project's package.json              |\r\n| pnrmg              | `pnpm remove --global`      | Removes a global package                                                            |\r\n| pnln               | `pnpm link`                 | Make the current local package accessible system-wide                               |\r\n| pnlng              | `pnpm link --global`        | Link a package to global node_modules or from global node_modules                   |\r\n| pnls               | `pnpm list`                 | List all the versions of packages in the current project                            |\r\n| pnlsg              | `pnpm list --global`        | List all the versions of packages in the global install directory                   |\r\n| pnw                | `pnpm why`                  | Show all packages that depend on the specified package                              |\r\n| pnr                | `pnpm run`                  | Run a script defined in the package's manifest file                                 |\r\n| pns                | `pnpm start`                | Run a command specified in the package.json's start property                        |\r\n| pnd                | `pnpm dev`                  | Run a command specified in the package.json's dev property                          |\r\n| pnd                | `pnpm build`                | Run a command specified in the package.json's build property                        |\r\n| pnt                | `pnpm test`                 | Run a command specified in the package.json's test property                         |\r\n| pne                | `pnpm exec`                 | Execute a shell command in scope of a project                                       |\r\n| pnpx               | `pnpm dlx`                  | Fetch a package from the registry without installing it as a dependency             |\r\n| pnvm               | `pnpm env use --global`     | Node.js version management                                                          |\r\n| pnf                | `pnpm --recursive --filter` | Run a command in specific subsets of packages in a workspace                        |\r\n\r\n# Installation\r\n## On Windows PowerShell\r\nFirst run the command to download script:\r\n```shell\r\niwr https://raw.githubusercontent.com/lvqq/pnpm-alias/main/alias/pnpm.ps1 -OutFile \"$Home\\pnpm.ps1\"\r\n```\r\n\r\nAnd then add the following code in your `Powershell` profile:\r\n```shell\r\n. $Home\\pnpm.ps1\r\n```\r\n\r\nThe [PowerShell profile](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles) can be found at:\r\n- Windows PowerShell (PowerShell 5): `C:\\Users\\\u003cUSERNAME\u003e\\Documents\\WindowsPowerShell\\Microsoft.PowerShell_profile.ps1`\r\n- PowerShell 7: `C:\\Users\\\u003cUSERNAME\u003e\\Documents\\PowerShell\\Microsoft.PowerShell_profile.ps1`\r\n- VSCode PowerShell: `C:\\Users\\\u003cUSERNAME\u003e\\Documents\\PowerShell\\Microsoft.VSCode_profile.ps1`\r\n\r\nFinally restart `Powershell`.\r\n\r\n## On Windows Command\r\nFirst run the command to download script:\r\n```shell\r\ncurl -fsSL https://raw.githubusercontent.com/lvqq/pnpm-alias/main/alias/pnpm.bat -o %USERPROFILE%\\pnpm.alias.bat\r\n```\r\n\r\nAnd to make it automatic, run the following command will add the registry value:\r\n```shell\r\nreg add \"HKCU\\Software\\Microsoft\\Command Processor\" /v AutoRun ^ /t REG_EXPAND_SZ /d \"%\"USERPROFILE\"%\\pnpm.alias.bat\" /f\r\n```\r\n\r\nFinally restart `Command`.\r\n\r\n## On bash-like command\r\n### On Oh My Zsh\r\nFirst run the command to download script:\r\n```shell\r\ncurl -fsSL https://raw.githubusercontent.com/lvqq/pnpm-alias/main/alias/pnpm.sh -o ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/pnpm/pnpm.plugin.zsh --create-dirs\r\n```\r\n\r\nAnd add it to your plugins in `~/.zshrc`:\r\n```\r\nplugins=(\r\n  ...\r\n  pnpm\r\n)\r\n```\r\n\r\nFinally restart `zsh`.\r\n\r\n### On zsh/bash\r\nFirst run the command to download script:\r\n```shell\r\ncurl -fsSL https://raw.githubusercontent.com/lvqq/pnpm-alias/main/alias/pnpm.sh -o $HOME/pnpm.alias.sh\r\n```\r\n\r\nAnd source it in `$HOME/.zshrc` or `$HOME/.bashrc`:\r\n```\r\nsource $HOME/pnpm.alias.sh\r\n```\r\n\r\nFinally restart `zsh` or `bash`.\r\n\r\n# Development\r\nUpdate `config/pnpm-alias.yaml` and then run `pnpm run build`.\r\n\r\n# License\r\n[MIT](https://github.com/lvqq/pnpm-alias/blob/main/LICENSE)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvqq%2Fpnpm-alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvqq%2Fpnpm-alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvqq%2Fpnpm-alias/lists"}