Skip to content

[Feature Request] Configurable schema filename #976

Description

@jdillon

Description

Allow the schema filename to be something other than .env.schema — via an env var, a package.json field, or a config key.

Motivation

Coding agents are commonly sandboxed with a deny rule on .env* so they can't read secret-bearing dotenv files. That rule catches .env.schema too, even though it's committed and holds no values — so the agent can't read or edit the one file it's most useful for it to maintain.

Proposed Solution

No preference on mechanism.

Alternatives

Naming the real file .env-schema and symlinking .env.schema to it. Works, but the symlink has to be explained to everyone who sees it.

--path .env-schema also appears to work, but only applies to that one call site — anything else running varlock load sees no schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions