Skip to content

1. Installation

Graham Pugh edited this page Aug 31, 2023 · 6 revisions

Requirements and limitations

  • The script must run as root or sudo.
  • macOS 11 is required. If you need to run erase-install.sh on older versions of macOS, use version 27.x.
  • The file system must be APFS.

Recommended method - installer package

The easiest to maintain method of deploying the script is to install the latest package from the Releases page. The package contains the latest copies of erase-install.sh, with tested compatible versions of mist and swiftDialog bundled into the package.

Download the script from GitHub

The erase-install.sh script can be downloaded directly from GitHub. If run as a standalone script, it will download mist and swiftDialog directly from GitHub if required.

Run the script directly from GitHub

You can also run the script directly from GitHub using the following command from Terminal, or with a remote management tool that allows script execution. The sudo command can be left off if executing from root prompt or through remote management tool that executes commands with root privileges.

curl -s https://raw.githubusercontent.com/grahampugh/erase-install/release/erase-install.sh | sudo zsh /dev/stdin <arguments>

NOTE: If using the legacy version (27.x), you use bash instead of zsh, so the following command is required:

curl -s https://raw.githubusercontent.com/grahampugh/erase-install/legacy/erase-install.sh | sudo bash /dev/stdin <arguments>