Make sure composer is in your path. If on Linux this can be easily accomplished by adding the composer.phar file to ~/bin.
How to update composer
Installing/updating project packages
1) A composer.json file should be stored in the root of your project.
2) cd into the root folder of your project