right command to update project

I update my project with composer, so I want to ask which is the right command to use

For example this is ok?


composer update --prefer-dist



in most cases, you can just use ‘composer update’.

be sure to update composre itself every so often… ‘composer self-update’