Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mas to install free apps that haven't been installed before. #145

Closed
bgupta opened this issue May 15, 2018 · 4 comments
Closed

Allow mas to install free apps that haven't been installed before. #145

bgupta opened this issue May 15, 2018 · 4 comments

Comments

@bgupta
Copy link

bgupta commented May 15, 2018

My use case is that I am curating a Brewfile for my team, and I'd like to automate installation of mas apps for new team members. (I understand this would likely be difficult for paid or subscription apps.)

@nidegen
Copy link

nidegen commented May 16, 2018

Did you try to use it correctly? You can either use
mas install 497799835 # 497799835 is the id of Xcode
or
mas install lucky Xcode # installs the first hit of an app matching this name

A user will need to be signed in to the AppStore with an AppleId though. mas cant get around that.

@bgupta
Copy link
Author

bgupta commented May 16, 2018

It seems "lucky" isn't yet supported by homebrew-bundle yet. Ticket opened. Homebrew/homebrew-bundle#335

Ignoring that, I just tested using:
mas lucky "WhatsApp Desktop"

I got the following error.:
This redownload is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

(I choose WhatsApp Desktop because it's free and I've never installed it before.)

@phatblat
Copy link
Member

mas can currently install any app that has been purchased by the current Apple ID, regardless of whether it has been installed on a Mac before or not.

This won't be possible for apps that haven't been "purchased" by the current Apple ID as mas is not able to "purchase" apps, even free ones. mas is already a hack ontop of a couple of private Apple frameworks. We may some day figure out how to get a purchase to work, but there are security and ethics concerns with that. It's weird that Apple handles free apps like paid but it's probably so that they can validate the age of the user.

@phatblat phatblat added this to the 1.7 milestone May 25, 2020
@phatblat
Copy link
Member

This feature has been added as the new purchase command in 1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants