macOS installer commands

High Sierra

sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/HighSierra

Mojave

sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Mojave

Catalina

sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Catalina

Big Sur

sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/BigSur

Source

Running PowerShell on macOS

At work, I have to manage several Office 365 tenants. While many tasks can be completed via the GUI, there are times PowerShell commands are required. That is fine on a Windows 10 computer, since PowerShell is part of the operating system.

However, I prefer to use the company’s iMac. While I was working on an issue with one of our clients, I found an article from Microsoft about using homebrew to install a PowerShell module on macOS!

When I started in IT, I don’t think that would have ever happened.

Automating FTP on the Mac with High Sierra

At work, I was scripting the connection to an FTP server and downloading a website backup.

From articles at Low-End Mac and Mac OS X Hints, this seemed pretty straightforward.

However, the command-line FTP app was removed from recent versions of macOS. A conversation on Stack Exchange explained how to download and install the command-line FTP application.

Now the pieces are in place and that task is automated!