
Open VS Code and go to the Terminal in the Panel. Type this web login flow command to log in and set an alias name for the org, such as CCIDevHub: sfdx auth:web:login -a CCIDevHub This will open a browser to the Salesforce login page.
Full Answer
How to set username aliases for the Salesforce CLI?
Set username aliases for the Salesforce CLI. You can associate an alias with only one username at a time. If you’ve set an alias multiple times, the alias points to the most recent username. sfdx alias:set [email protected]
How do I create an alias for an object?
To establish the alias, first identify the object, in this example a contact, and then specify the alias, in this case “c.” For the rest of the SELECT statement, you can use the alias in place of the object or field name.
What is an alias and how is it used?
An alias is a short name to identify the user on list pages, reports, or other places where their entire name doesn't fit. By default, the alias is the first letter of the user's first name and the first four letters of their last name.
How do I use an alias in a soql query?
From the SOQL reference guide..... To establish the alias, first identify the object, in this example a contact, and then specify the alias, in this case “c.” For the rest of the SELECT statement, you can use the alias in place of the object or field name.

November 3, 2015
An alias is a short name to identify the user on list pages, reports, or other places where their entire name doesn't fit. By default, the alias is the first letter of the user's first name and the first four letters of their last name. Cheers!!!
Alias in Salesforce User Creation
An alias is a short name to identify the user on list pages, reports, or other places where their entire name doesn't fit. By default, the alias is the first letter of the user's first name and the first four letters of their last name. Cheers!!!
Meaningful URLs
A hostname alias is a way to define alternative names for an existing website URL. Brandon Wilson, the Cloud Kicks merchandiser, uses Business Manager to create these aliases—short, meaningful URLs for external search engines to index.
Domain Name Service (DNS) and Domain Names
Connection details matter. Brandon asks Vijay Lahiri, the developer, to help make the right ones. Vijay also helps Brandon create his hostname alias file.
Embedded Content Delivery Network (CDN)
If you use the embedded CDN feature, don’t configure a fixed IP address for your DNS server. Instead, when you point your hostname DNS record to the embedded CDN in Business Manager, create a canonical name (CNAME) record. CNAME records are used to alias one name to another.
Instance Specific
A B2C Commerce instance is an application infrastructure that includes web, application, and database servers. Merchants like Cloud Kicks typically receive staging, production, and development instances on the primary instance group (PIG), along with sandboxes for code development on the secondary instance group (SIG).
The Production Instance
The production instance hostname is unique in that it’s similar to production-realm-cloudkicks.demandware.net, with an IP address such as 100.100.100.1. This hostname is a fully qualified domain name (FQDN).
Version
The version parameter is required and must be 1. It indicates the file’s syntax version, not the file version. If you change it to another number, B2C Commerce ignores all entries.
Settings
Vijay and Brandon decide to use the job-hostnames settings only within the B2C Commerce job context. This way a job running on the staging instance can generate URLs using the hostnames used for the production instance. The mapping can be locale-specific and follow a country/language/default locale fallback.
