Sub topic 2
Getting a Developer Edition org with Agentforce
This chapter walks you through getting a Developer Edition org that includes Agentforce, and logging in to it from the browser and the Salesforce CLI. It assumes you know the Setup menu and Lightning Experience. The CLI steps are optional and need the Salesforce CLI installed.
Why a special sign-up matters
A Developer Edition org is a free Salesforce org for learning and testing. It is not a trial. It does not expire as long as you log in now and then, and it holds no production data.
A Developer Edition org created through the older generic sign-up page may not include Agentforce. Agentforce and its generative AI features ship in orgs created through the Agentforce-specific Developer Edition sign-up. If you sign up through the wrong page, the Agentforce settings in Setup will be missing, and you would need a new org.
Sign up for the org
- Open the Agentforce Developer Edition sign-up page from the Salesforce developer site. Search for "Agentforce Developer Edition" if the link has moved.
- Enter your name, a work or personal email address, and a role. Choose a company name.
- Enter a username. A username must look like an email address and be unique across all of Salesforce. It does not have to be a working mailbox. A form such as
[email protected]is common. - Accept the terms and submit the form.
- Open the verification email and click the link. Set a password when asked.
The verification email can take a few minutes. Check your spam folder before you sign up again.
Log in and check the org
After you set your password, Salesforce opens the org in Lightning Experience. Note your My Domain URL. It looks like https://yourcompany-dev-ed.develop.my.salesforce.com. You will use it for every later login.
To check that the org supports Agentforce:
- Click the gear icon and choose Setup.
- In Quick Find, type
Agentforce. - Confirm that you see entries such as Agentforce Agents and Einstein Setup.
If these entries are missing, the org was probably created from the wrong sign-up. You will turn the features on in the next chapter. This step only confirms they exist.
Log in with the Salesforce CLI
The CLI lets you deploy code, such as the Apex action you will write later. Authorize your org once and give it an alias, which is a short name you use in later commands.
sf org login web --alias agentforce-dev
sf project deploy start --source-dir force-app --target-org agentforce-devThe first command opens a browser window. Log in with your Developer Edition username and password, then approve access. The CLI stores the authorization under the alias agentforce-dev.
The second command deploys the contents of the force-app folder to that org. You do not need it yet. It is included here so you can see how the alias is used. Run it when you have source to deploy.
To confirm the login worked, list your authorized orgs:
sf org listYour alias should appear in the output with a connected status.
How the pieces connect
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| No verification email | Delay or spam filter | Wait a few minutes, check spam, then retry |
| "Username already in use" | Username taken | Choose a different username |
| No Agentforce entries in Setup | Org from the generic sign-up | Create a new org from the Agentforce sign-up |
| CLI login window does not open | Browser blocked or no default browser | Copy the URL from the terminal into a browser |
Exercise
You signed up for a Developer Edition org and logged in, but searching for "Agentforce" in Setup returns nothing. What is the most likely cause, and what should you do?
Show answer
The org was most likely created from the generic Developer Edition sign-up, which may not include Agentforce. Create a new org from the Agentforce Developer Edition sign-up, using a different username.
Exercise
What does the --alias agentforce-dev option do in sf org login web, and where do you use it afterward?
Show answer
It stores the authorized org under the short name agentforce-dev. You pass that name to later commands with --target-org, for example in sf project deploy start.