How to program arduino due without arduino ide
The standalone program for most arduinos is avrdude: http://www.nongnu.org/avrdude/

However, for the Due, it is BOSSA:


  Unlike other Arduino boards which use avrdude for uploading, the Due
  relies on bossac. 
   -- Arduino Due Overview