Skip to content

[feature request] --env-file option in aptible deploy #300

@averypelle

Description

@averypelle

It would be great if aptible deploy had an option to synchronize the Aptible Configuration via a file.

Currently we can supply environment variables via aptible deploy as per the docs like

aptible deploy \
  --app "$APP_HANDLE" \
  --docker-image "$DOCKER_IMAGE" \
  FOO=BAR QUX=

It would be awesome if you could add support for an --env-file option or similar, so that the configuration can be set during deploy like so

aptible deploy \
  --app $APP_HANDLE \
  --docker-image $DOCKER_IMAGE \
  --env-file .env.aptible

I am currently instead doing the following

aptible deploy \
    --app $APP_HANDLE \
    --docker-image $DOCKER_IMAGE \
    ${test -f .env.aptible && paste -s -d ' ' .env.aptible}

If this is fixed, it could also make sense to add a similar option to aptible config:set

Thank you for the great product and CLI!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions