doctl Verified current stable Not installed? Cloud Infrastructure

Doctl / Get App Details

Get App Details

Retrieve details of a specific app deployed on DigitalOcean.

$
Terminal
doctl a g

When To Use

During troubleshooting or validation of app configurations.

Pro Tip

Utilize the `--format` parameter to fetch structured data tailored for CI/CD pipelines.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
$ doctl apps get

ID          Name            Status      Region
------------------------------------------------
1234567890 my-app         active      nyc1
0987654321 another-app    inactive    sfo1

Anatomy of Output

Understanding the result

App Name: Sample App Name

The designated name of the deployed application.

Status: Running Status

Current operational state as reported by the service.

Region: NYC1 Region

Deployment region of the application.

Scale: 3 Scale

Number of containers scaling the app.

Power User Variants

Optimized versions

doctl apps get --format=json

Fetch details in JSON format for scripting.

doctl apps get --region nyc1

Retrieve app details specifically in the NYC1 region.

Troubleshooting

Common pitfalls

Error: App not found

Solution: Verify the app name and ensure it is correctly deployed.

Error: Access denied

Solution: Check user permissions related to the application in question.

Error: Rate limit exceeded

Solution: Slow down the rate of API calls to avoid hitting the limits.

Command Breakdown

What each part is doing

doctl
Base Command
The executable that performs this operation. Here it runs Doctl before the shell applies any redirect operators.
a
a|apps
The value supplied for a|apps.
g
g|get
The value supplied for g|get.

How To Run

Execution path

  1. Step 1

    Run `doctl apps get` to list all applications.

  2. Step 2

    Identify the app ID for details you need.

  3. Step 3

    Use `doctl apps get <app-id>` for specific app details.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.