PHP one-liner (run in terminal):
php -r "echo password_hash('YourSecurePassword', PASSWORD_DEFAULT), PHP_EOL;"
