If Magento 2 version is 2.0.x we first have to apply patch MDVA-532!
We can upgrade through command line interface (CLI) or with Magento “Web Setup Wizard”.
CLI upgrade:
composer require magento/product-community-edition 2.1.0 --no-update
composer update
rm -rf var/cache/* var/page_cache/* var/generation/*
php bin/magento setup:upgrade
Visit the homepage to see your updated Magento 2. If you get some errors, reset file permissions and ownership and then clean cache.
Offical documentation: http://devdocs.magento.com/guides/v2.0/comp-mgr/cli/cli-rc1-samp.html
Web Setup Wizard:
1. Go to: System > Web Setup Wizard > System upgrade
(If asked, enter your authentication keys in the provided fields and save.)
2. Select desired version and click next
3. readiness check
4. choose backup or not
5. click Upgrade and wait
Offical documentation: http://devdocs.magento.com/guides/v2.0/comp-mgr/upgrader/upgrade-start.html
Visit the homepage to see your updated Magento 2. If you get some errors, reset file permissions and ownership and then clean cache.