I .ash this to get my monkey extremely well fed:
use_familiar($familiar[hobo monkey]);
visit_url("inv_use.php?&pwd&which=2&whichitem=4135");
Change the familiar to whatever you like, of course.
So if you don't use .ash, then you could use the following command in the CLI:
ash...