Hi,
As Olaf said, this command has been explained in the documentation, which may not be so practical.
You can check the SQL Server errorlog to determine the server name (search for "Server name"). According to the version of SQL Server you installed, By default, the errorlog is located at C:\Program Files\Microsoft SQL Server\MSSQLnn.instancesName\ MSSQL\LOG\ERRORLOG, nn corresponds to 15 for SQL Server 2019,14 for SQL Server 2017.
Or start SSMS locally on the server where SQL Server is installed, and then choose the <Browse for more…> option in the Server name field in the connection window box.
How to find all localdb instance names please refer to this post.
https://stackoverflow.com/questions/36157191/sql-server-how-to-find-all-localdb-instance-names
To connect to the SQL Server database, you can use the server name, or server name\instance name (for the named instance), or the IP address.
https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/logging-in-to-sql-server?view=sql-server-ver15