## 6.1.3.5.1 Working with Global Accounts, Directories, and Subaccounts Using the btp CLI
Use the SAP BTP command line interface (btp CLI) to manage operations with global accounts, directories, and subaccounts.
## Working with Global Accounts
##  Tip
These global account commands are always executed in the global account you're logged in to. You don't need to pass the global account parameter, even if you've targeted a subaccount or directory. See Set a Target for Subsequent Commands with btp target [page 2425].
| Task                                                                                                               | Run the command...               | Command help                    |
|--------------------------------------------------------------------------------------------------------------------|----------------------------------|---------------------------------|
| Get details about a global account, and the account structure (directories and subaccounts) of the global account. | btp get accounts/global- account | btp get accounts/global-account |
| Task                                                              | Run the command...                  | Command help                       |
|-------------------------------------------------------------------|-------------------------------------|------------------------------------|
| Update the display name and/or de- scription of a global account. | btp update accounts/ global-account | btp update accounts/global-account |
For more information, see Global Accounts [page 111].
## Working with Directories
Directories allow you to organize and manage your subaccounts according to your technical and business needs.
##  Tip
By default, all commands are executed in the global account you're logged in to. To change the target to a directory, use btp target -dir &lt;my-directory-id&gt; . See Set a Target for Subsequent Commands with btp target [page 2425].
| Task                                                                                       | Run the command...             | Command help                  |
|--------------------------------------------------------------------------------------------|--------------------------------|-------------------------------|
| Get details about a directory and list the subaccounts and subdirectories in the directory | btp get accounts/directory     | btp get accounts/directory    |
| Create a directory                                                                         | btp create accounts/ directory | btp create accounts/directory |
| Update a directory                                                                         | btp update accounts/ directory | btp update accounts/directory |
| Delete a directory                                                                         | btp delete accounts/ directory | btp delete accounts/directory |
| Change the set of enabled features (user and entitlement management) for a directory       | btp enable accounts/ directory | btp enable accounts/directory |
| List the user-defined labels assigned to a directory                                       | btp list accounts/labels       | btp list accounts/label       |
| Task                                                                                                                                                     | Run the command...                 | Command help                      |
|----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|-----------------------------------|
| List the custom properties assigned to a directory  Note Custom properties are deprecated. Custom properties support only single values per key and are | btp list accounts/custom- property | btp list accounts/custom-property |
For more information, see Directories [page 113].
## Working with Subaccounts
##  Tip
By default, all commands are executed in the global account you're logged in to. To change the 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                   |
|-------------------------------------------------------|---------------------------------|--------------------------------|
| List all subaccounts in a global account              | btp list accounts/ subaccount   | btp list accounts/subaccount   |
| Get details about a subaccount                        | btp get accounts/ subaccount    | btp get accounts/subaccount    |
| Create a subaccount                                   | btp create accounts/ subaccount | btp create accounts/subaccount |
| Update a subaccount                                   | btp update accounts/ subaccount | btp update accounts/subaccount |
| Delete a subaccount                                   | btp delete accounts/ subaccount | btp delete accounts/subaccount |
| Move a subaccount                                     | btp move accounts/ subaccount   | btp move accounts/subaccount   |
| List the user-defined labels assigned to a subaccount | btp list accounts/labels        | btp list accounts/label        |
| Task                                                                                                                                                                                                                                                                              | Run the command...                  | Command help                       |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------|------------------------------------|
| List the custom properties assigned to a subaccount  Note Custom properties are deprecated. Custom properties support only single values per key and are now replaced by the string array labels , which supports multiple values per key. Use btp list accounts/labels instead. | btp list accounts/custom- property  | btp list accounts/custom-property  |
| Get all available regions for global ac- count                                                                                                                                                                                                                                    | btp list accounts/ available-region | btp list accounts/available-region |
For more information, see Subaccounts [page 112].
Parent topic: Commands in the btp CLI [page 2433]
## Related Information
Setting Entitlements Using the btp CLI [page 2438]
Working with Environments Using the btp CLI [page 2439]
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]
Set a Target for Subsequent Commands with btp target [page 2425]
Labels [page 115]
btp CLI Command Reference