---
schema_version: "1"
id: 2e050e77c043f6ddba7928401a010fb9448dad22f9d2f8a8863a69a5486d971c
title: Access Lifecycle Center in a Scratch Org
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/devops_center_setup_install_scratch_org.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.devops_center_setup_install_scratch_org.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ddbe8ce4739c841c0701a620ecec032610806a7a2f85c0e4068a080abed36440
description: Scratch orgs offer a temporary evaluation environment with a maximum duration of 30 days.
products:
  - Salesforce Platform
release: "264"
---
# Access Lifecycle Center in a Scratch Org

Scratch orgs offer a temporary evaluation environment with a maximum duration of 30 days.

1. Install Salesforce CLI. See [_Salesforce CLI Setup Guide_: Install Salesforce CLI](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm).
2. Enable Dev Hub in an org. If you don't already have a Dev Hub org with larger scratch org allocations, you can use a Developer Edition (DE) org, which provides a maximum of 3 active scratch orgs. See [_Salesforce DX Developer Guide_: Enable Dev Hub Features in Your Org](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_setup_enable_devhub.htm).
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-devops_center-264-0-0-production-enus/166010c3-4c34-4087-92ad-aea917baf524/images/icon_note.png)
    
    Note If you already use scratch orgs and have Salesforce CLI installed, skip to the information about the scratch org definition file.
3. Access Lifecycle Center in the Dev Hub org. You can disable Lifecycle Center after your evaluation.
4. Create an empty Salesforce DX project if you don't have an existing source control repository. See [_Salesforce DX Developer Guide_: Create a Salesforce DX Project](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_develop_create_project.htm).
5. Update the scratch org definition file, `sfdx-project.json`, to enable Lifecycle Center.
    
    ```
    {
        "orgName": "Acme",
        "edition": "Enterprise",
        "features": ["DevOpsCenter"],
        "settings": {
            "devHubSettings": {
                "enableALMDevopsCorePref": true
            }
        }
    }
    ```
    
    If creating a scratch org based on an org shape, you still must include the Lifecycle Center feature and setting in the scratch org definition file for legal reasons as part of the Lifecycle Center terms and conditions.
    
    ```
    {
        "orgName": "Acme",
        "sourceOrg": "00DB1230400Ifx5",
        "features": ["DevOpsCenter"],
        "settings": {
            "devHubSettings": {
                "enableALMDevopsCorePref": true
            }
        }
    }
    ```
6. Log in to the Dev Hub org using Salesforce CLI. In this example, the Dev Hub org is given the alias `MyDevHub`.
    
    ```
    sf org login web -a MyDevHub
    ```
7. Create a scratch org using the updated definition file. In this example, the scratch org is created with the alias `devops-center-scratch`, with a duration of 30 days, using the Dev Hub org with the alias `MyDevHub`.
    
    ```
    sf org create scratch -a devops-center-scratch -f config/project-scratch-def.json -v MyDevHub -d 30
    ```
8. Enable Lifecycle Center in the new scratch org, then complete your configuration.

#### See Also

- [_Salesforce DX Developer Guide_: Build Your Own Scratch Org Definition File](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file.htm)
- [_Salesforce CLI Reference Guide_: sf org create scratch](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_org_commands_unified.htm#cli_reference_org_create_scratch_unified)
- [Access Lifecycle Center from a Developer Edition Org](https://help.salesforce.com/s/articleView?id=platform.devops_center_setup_install_de_org.htm&release=264.0.0&type=5 "Sign up for a Developer Edition (DE) org and access Lifecycle Center from the App Launcher to evaluate it in a non-production environment.")
- [Set Up Lifecycle Center](https://help.salesforce.com/s/articleView?id=platform.next_gen_devops_center_setup.htm&release=264.0.0&type=5 "Configure Lifecycle Center (formerly next-generation DevOps Center) to manage your release management lifecycle. Review the prerequisites, access the feature, manage users, and set up your projects and pipelines.")