Skip to content

Add deprecation warning for Deno Deploy Classic#382

Open
donjo wants to merge 2 commits intomainfrom
add-deprecation-warning
Open

Add deprecation warning for Deno Deploy Classic#382
donjo wants to merge 2 commits intomainfrom
add-deprecation-warning

Conversation

@donjo
Copy link
Member

@donjo donjo commented Mar 10, 2026

Screenshot 2026-03-10 at 12 35 07 PM

Summary

  • Adds a stderr warning on every CLI run notifying users that deployctl is for Deno Deploy Classic only and that the new platform uses deno deploy
  • Interactive terminals see the warning every run; non-interactive environments (CI) see it once per day via a cache file
  • Users can suppress the warning entirely with DEPLOYCTL_NO_DEPRECATION_NOTICE=1
  • Updates help text to say "Deno Deploy Classic" instead of "Deno Deploy"

Test plan

  • Run deno run -A deployctl.ts — warning should appear on stderr
  • Run deno run -A deployctl.ts -h — help text should say "Deno Deploy Classic"
  • Run DEPLOYCTL_NO_DEPRECATION_NOTICE=1 deno run -A deployctl.ts — no warning
  • Run echo "" | deno run -A deployctl.ts twice — warning shows first time, not second (cached for 24h)

deployctl is only for Deno Deploy Classic, but users may not be aware
that the new Deno Deploy platform uses the `deno deploy` command built
into the Deno runtime. This adds a warning to stderr on every CLI run:

- Interactive terminals: shows every run
- Non-interactive (CI): shows once per day, cached to disk
- Suppressible via DEPLOYCTL_NO_DEPRECATION_NOTICE=1 env var
@donjo donjo requested a review from arnauorriols March 10, 2026 16:36
Copy link
Member

@arnauorriols arnauorriols left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants