Skip to content

cloud connect --api-key is consumed as the Polylane auth key, so Trigger.dev and Render key connects fail with "Not signed in" #103

Description

@justinhelmer

Reproduced on prod with 0.2.37 (2026-09-17): after a successful polylane auth login, polylane cloud connect --provider triggerdev --api-key <tr_prod_sk_…> answers Error: Not signed in. Hint: Run polylane auth login.

Cause: src/auth/resolver.ts treats a bare --api-key anywhere in process.argv as the global Polylane API-key flag (precedence flag > POLYLANE_API_KEY > credentials file), so the provider key handed to cloud connect --api-key (Trigger.dev environment key from #101, Render API key before it) is used as the Polylane credential and rejected. Render's connect by key has the same defect.

Fix in progress: the resolver must not consume --api-key as Polylane auth when the invoked command declares its own --api-key option; the user-facing flag keeps its name for now.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions