1
---
2
name: msstore-cli
3
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.'
4
license: MIT
5
---
6
7
# Microsoft Store Developer CLI (msstore)
8
9
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.
10
11
## When to Use This Skill
12
13
Use this skill when you need to:
14
15
- Configure Store credentials for API access
16
- List applications in your Store account
17
- Check the status of a submission
18
- Publish submissions to the Store
19
- Package applications for Store submission
20
- Initialize projects for Store publishing
21
- Manage package flights (beta testing)
22
- Set up CI/CD pipelines for automated Store publishing
23
- Manage gradual rollouts of submissions
24
- Update submission metadata programmatically
25
26
## Prerequisites
27
28
- Windows 10+, macOS, or Linux
29
- .NET 9 Desktop Runtime (Windows) or .NET 9 Runtime (macOS/Linux)
30
- Partner Center account with appropriate permissions
31
- Azure AD app registration with Partner Center API access
32
- msstore CLI installed via one of these methods:
33
- **Microsoft Store**: [Download](https://www.microsoft.com/store/apps/9P53PC5S0PHJ)
34
- **WinGet**: `winget install "Microsoft Store Developer CLI"`
35
- **Manual**: Download from [GitHub Releases](https://aka.ms/msstoredevcli/releases)
36
37
### Partner Center Setup
38
39
Before using msstore, you need to create an Azure AD application with Partner Center access:
40
41
1. Go to [Partner Center](https://partner.microsoft.com/dashboard)
42
2. Navigate to **Account settings** > **User management** > **Azure AD applications**
43
3. Create a new application and note the **Tenant ID**, **Client ID**, and **Client Secret**
44
4. Grant the application appropriate permissions (Manager or Developer role)
45
46
## Core Commands Reference
47
48
### info - Print Configuration
49
50
Display the current credential configuration.
51
52
```bash
53
msstore info
54
```
55
56
**Options:**
57
58
| Option | Description |
59
| ------ | ----------- |
60
| `-v, --verbose` | Print verbose output |
61
62
### reconfigure - Configure Credentials
63
64
Configure or update Microsoft Store API credentials.
65
66
```bash
67
msstore reconfigure [options]
68
```
69
70
**Options:**
71
72
| Option | Description |
73
| ------ | ----------- |
74
| `-t, --tenantId` | Azure AD Tenant ID |
75
| `-s, --sellerId` | Partner Center Seller ID |
76
| `-c, --clientId` | Azure AD Application Client ID |
77
| `-cs, --clientSecret` | Client Secret for authentication |
78
| `-ct, --certificateThumbprint` | Certificate thumbprint (alternative to client secret) |
79
| `-cfp, --certificateFilePath` | Certificate file path (alternative to client secret) |
80
| `-cp, --certificatePassword` | Certificate password |
81
| `--reset` | Reset credentials without full reconfiguration |
82
83
**Examples:**
84
85
```bash
86
# Configure with client secret
87
msstore reconfigure --tenantId $TENANT_ID --sellerId $SELLER_ID --clientId $CLIENT_ID --clientSecret $CLIENT_SECRET
88
89
# Configure with certificate
90
msstore reconfigure --tenantId $TENANT_ID --sellerId $SELLER_ID --clientId $CLIENT_ID --certificateFilePath ./cert.pfx --certificatePassword MyPassword
91
```
92
93
### settings - CLI Settings
94
95
Change settings of the Microsoft Store Developer CLI.
96
97
```bash
98
msstore settings [options]
99
```
100
101
**Options:**
102
103
| Option | Description |
104
| ------ | ----------- |
105
| `-t, --enableTelemetry` | Enable (true) or disable (false) telemetry |
106
107
#### Set Publisher Display Name
108
109
```bash
110
msstore settings setpdn <publisherDisplayName>
111
```
112
113
Sets the default Publisher Display Name for the `init` command.
114
115
### apps - Application Management
116
117
List and retrieve application information.
118
119
#### List Applications
120
121
```bash
122
msstore apps list
123
```
124
125
Lists all applications in your Partner Center account.
126
127
#### Get Application Details
128
129
```bash
130
msstore apps get <productId>
131
```
132
133
**Arguments:**
134
135
| Argument | Description |
136
| -------- | ----------- |
137
| `productId` | The Store product ID (e.g., 9NBLGGH4R315) |
138
139
**Example:**
140
141
```bash
142
# Get details of a specific app
143
msstore apps get 9NBLGGH4R315
144
```
145
146
### submission - Submission Management
147
148
Manage Store submissions.
149
150
| Sub-Command | Description |
151
| ----------- | ----------- |
152
| `status` | Get submission status |
153
| `get` | Get submission metadata and package info |
154
| `getListingAssets` | Get listing assets of a submission |
155
| `updateMetadata` | Update submission metadata |
156
| `poll` | Poll submission status until complete |
157
| `publish` | Publish a submission |
158
| `delete` | Delete a submission |
159
160
#### Get Submission Status
161
162
```bash
163
msstore submission status <productId>
164
```
165
166
#### Get Submission Details
167
168
```bash
169
msstore submission get <productId>
170
```
171
172
#### Update Metadata
173
174
```bash
175
msstore submission updateMetadata <productId> <metadata>
176
```
177
178
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:
179
180
- **Bash/Zsh**: Wrap the JSON in single quotes so the shell passes it through literally.
181
```bash
182
msstore submission updateMetadata 9NBLGGH4R315 '{"description":"My updated app"}'
183
```
184
- **PowerShell**: Use single quotes (or escape double quotes inside a double-quoted string).
185
```powershell
186
msstore submission updateMetadata 9NBLGGH4R315 '{"description":"My updated app"}'
187
```
188
- **cmd.exe**: Escape each inner double quote with a backslash.
189
```cmd
190
msstore submission updateMetadata 9NBLGGH4R315 "{\"description\":\"My updated app\"}"
191
```
192
193
> **Tip:** For complex or multi-line metadata, save the JSON to a file and pass its contents instead to avoid quoting issues:
194
> ```bash
195
> msstore submission updateMetadata 9NBLGGH4R315 "$(cat metadata.json)"
196
> ```
197
198
**Options:**
199
200
| Option | Description |
201
| ------ | ----------- |
202
| `-s, --skipInitialPolling` | Skip initial status polling |
203
204
#### Publish Submission
205
206
```bash
207
msstore submission publish <productId>
208
```
209
210
#### Poll Submission
211
212
```bash
213
msstore submission poll <productId>
214
```
215
216
Polls until the submission status is PUBLISHED or FAILED.
217
218
#### Delete Submission
219
220
```bash
221
msstore submission delete <productId>
222
```
223
224
**Options:**
225
226
| Option | Description |
227
| ------ | ----------- |
228
| `--no-confirm` | Skip confirmation prompt |
229
230
### init - Initialize Project for Store
231
232
Initialize a project for Microsoft Store publishing. Automatically detects project type and configures Store identity.
233
234
```bash
235
msstore init <pathOrUrl> [options]
236
```
237
238
**Arguments:**
239
240
| Argument | Description |
241
| -------- | ----------- |
242
| `pathOrUrl` | Project directory path or PWA URL |
243
244
**Options:**
245
246
| Option | Description |
247
| ------ | ----------- |
248
| `-n, --publisherDisplayName` | Publisher Display Name |
249
| `--package` | Also package the project |
250
| `--publish` | Package and publish (implies --package) |
251
| `-f, --flightId` | Publish to a specific flight |
252
| `-prp, --packageRolloutPercentage` | Gradual rollout percentage (0-100) |
253
| `-a, --arch` | Architecture(s): x86, x64, arm64 |
254
| `-o, --output` | Output directory for packages |
255
| `-ver, --version` | Version to use when building |
256
257
**Supported Project Types:**
258
259
- Windows App SDK / WinUI 3
260
- UWP
261
- .NET MAUI
262
- Flutter
263
- Electron
264
- React Native for Desktop
265
- PWA (Progressive Web Apps)
266
267
**Examples:**
268
269
```bash
270
# Initialize WinUI project
271
msstore init ./my-winui-app
272
273
# Initialize PWA
274
msstore init https://contoso.com --output ./pwa-package
275
276
# Initialize and publish
277
msstore init ./my-app --publish
278
```
279
280
### package - Package for Store
281
282
Package an application for Microsoft Store submission.
283
284
```bash
285
msstore package <pathOrUrl> [options]
286
```
287
288
**Arguments:**
289
290
| Argument | Description |
291
| -------- | ----------- |
292
| `pathOrUrl` | Project directory path or PWA URL |
293
294
**Options:**
295
296
| Option | Description |
297
| ------ | ----------- |
298
| `-o, --output` | Output directory for the package |
299
| `-a, --arch` | Architecture(s): x86, x64, arm64 |
300
| `-ver, --version` | Version for the package |
301
302
**Examples:**
303
304
```bash
305
# Package for default architecture
306
msstore package ./my-app
307
308
# Package for multiple architectures
309
msstore package ./my-app --arch x64,arm64 --output ./packages
310
311
# Package with specific version
312
msstore package ./my-app --version 1.2.3.0
313
```
314
315
### publish - Publish to Store
316
317
Publish an application to the Microsoft Store.
318
319
```bash
320
msstore publish <pathOrUrl> [options]
321
```
322
323
**Arguments:**
324
325
| Argument | Description |
326
| -------- | ----------- |
327
| `pathOrUrl` | Project directory path or PWA URL |
328
329
**Options:**
330
331
| Option | Description |
332
| ------ | ----------- |
333
| `-i, --inputFile` | Path to existing .msix or .msixupload file |
334
| `-id, --appId` | Application ID (if not initialized) |
335
| `-nc, --noCommit` | Keep submission in draft state |
336
| `-f, --flightId` | Publish to a specific flight |
337
| `-prp, --packageRolloutPercentage` | Gradual rollout percentage (0-100) |
338
339
**Examples:**
340
341
```bash
342
# Publish project
343
msstore publish ./my-app
344
345
# Publish existing package
346
msstore publish ./my-app --inputFile ./packages/MyApp.msixupload
347
348
# Publish as draft
349
msstore publish ./my-app --noCommit
350
351
# Publish with gradual rollout
352
msstore publish ./my-app --packageRolloutPercentage 10
353
```
354
355
### flights - Package Flight Management
356
357
Manage package flights (beta testing groups).
358
359
| Sub-Command | Description |
360
| ----------- | ----------- |
361
| `list` | List all flights for an app |
362
| `get` | Get flight details |
363
| `delete` | Delete a flight |
364
| `create` | Create a new flight |
365
| `submission` | Manage flight submissions |
366
367
#### List Flights
368
369
```bash
370
msstore flights list <productId>
371
```
372
373
#### Get Flight Details
374
375
```bash
376
msstore flights get <productId> <flightId>
377
```
378
379
#### Create Flight
380
381
```bash
382
msstore flights create <productId> <friendlyName> --group-ids <group-ids>
383
```
384
385
**Options:**
386
387
| Option | Description |
388
| ------ | ----------- |
389
| `-g, --group-ids` | Flight group IDs (comma-separated) |
390
| `-r, --rank-higher-than` | Flight ID to rank higher than |
391
392
#### Delete Flight
393
394
```bash
395
msstore flights delete <productId> <flightId>
396
```
397
398
#### Flight Submissions
399
400
```bash
401
# Get flight submission
402
msstore flights submission get <productId> <flightId>
403
404
# Publish flight submission
405
msstore flights submission publish <productId> <flightId>
406
407
# Check flight submission status
408
msstore flights submission status <productId> <flightId>
409
410
# Poll flight submission
411
msstore flights submission poll <productId> <flightId>
412
413
# Delete flight submission
414
msstore flights submission delete <productId> <flightId>
415
```
416
417
#### Flight Rollout Management
418
419
```bash
420
# Get rollout status
421
msstore flights submission rollout get <productId> <flightId>
422
423
# Update rollout percentage
424
msstore flights submission rollout update <productId> <flightId> <percentage>
425
426
# Halt rollout
427
msstore flights submission rollout halt <productId> <flightId>
428
429
# Finalize rollout (100%)
430
msstore flights submission rollout finalize <productId> <flightId>
431
```
432
433
## Common Workflows
434
435
### Workflow 1: First-Time Store Setup
436
437
```bash
438
# 1. Install the CLI
439
winget install "Microsoft Store Developer CLI"
440
441
# 2. Configure credentials (get these from Partner Center)
442
msstore reconfigure --tenantId $TENANT_ID --sellerId $SELLER_ID --clientId $CLIENT_ID --clientSecret $CLIENT_SECRET
443
444
# 3. Verify configuration
445
msstore info
446
447
# 4. List your apps to confirm access
448
msstore apps list
449
```
450
451
### Workflow 2: Initialize and Publish New App
452
453
```bash
454
# 1. Navigate to project
455
cd my-winui-app
456
457
# 2. Initialize for Store (creates/updates app identity)
458
msstore init .
459
460
# 3. Package the application
461
msstore package . --arch x64,arm64
462
463
# 4. Publish to Store
464
msstore publish .
465
466
# 5. Check submission status
467
msstore submission status <productId>
468
```
469
470
### Workflow 3: Update Existing App
471
472
```bash
473
# 1. Build your updated application
474
dotnet publish -c Release
475
476
# 2. Package and publish
477
msstore publish ./my-app
478
479
# Or publish from existing package
480
msstore publish ./my-app --inputFile ./artifacts/MyApp.msixupload
481
```
482
483
### Workflow 4: Gradual Rollout
484
485
```bash
486
# 1. Publish with initial rollout percentage
487
msstore publish ./my-app --packageRolloutPercentage 10
488
489
# 2. Monitor and increase rollout
490
msstore submission poll <productId>
491
492
# 3. (After validation) Finalize to 100%
493
# This completes via Partner Center or submission update
494
```
495
496
### Workflow 5: Beta Testing with Flights
497
498
```bash
499
# 1. Create a flight group in Partner Center first
500
# Then create a flight
501
msstore flights create <productId> "Beta Testers" --group-ids "group-id-1,group-id-2"
502
503
# 2. Publish to the flight
504
msstore publish ./my-app --flightId <flightId>
505
506
# 3. Check flight submission status
507
msstore flights submission status <productId> <flightId>
508
509
# 4. After testing, publish to production
510
msstore publish ./my-app
511
```
512
513
### Workflow 6: CI/CD Pipeline Integration
514
515
```yaml
516
# GitHub Actions example
517
name: Publish to Store
518
519
on:
520
release:
521
types: [published]
522
523
jobs:
524
publish:
525
runs-on: windows-latest
526
steps:
527
- uses: actions/checkout@v4
528
529
- name: Setup .NET
530
uses: actions/setup-dotnet@v4
531
with:
532
dotnet-version: '9.0.x'
533
534
- name: Install msstore CLI
535
run: winget install "Microsoft Store Developer CLI" --accept-package-agreements --accept-source-agreements
536
537
- name: Configure Store credentials
538
run: |
539
msstore reconfigure --tenantId ${{ secrets.TENANT_ID }} --sellerId ${{ secrets.SELLER_ID }} --clientId ${{ secrets.CLIENT_ID }} --clientSecret ${{ secrets.CLIENT_SECRET }}
540
541
- name: Build application
542
run: dotnet publish -c Release
543
544
- name: Publish to Store
545
run: msstore publish ./src/MyApp
546
```
547
548
## Integration with winapp CLI
549
550
The winapp CLI (v0.2.0+) integrates with msstore via the `winapp store` subcommand:
551
552
```bash
553
# These commands are equivalent:
554
msstore reconfigure --tenantId xxx --clientId xxx --clientSecret xxx
555
winapp store reconfigure --tenantId xxx --clientId xxx --clientSecret xxx
556
557
# List apps
558
msstore apps list
559
winapp store apps list
560
561
# Publish
562
msstore publish ./my-app
563
winapp store publish ./my-app
564
```
565
566
Use `winapp store` when you want a unified CLI experience for both packaging and publishing.
567
568
## Troubleshooting
569
570
| Issue | Solution |
571
| ----- | -------- |
572
| Authentication failed | Verify credentials with `msstore info`; re-run `msstore reconfigure` |
573
| App not found | Ensure the product ID is correct; run `msstore apps list` to verify |
574
| Insufficient permissions | Check Azure AD app role in Partner Center (needs Manager or Developer) |
575
| Package validation failed | Ensure package meets Store requirements; check Partner Center for details |
576
| Submission stuck | Run `msstore submission poll <productId>` to check status |
577
| Flight not found | Verify flight ID with `msstore flights list <productId>` |
578
| Rollout percentage invalid | Value must be between 0 and 100 |
579
| Init fails for PWA | Ensure URL is publicly accessible and has valid web app manifest |
580
581
## Environment Variables
582
583
The CLI supports environment variables for credentials:
584
585
| Variable | Description |
586
| -------- | ----------- |
587
| `MSSTORE_TENANT_ID` | Azure AD Tenant ID |
588
| `MSSTORE_SELLER_ID` | Partner Center Seller ID |
589
| `MSSTORE_CLIENT_ID` | Azure AD Application Client ID |
590
| `MSSTORE_CLIENT_SECRET` | Client Secret |
591
592
## References
593
594
- [Microsoft Store Developer CLI Documentation](https://learn.microsoft.com/windows/apps/publish/msstore-dev-cli/overview)
595
- [CLI Commands Reference](https://learn.microsoft.com/windows/apps/publish/msstore-dev-cli/commands)
596
- [GitHub Repository](https://github.com/microsoft/msstore-cli)
597
- [Partner Center API](https://learn.microsoft.com/windows/uwp/monetize/using-windows-store-services)
598
- [App Submission API](https://learn.microsoft.com/windows/uwp/monetize/create-and-manage-submissions-using-windows-store-services)
599
- [Package Flights Overview](https://learn.microsoft.com/windows/uwp/publish/package-flights)
600
- [Gradual Package Rollout](https://learn.microsoft.com/windows/uwp/publish/gradual-package-rollout)
601