Linux command
vsce 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Package
vsce package
Publish
vsce publish
Publish with an automatic
vsce publish [patch|minor|major]
Log in
vsce login [publisher_name]
Verify a Personal Access Token
vsce verify-pat [publisher_name]
Show metadata
vsce show [publisher.extension]
List files
vsce ls
Unpublish
vsce unpublish [publisher.extension]
说明
vsce (Visual Studio Code Extension Manager) is Microsoft's official CLI for packaging, publishing, and managing VS Code extensions on the Visual Studio Marketplace. It handles the full lifecycle of extension development from local packaging to public distribution. The `package` command bundles an extension project into a `.vsix` file that can be installed locally or shared directly. The `publish` command uploads the packaged extension to the Marketplace, with optional automatic version bumping using semver increments (major, minor, patch). A publisher identity is required for Marketplace operations. Authentication uses Azure DevOps Personal Access Tokens. Additional commands handle publisher credentials, inspection of package contents, and querying Marketplace metadata.
参数
- package
- Package the extension into a .vsix file.
- publish _VERSION_
- Publish the extension to the Marketplace. _VERSION_ may be `major`, `minor`, `patch`, or an explicit version.
- login _PUBLISHER_
- Store credentials for a publisher.
- logout _PUBLISHER_
- Remove a publisher's stored credentials.
- verify-pat _PUBLISHER_
- Verify that the Personal Access Token has publish rights.
- show _EXTENSION_
- Show metadata (downloads, ratings, versions) for an extension.
- search _TEXT_
- Search the Marketplace for extensions.
- ls
- List files that would be packaged or published.
- ls-publishers
- List known publishers.
- delete-publisher _NAME_
- Delete a publisher.
- unpublish _EXTENSION_
- Remove an extension from the Marketplace.
- -p, --pat _TOKEN_
- Personal Access Token used to authenticate.
- -t, --target _TARGET_
- Target platform (e.g., `linux-x64`, `win32-x64`).
- -o, --out _PATH_
- Output file or directory for the packaged .vsix.
- --pre-release
- Mark the package or publication as a pre-release.
- --no-yarn / --yarn
- Force use of npm or Yarn for dependency installation.
- --skip-duplicate
- Skip publishing when the same version already exists.
FAQ
What is the vsce command used for?
vsce (Visual Studio Code Extension Manager) is Microsoft's official CLI for packaging, publishing, and managing VS Code extensions on the Visual Studio Marketplace. It handles the full lifecycle of extension development from local packaging to public distribution. The `package` command bundles an extension project into a `.vsix` file that can be installed locally or shared directly. The `publish` command uploads the packaged extension to the Marketplace, with optional automatic version bumping using semver increments (major, minor, patch). A publisher identity is required for Marketplace operations. Authentication uses Azure DevOps Personal Access Tokens. Additional commands handle publisher credentials, inspection of package contents, and querying Marketplace metadata.
How do I run a basic vsce example?
Run `vsce package` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does package do in vsce?
Package the extension into a .vsix file.