2019-05-16 18:55:23 +02:00
|
|
|
# mas
|
|
|
|
|
2021-05-20 16:13:41 -04:00
|
|
|
> Command-line interface for the Mac App Store.
|
2019-06-03 02:06:36 +02:00
|
|
|
> More information: <https://github.com/mas-cli/mas>.
|
2019-05-16 18:55:23 +02:00
|
|
|
|
|
|
|
- Sign into the Mac App Store for the first time:
|
|
|
|
|
2022-02-14 03:21:43 -08:00
|
|
|
`mas signin "{{user@example.com}}"`
|
2019-05-16 18:55:23 +02:00
|
|
|
|
|
|
|
- Show all installed applications and their product identifiers:
|
|
|
|
|
|
|
|
`mas list`
|
|
|
|
|
|
|
|
- Search for an application, displaying the price alongside the results:
|
|
|
|
|
2022-02-14 03:21:43 -08:00
|
|
|
`mas search "{{application}}" --price`
|
2019-05-16 18:55:23 +02:00
|
|
|
|
2024-08-19 19:11:17 +02:00
|
|
|
- Install or update an application using exact numeric id:
|
2019-05-16 18:55:23 +02:00
|
|
|
|
2024-08-19 19:11:17 +02:00
|
|
|
`mas install {{numeric_product_id}}`
|
|
|
|
|
|
|
|
- Install the first application that would be returned by the respective search:
|
|
|
|
|
|
|
|
`mas lucky "{{search_term}}"`
|
|
|
|
|
|
|
|
- List all outdated apps with pending updates:
|
|
|
|
|
|
|
|
`mas outdated`
|
2019-05-16 18:55:23 +02:00
|
|
|
|
|
|
|
- Install all pending updates:
|
|
|
|
|
|
|
|
`mas upgrade`
|
2024-08-19 19:11:17 +02:00
|
|
|
|
|
|
|
- Upgrade a specific application:
|
|
|
|
|
|
|
|
`mas upgrade "{{numeric_product_id}}"`
|