Skip to content
microsoft image/svg+xml

GitHub Action

setup-msstore-cli

v1 Latest version

setup-msstore-cli

microsoft image/svg+xml

setup-msstore-cli

Setup Microsoft Store Developer CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: setup-msstore-cli

uses: microsoft/setup-msstore-cli@v1

Learn more about this action in microsoft/setup-msstore-cli

Choose a version

setup-msstore-cli status

Setup MSStore Developer CLI

This repository contains the source code for the setup-msstore-cli GitHub Action as well as the setup-msstore-cli Azure DevOps extension.

This action/extension sets up the MSStore Developer CLI on a runner/agent. The MSStore Developer CLI is a command line interface that allows you to manage your Microsoft Store apps and in-app products.

Example (GitHub Action):

name: MSStore CLI
on: [push]
jobs:
  build:
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v3
    - uses: microsoft/setup-msstore-cli@v1
    - run: msstore reconfigure --tenantId ${{ secrets.PARTNER_CENTER_TENANT_ID }} --sellerId ${{ secrets.PARTNER_CENTER_SELLER_ID }} --clientId ${{ secrets.PARTNER_CENTER_CLIENT_ID }} --clientSecret ${{ secrets.PARTNER_CENTER_CLIENT_SECRET }}
    - run: msstore apps list

Example (Azure DevOps extension):

name: MSStore CLI
trigger:
- main
pool:
  vmImage: 'windows-latest'
steps:
- checkout: self
- task: UseMSStoreCLI@0
- script: msstore reconfigure --tenantId $(PARTNER_CENTER_TENANT_ID) --sellerId $(PARTNER_CENTER_SELLER_ID) --clientId $(PARTNER_CENTER_CLIENT_ID) --clientSecret $(PARTNER_CENTER_CLIENT_SECRET)
- script: msstore apps list