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