Sub topic 3
Limits and Keeping a Salesforce Developer Edition Org Active
Assume you already have a verified Developer Edition org, can open its My Domain URL, and can use Setup. You also need a terminal for the CLI sections.
Limits and Keeping the Org Active
A Developer Edition org provides a permanent development environment, but it has fixed limits. These can include data storage, file storage, API requests, users, and feature availability. The exact values can change, so check Setup > Company Information and the relevant System Overview pages instead of relying on old tutorials.
Developer Edition is not a production org. Do not use it for business-critical data or expect production capacity. Salesforce can also mark an org inactive after a long period without meaningful use. Monitor Salesforce email notices and log in periodically. Keep important metadata in source control, and export anything you cannot recreate.
flowchart TD
A[Developer Edition org] --> B[Check limits in Setup]
B --> C[Use periodically]
C --> D[Respond to Salesforce notices]
D --> E[Keep metadata in source control]caption: Keeping a Developer Edition org usable alt: A flow from a Developer Edition org to checking limits, using it periodically, responding to notices, and storing metadata safely.
> callout note > Limits are guardrails, not a capacity plan. Use a sandbox or production org when you need production-scale data, users, or availability.
Enabling Dev Hub
Dev Hub lets the org create and manage scratch orgs. In Setup, search for Dev Hub, open Dev Hub Settings, select Enable Dev Hub, and save. This setting is usually permanent, so enable it only in the org you intend to use as your development hub.
Connecting the Salesforce CLI
Authorize the CLI with a browser login:
sf org login web --alias my-dev-org
sf org list
sf org open --target-org my-dev-orgThe alias is a local name. It does not change the Salesforce username or org URL.
Confirming the Org
Run a SOQL query, which is a Salesforce Object Query Language request:
sf data query --target-org my-dev-org --query "SELECT Name, OrganizationType FROM Organization"The result should identify the org and show Developer Edition. You can also run anonymous Apex:
System.debug('Org: ' + UserInfo.getOrganizationName());
System.debug('User: ' + UserInfo.getUserName());Check the debug log to confirm both the org and user.
Fixing Common Problems
- A duplicate username means the username is already used globally. Choose a unique, email-shaped value.
- If verification email is missing, check spam, confirm the address, and request another message from the sign-up flow.
- If login fails, use the exact My Domain URL and confirm the username belongs to this org.
- If MFA blocks access, use the registered authenticator or Salesforce’s account recovery process.
- If the CLI opens the wrong org, list aliases and authorize the intended org again.
Exercise
Why should you run both the SOQL query and anonymous Apex?
Show answer
The query confirms the org’s type and name, while Apex confirms the current org and logged-in username in the debug log.