Environments
Orgs vs Environments
Concept
Description
Scope
┌─────────────────────────────────────────────────────────────────────────────┐
│ Orgs vs Environments │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ REGISTERED ORGS (Global) ENVIRONMENTS (Per Repository) │
│ ──────────────────────── ───────────────────────────── │
│ │
│ [email protected] ─────────► Production (myorg/app-1, main) │
│ └────────► Production (myorg/app-2, main) │
│ │
│ [email protected] ─────────► UAT (myorg/app-1, release/*) │
│ └────────► QA (myorg/app-2, develop) │
│ │
│ [email protected] ─────────► (DevHub for scratch org pools) │
│ │
└─────────────────────────────────────────────────────────────────────────────┘What is an Environment?
Environment Categories
Category
Purpose
Typical Use
Complete Setup: From Org to Environment
Step 1: Register Orgs
Step 2: Create Environments
Creating Environments
Basic Creation
With Metadata and Tags
Listing Environments
List All
Filter by Category
Retrieving Environments
Basic Retrieval (No Credentials)
Credential Access Methods
Method 1: Lock-Based Access (For Deployments)
Method 2: Direct Access with --auth-type (No Locking)
--auth-type (No Locking)When to Use Which Method
Scenario
Method
Why
Auth Type Selection
Auth Type
Lifetime
Use Case
Environment Properties
Core Properties
Property
Description
Extended Properties
Property
Description
Lock Status
Updating Environments
Deleting Environments
Credential Access Control
Role-Based Access
Role
Can View
Can Get Credentials
Can Modify
Audit Trail
CI/CD Integration
GitHub Actions
Matrix Deployment
Environment Patterns
Standard Pipeline
Multi-Region
Feature Environments
Related Topics
Last updated