Download Sierra (or current Mac OS) via the AppStore App. Cancel out of the installer window when it loads up after it downloads.
The installer app will be in the Applications directory.
After inserting the USB stick, run the following command on the terminal. Note this expects the USB drive to be named Untitled: