Skip to content

Add apify env pull #1573

Open
Open

Description

@DaveHanns

apify env pull writes the Actor version's variables into .env, so a local project can start from what the platform has.

Scope

  • Write plain variables with their values. Write secret variables with an empty value, because the API never returns them.
  • When .env exists, update plain variables, keep the local value of keys that are secret on the platform, and keep keys that exist only locally. Show what changes and ask for confirmation. --yes skips the prompt.
  • Add .env to .gitignore when it's missing.
  • List the written keys without values when --json is set.

Done when

  • Tests cover a new .env, a merge with an existing .env, and a version with secrets.

Depends on

Activity

  1. added theissue type on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-buildersIssues owned by the Builders team.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions