Home / Market / msstore cli

msstore cli

Microsoft Store Developer CLI (msstore) for publishing Windows applications to the Microsoft Store. Use when asked to configure Store credentials, list Store apps, check submission status, publish submissions, manage package flights, set up CI/CD for Store publishing, or integrate with Partner Center. Supports Windows App SDK/WinUI, UWP, .NET MAUI, Flutter, Electron, React Native, and PWA applications.

skill★ 417947027 dlskills.shMITInstall in CosmosUpstream Source

Documentation & Preview

--- name: msstore-cli description: 'Microsoft Store Developer CLI (msstore) for publishing Windows applications to the Microsoft Store. Use when asked to configure Store credentials, list Store apps, check submission status, publish submissions, manage package flights, set up CI/CD for Store publishing, or integrate with Partner Center. Supports Windows App SDK/WinUI, UWP, .NET MAUI, Flutter, Electron, React Native, and PWA applications.' license: MIT

---

Microsoft Store Developer CLI (msstore)

The Microsoft Store Developer CLI (msstore) is a cross-platform command-line interface for publishing and managing applications in the Microsoft Store. It integrates with Partner Center APIs and supports automated publishing workflows for various application types.

When to Use This Skill

Use this skill when you need to:

Prerequisites

Partner Center Setup

Before using msstore, you need to create an Azure AD application with Partner Center access:

  1. Go to Partner Center
  2. Navigate to Account settings > User management > Azure AD applications
  3. Create a new application and note the Tenant ID, Client ID, and Client Secret
  4. Grant the application appropriate permissions (Manager or Developer role)

Core Commands Reference

info - Print Configuration

Display the current credential configuration.

msstore info

Options:

| Option | Description | | ------ | ----------- | | -v, --verbose | Print verbose output |

reconfigure - Configure Credentials

Configure or update Microsoft Store API credentials.

msstore reconfigure [options]

Options:

| Option | Description | | ------ | ----------- | | -t, --tenantId | Azure AD Tenant ID | | -s, --sellerId | Partner Center Seller ID | | -c, --clientId | Azure AD Application Client ID | | -cs, --clientSecret | Client Secret for authentication | | -ct, --certificateThumbprint | Certificate thumbprint (alternative to client secret) | | -cfp, --certificateFilePath | Certificate file path (alternative to client secret) | | -cp, --certificatePassword | Certificate password | | --reset | Reset credentials without full reconfiguration |

Examples:

# Configure with client secret
msstore reconfigure --tenantId $TENANT_ID --sellerId $SELLER_ID --clientId $CLIENT_ID --clientSecret $CLIENT_SECRET

# Configure with certificate
msstore reconfigure --tenantId $TENANT_ID --sellerId $SELLER_ID --clientId $CLIENT_ID --certificateFilePath ./cert.pfx --certificatePassword MyPassword

settings - CLI Settings

Change settings of the Microsoft Store Developer CLI.

msstore settings [options]

Options:

| Option | Description | | ------ | ----------- | | -t, --enableTelemetry | Enable (true) or disable (false) telemetry |

Set Publisher Display Name

msstore settings setpdn <publisherDisplayName>

Sets the default Publisher Display Name for the init command.

apps - Application Management

List and retrieve application information.

List Applications

msstore apps list

Lists all applications in your Partner Center account.

Get Application Details

msstore apps get <productId>

Arguments:

| Argument | Description | | -------- | ----------- | | productId | The Store product ID (e.g., 9NBLGGH4R315) |

Example:

# Get details of a specific app
msstore apps get 9NBLGGH4R315

submission - Submission Management

Manage Store submissions.

| Sub-Command | Description | | ----------- | ----------- | | status | Get submission status | | get | Get submission metadata and package info | | getListingAssets | Get listing assets of a submission | | updateMetadata | Update submission metadata | | poll | Poll submission status until complete | | publish | Publish a submission | | delete | Delete a submission |

Get Submission Status

msstore submission status <productId>

Get Submission Details

msstore submission get <productId>

Update Metadata

msstore submission updateMetadata <productId> <metadata>

Where <metadata> is a JSON string with the updated metadata. Because JSON contains characters that shells interpret (quotes, braces, etc.), you must quote and/or escape the value appropriately:

  msstore submission updateMetadata 9NBLGGH4R315 '{"description":"My updated app"}'
  msstore submission updateMetadata 9NBLGGH4R315 '{"description":"My updated app"}'
  msstore submission updateMetadata 9NBLGGH4R315 "{\"description\":\"My updated app\"}"

> Tip: For complex or multi-line metadata, save the JSON to a file and pass its contents instead to avoid quoting issues: > ``bash > msstore submission updateMetadata 9NBLGGH4R315 "$(cat metadata.json)" > ``

Options:

| Option | Description | | ------ | ----------- | | -s, --skipInitialPolling | Skip initial status polling |

Publish Submission

msstore submission publish <productId>

Poll Submission

msstore submission poll <productId>

Polls until the submission status is PUBLISHED or FAILED.

Delete Submission

msstore submission delete <productId>

Options:

| Option | Description | | ------ | ----------- | | --no-confirm | Skip confirmation prompt |

init - Initialize Project for Store

Initialize a project for Microsoft Store publishing. Automatically detects project type and configures Store identity.

msstore init <pathOrUrl> [options]

Arguments:

| Argument | Description | | -------- | ----------- | | pathOrUrl | Project directory path or PWA URL |

Options:

| Option | Description | | ------ | ----------- | | -n, --publisherDisplayName | Publisher Display Name | | --package | Also package the project | | --publish | Package and publish (implies --package) | | -f, --flightId | Publish to a specific flight | | -prp, --packageRolloutPercentage | Gradual rollout percentage (0-100) | | -a, --arch | Architecture(s): x86, x64, arm64 | | -o, --output | Output directory for packages | | -ver, --version | Version to use when building |

Supported Project Types:

Examples:

# Initialize WinUI project
msstore init ./my-winui-app

# Initialize PWA
msstore init https://contoso.com --output ./pwa-package

# Initialize and publish
msstore init ./my-app --publish

package - Package for Store

Package an application for Microsoft Store submission.

msstore package <pathOrUrl> [options]

Arguments:

| Argument | Description | | -------- | ----------- | | pathOrUrl | Project directory path or PWA URL |

Options:

| Option | Description | | ------ | ----------- | | -o, --output | Output directory for the package | | -a, --arch | Architecture(s): x86, x64, arm64 | | -ver, --version | Version for the package |

Examples:

# Package for default architecture
msstore package ./my-app

# Package for multiple architectures
msstore package ./my-app --arch x64,arm64 --output ./packages

# Package with specific version
msstore package ./my-app --version 1.2.3.0

publish - Publish to Store

Publish an application to the Microsoft Store.

msstore publish <pathOrUrl> [options]

Arguments:

| Argument | Description | | -------- | ----------- | | pathOrUrl | Project directory path or PWA URL |

Options:

| Option | Description | | ------ | ----------- | | -i, --inputFile | Path to existing .msix or .msixupload file | | -id, --appId | Application ID (if not initialized) | | -nc, --noCommit | Keep submission in draft state | | -f, --flightId | Publish to a specific flight | | -prp, --packageRolloutPercentage | Gradual rollout percentage (0-100) |

Examples:

# Publish project
msstore publish ./my-app

# Publish existing package
msstore publish ./my-app --inputFile ./packages/MyApp.msixupload

# Publish as draft
msstore publish ./my-app --noCommit

# Publish with gradual rollout
msstore publish ./my-app --packageRolloutPercentage 10

flights - Package Flight Management

Manage package flights (beta testing groups).

| Sub-Command | Description | | ----------- | ----------- | | list | List all flights for an app | | get | Get flight details | | delete | Delete a flight | | create | Create a new flight | | submission | Manage flight submissions |

List Flights

msstore flights list <productId>

Get Flight Details

msstore flights get <productId> <flightId>

Create Flight

msstore flights create <productId> <friendlyName> --group-ids <group-ids>

Options:

| Option | Description | | ------ | ----------- | | -g, --group-ids | Flight group IDs (comma-separated) | | -r, --rank-higher-than | Flight ID to rank higher than |

Delete Flight

msstore flights delete <productId> <flightId>

Flight Submissions

# Get flight submission
msstore flights submission get <productId> <flightId>

# Publish flight submission
msstore flights submission publish <productId> <flightId>

# Check flight submission status
msstore flights submission status <productId> <flightId>

# Poll flight submission
msstore flights submission poll <productId> <flightId>

# Delete flight submission
msstore flights submission delete <productId> <flightId>

Flight Rollout Management

# Get rollout status
msstore flights submission rollout get <productId> <flightId>

# Update rollout percentage
msstore flights submission rollout update <productId> <flightId> <percentage>

# Halt rollout
msstore flights submission rollout halt <productId> <flightId>

# Finalize rollout (100%)
msstore flights submission rollout finalize <productId> <flightId>

Common Workflows

Workflow 1: First-Time Store Setup

# 1. Install the CLI
winget install "Microsoft Store Developer CLI"

# 2. Configure credentials (get these from Partner Center)
msstore reconfigure --tenantId $TENANT_ID --sellerId $SELLER_ID --clientId $CLIENT_ID --clientSecret $CLIENT_SECRET

# 3. Verify configuration
msstore info

# 4. List your apps to confirm access
msstore apps list

Workflow 2: Initialize and Publish New App

# 1. Navigate to project
cd my-winui-app

# 2. Initialize for Store (creates/updates app identity)
msstore init .

# 3. Package the application
msstore package . --arch x64,arm64

# 4. Publish to Store
msstore publish .

# 5. Check submission status
msstore submission status <productId>

Workflow