Is there any way to use Arduino in the terminal? I have a USB 802.15.4 board that works with Arduino, but I don't want to use the IDE with it, I want to use the terminal.
1.) You can configure the arduino ide to use an "external editor". This means the arduino ide runs als usual but reloads the opened file for compiling and uploading. This is when you want to keep the original arduino ide.
ino init -t blink ino build ino upload ino serial
You can of course make all needed modifcations for differend boards and communication. I think the second option is what you are looking for ;)
The most popular method these days is to use arduino-builder.
This seems to be the official Arduino command line interface now, and can do most things the IDE can do short of actually editing your code for you.
It is a set of GO scripts, so you will need GO installed.