Skip to content

Add apify env diff to check that .env and the platform are in sync #1574

Description

@DaveHanns

A check that fits pre-commit hooks and CI: does the platform have the variables the local project expects?

Scope

  • Compare .env with the Actor version. List names that are only in .env, names that are only on the platform, and plain variables whose values differ.
  • Match secrets by name only. Their values can't be compared.
  • Exit with 0 when both sides are in sync and with 1 on any difference.
  • Support --json. Never print a secret value.

Done when

  • Tests cover the three kinds of difference and the exit codes.

Depends on

Activity

  1. added theissue type on Nov 11, 2026
  2. added
    t-builders
    on Nov 11, 2026
  3. self-assigned this
    on Nov 22, 2026
  4. linked a pull request that will close this issuefeat(env): add `apify env diff` #1628on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

t-builders

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions