> For the complete documentation index, see [llms.txt](https://docs.flxbl.io/flxbl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flxbl.io/flxbl/sfops/environments/creating-an-environment.md).

# Creating an Environment

Environments in sfops is tied to GitHub Environments (<https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment>) with additional metadata such as described below\\

<figure><img src="/files/0pbOra5bgDwNDDgACQqQ" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="139">Name</th><th width="143.33333333333331">Type</th><th>Purpose</th></tr></thead><tbody><tr><td>SBXNAME</td><td>variable : string</td><td>(Optional) Stores the name of the sandbox associated with the environment. If SB_SFDX_AUTH_URL is not provided use, the name to handle authentication. Read more <a href="/pages/vBibt7hKpyyi6Xa9ev4p">here</a></td></tr><tr><td>TESTRUN</td><td>variable : boolean</td><td>Use this environment for daily full test tuns by a scheduled sfops workflow</td></tr><tr><td>TYPE</td><td>variable : string</td><td>Denotes the type of the environment, an environment could be one of 'development', 'test' or 'release'</td></tr><tr><td>SB_SFDX_AUTH_URL</td><td>secret : string</td><td>Auth URL to the environment, Read <a href="/pages/vBibt7hKpyyi6Xa9ev4p">here </a>on how to generate one</td></tr><tr><td>BRANCH</td><td>variable:string</td><td>Required for test and snapshot environments. This variable denote the branch which environment is associated with.</td></tr></tbody></table>

\
Environments added to GitHub will be displayed in Environment Snapshot in sfops Dev Central as shown below

<figure><img src="/files/N8J6VvKcvSk6AveYWC7F" alt=""><figcaption></figcaption></figure>

Environments can be created from dev central by using the `add` icon in each of the category. One could also use the '**Request a new environment**', from the service catalogue directly, where you could fill in the details, and the environment gets created. Please note the sandbox has to be created previously before triggering the request.

<figure><img src="/files/F6aEu5PRaO8NWWy3KyLV" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flxbl.io/flxbl/sfops/environments/creating-an-environment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
