Skip to content

Easily switch & run commands on Intel/ARM modes in M1-powered Macs with Rosetta 2.

License

Notifications You must be signed in to change notification settings

FdezRomero/rosetta-cli

Repository files navigation

rosetta-cli logo

rosetta-cli

Easily switch & run commands on Intel/ARM modes in M1-powered Macs with Rosetta 2.

It provides a more comfortable user experience on top of the arch and softwareupdate binaries in macOS.

Requirements

  • A Mac with an ARM CPU, like the Apple M1 chip.
  • Node.js v14 or later.

Install

Global install (recommended, works offline)

npm i -g rosetta-cli
rosetta

Without installing (network needed)

npx rosetta-cli

Usage

Usage: rosetta [options] [commands...]

  rosetta                              prompts for mode and starts a new shell

  rosetta [-i, --intel]                starts a new shell in Intel (x86_64) mode
  rosetta [-a, --arm]                  starts a new shell in ARM (arm64) mode

  rosetta [-i, --intel] <commands...>  runs the commands in Intel (x86_64) mode
  rosetta [-a, --arm] <commands...>    runs the commands in ARM (arm64) mode

Options:
  -i, --intel    run in Intel (x86_64) mode
  -a, --arm      run in ARM (arm64) mode
  -v, --version  output the version number
  -h, --help     display help for command

Commands:
  install        installs Rosetta 2 on this Mac

Contributing

Check out CONTRIBUTING.md.

MIT licensed. Created and maintained by Rodrigo Fernández (GitHub, Twitter).