Both the RBPi camera and the GPIO pins can be accessed from the shell via the following facilities:
raspistill can be used for image capture.
raspivid can be used for video streaming.
gpio can be used for GPIO pin access.
v4l2 is a standard video for linux.