I need to be able to generate addresses and receive bitcoins to them, then send them somewhere else - and do it on a server via some command-line interface. Is it possible to do so without downloading the whole blockchain, as bitcoind requires? That is, is there a lightweight client, but for the command line?
Electrum has a text-only version, although I found I had to set it up first time using the gui. Here's my write-up on running it on a Raspberry Pi via SSH though, which sounds like it might do what you need: