snippetbashTip
mas — Command-line interface for the Mac App Store. More information: <https://github.com/mas-cli/mas>.
Viewed 0 times
thecommandmasinterfacecliforline
macos
Problem
How to use the
mas command: Command-line interface for the Mac App Store. More information: <https://github.com/mas-cli/mas>.Solution
mas — Command-line interface for the Mac App Store. More information: <https://github.com/mas-cli/mas>.Sign into the Mac App Store for the first time:
mas signin "{{user@example.com}}"Show all installed applications and their product identifiers:
mas listSearch for an application, displaying the price alongside the results:
mas search "{{application}}" --priceInstall or update an application using exact numeric id:
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 outdatedInstall all pending updates:
mas upgradeUpgrade a specific application:
mas upgrade "{{numeric_product_id}}"Code Snippets
Sign into the Mac App Store for the first time
mas signin "{{user@example.com}}"Show all installed applications and their product identifiers
mas listSearch for an application, displaying the price alongside the results
mas search "{{application}}" --priceInstall or update an application using exact numeric id
mas install {{numeric_product_id}}Install the first application that would be returned by the respective search
mas lucky "{{search_term}}"Context
tldr-pages: osx/mas
Revisions (0)
No revisions yet.