LinuxCommandLibrary

doctl-apps

Manage DigitalOcean application deployments

TLDR

Create an app

$ doctl apps create
copy

Create a deployment for a specific app
$ doctl apps create-deployment [app_id]
copy

Delete an app interactively
$ doctl apps delete [app_id]
copy

Get an app
$ doctl apps get
copy

List all apps
$ doctl apps list
copy

List all deployments from a specific app
$ doctl apps list-deployments [app_id]
copy

Get logs from a specific app
$ doctl apps logs [app_id]
copy

Update a specific app with a given app spec
$ doctl apps update [app_id] --spec [path/to/spec.yml]
copy

SYNOPSIS

doctl apps [command] [options]

PARAMETERS

create
    Create an app from an app spec.

delete
    Delete an app.

get
    Get an app.

list
    List apps.

update
    Update an app from an app spec.

deploy
    Deploy an application.

logs
    Get the logs for the application.

spec get
    Get the default app spec.

spec validate
    Validate an app spec.

--format
    Output format (json|yaml|text)

--output
    Output columns and fields using the format: 'column1,column2...'

DESCRIPTION

The `doctl-apps` command allows users to interact with the DigitalOcean Apps Platform directly from their command line. It provides tools for creating, deploying, updating, and managing applications hosted on the DigitalOcean cloud.

Using `doctl-apps`, you can streamline your application deployment workflow, automate common tasks, and gain detailed insights into your application's performance and status. It enables you to configure application settings, monitor deployments, view logs, and even manage environment variables, all without needing to access the DigitalOcean control panel. This command empowers developers to manage their applications more efficiently and integrate them seamlessly into their existing development pipelines.

CAVEATS

Requires `doctl` to be configured with a valid DigitalOcean API token.

APP SPEC

The app spec is a YAML or JSON file that defines the configuration of your application, including services, databases, and environment variables. The command uses the app spec to create, update and validate the app.

AUTHENTICATION

Before using `doctl-apps`, you need to authenticate with your DigitalOcean account. You can do this by running `doctl auth init` and providing your API token.

SEE ALSO

doctl(1)

Copied to clipboard