I\'ve got sonarqube 6.5 with default configs. When sonar.forceAuthentication flag is set to false, I can create and analyse project through command given below.
This is a minimal command that I use to update Sonar Cube Dashboard for my project,
mvn clean install sonar:sonar -Dsonar.host.url= -Dsonar.login= -Dsonar.projectKey= -Dsonar.projectName= -Dsonar.projectVersion=
You can always wrap a string value in double quotes if it has spaces in it.
Before using above command, you need to generate token for your user id as specified in answer provided by Eric. There is no need to pass password property.