On this page, you can learn how to restore your phone to the original factory software using a fastboot Cyanogen OS Package.
Back to the downloads pagefastboot devices
It should list your device. If it does not detect your device, make sure you have installed the appropriate "ADB drivers" for your device (Google should be your friend to get these)
fastboot oem unlock
Mac / Linux:
Type the following command in the terminal:
./flash-radio.sh
This will automatically install all modem firmware components for you.
Windows:
Unfortunately, the Windows command prompt cannot execute .sh files. Therefore, you'll need to open the flash-radio.sh file with a text editor and copy all "fastboot" commands of it
Type or paste these commands into the command prompt exactly in the same order as they are listed in the .sh file!
Type the following commands in the command prompt or terminal:
fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash cache cache.img fastboot flash system system.img
For example, the OnePlus One package contains both "userdata.img" and "userdata_64G.img". The first file is for the 16GB version and the second file is for the 64GB version. Make sure to install the file for the right amount of storage space!
Type the following command with the correct file name in the command prompt or terminal:
fastboot flash userdata <YOUR_USERDATA_FILE.img>
To re-lock the bootloader, type the following command in the command prompt or terminal:
fastboot oem lock
To reboot your phone, type the following command in the command prompt or terminal:
fastboot reboot