Install depency from command line

Is there any way to install dependency from command line?