## 6.1.3.5.3 Working with Environments Using the btp CLI
Use the SAP BTP command line interface (btp CLI) to manage runtime environment instances in a subaccount. For example, enable the Cloud Foundry environment by creating a Cloud Foundry org (environment instance).
##  Tip
By default, all commands are executed in the global account you're logged in to. To change this target to a subaccount, use btp target -sa &lt;my-subaccount-id&gt; . See Set a Target for Subsequent Commands with btp target [page 2425].
| Task                                                                                | Run the command ...                       | Command help                               |
|-------------------------------------------------------------------------------------|-------------------------------------------|--------------------------------------------|
| Get all available environments for a subaccount                                     | btp list accounts/ available-environment  | btp list accounts/available-environment    |
| Get details about an environment avail- able for a subaccount                       | btp get accounts/ available-environment   | btp get accounts/available-environ- ment   |
| Get all environment instances of a sub- account                                     | btp list accounts/ environment-instance   | btp list accounts/environment-instance     |
| Get a specific environment instance of a subaccount                                 | btp get accounts/ environment-instance    | btp get accounts/environment-instance      |
| Create an environment instance in a subaccount                                      | btp create accounts/ environment-instance | btp create accounts/environment-in- stance |
| Update the plan and/or configuration parameters of an environment in a sub- account | btp update accounts/ environment-instance | btp update accounts/environment-in- stance |
| Delete environment instances of a sub- account                                      | btp delete accounts/ environment-instance | btp delete accounts/environment-in- stance |
<!-- image -->
For information about using these btp CLI commands with the Cloud Foundry environment, see Org Management Using the SAP BTP Command Line Interface (btp CLI) [page 2502].
For information about using btp CLI with the project "Kyma" environment, see the Enable SAP BTP, Kyma Runtime Using the Command Line tutorial and the Creating SAP BTP, Kyma runtime via the SAP BTP cli blog.
Parent topic:
Commands in the btp CLI [page 2433]
## Related Information
Working with Global Accounts, Directories, and Subaccounts Using the btp CLI [page 2434] Setting Entitlements Using the btp CLI [page 2438] Working with Multitenant Applications Using the btp CLI [page 2440]
Working with External Resource Providers Using the btp CLI [page 2441]
Managing Trust from SAP BTP to an SAP Cloud Identity Services Tenant [page 2442] Managing Users and Their Authorizations Using the btp CLI [page 2445] Managing Signing Keys for Access Tokens [page 2447] Managing Security Settings [page 2448] Managing API Credentials for Calling REST APIs of SAP Authorization and Trust Management Service [page 2449] Working with Resources of the SAP Service Manager Using the btp CLI [page 2450] btp CLI Command Reference