CorefinityCorefinityDocs
Open the Control PanelControl Panel
Environments and copies · 1 of 3

Create an environment

Add a staging environment to a site, empty or as a copy, then rename or delete it when the work is done.

On this page

Before you start

  • You can open the site in Managed Websites. Anyone who can open a site can create, rename and delete its environments.
  • Every environment you add is a staging environment with its own files, database, hostname and SSH port. On a CoreCluster it uses the cluster's capacity; on a CoreStack site the dialog shows its price before you create it.
  • Staging starts password-protected and hidden from search engines, with scheduled tasks and scheduled backups off and outgoing email held.

Create the environment

  1. Open Environments

    Go to Managed Websites, choose the site, then Environments under Code & backups. Choose Create environment.

  2. Name it and choose a size

    Enter a Name of up to 40 characters, then choose a Size; it starts on Production's. The Slug below the name becomes part of the hostname and cannot be changed later: choose Edit to set it yourself.

  3. Choose what it starts from

    Under Start from, choose what the environment begins with.

    • Empty: the runtime, a database and SFTP, with nothing copied and no application installed.
    • A copy of…: an environment of this site, copied once. Choose Files and database, Database only or Files only.
    • A git branch: a copy of the data with a branch deployed on top: see Staging from a branch.
  4. Create it

    Choose Create environment. Environments shows the progress, and the environment joins the list when it is ready.

  5. Copy the login

    A dialog shows the login for the environment's password protection, and on WordPress a new admin password. They are shown once: copy them, then choose Done.

To work on the new environment, choose it in the site header where it reads Production.

Rename or delete an environment

  1. Open the environment's menu

    In Environments, open the environment's … menu.

  2. Rename it, or delete it

    Rename… changes the name shown in the Control Panel; the hostname stays. To delete, choose Delete…, type the environment's name, then choose Delete and the name.

    Deleting removes the environment's files, database, hostname and SSH port at once. The dialog says how long its final backup is kept and how to have it restored.

Production cannot be deleted here: see Delete a site.

Automate this

Create an environment

Adds a staging environment to the site, protected by HTTP authentication from the start, with the data source chooses.

POST/api/corestack/sites/{site}/environments
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/environments \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Review",
    "slug": "review",
    "source": {
      "environment_id": 1043,
      "scope": "files_db",
      "type": "clone"
    }
  }'
Was this helpful?
Open in ClaudeOpen in ChatGPT