How to run curl and hide the username's password from command?

How to run curl and hide the username's password from command?

Don't set the password and curl will ask you.
Otherwise, use an API Key.

How do I create an api key for use with curl?