Yes, there is a command-line client to the gnutella network (I like it a lot).  It is called Gnut.  I don't think it is under active development anymore, but it works great (never crashes, no memory leaks, etc.)
 
You can find it at 
http://www.hitsquad.com/smm/programs/Gnut/