Skip to content

Conversation

@steveworley
Copy link
Contributor

@steveworley steveworley commented Aug 19, 2025

Adds two flags to the redirect command to support removing redirects.

  • --delete: Optional boolean, confirmation will be presented to users if they delete a redirect
  • --force: Optional boolean, skip confirmation to allow non-interactive usage

Creating redirects:

node cli.js redirect /old-page-cli /new-page
─────────────────────────────────────
Active configuration:
Organization: test-project
Project: static
─────────────────────────────────────
Created redirect from /old-page-cli to /new-page (302)

Removing redirects

node cli.js redirect /old-page-cli /new-page --delete --force
─────────────────────────────────────
Active configuration:
Organization: test-project
Project: static
─────────────────────────────────────
Redirect was deleted

Update parameter collection.
@steveworley steveworley force-pushed the feat/redirect-delete branch from 65c2e4d to 45d07a9 Compare August 19, 2025 22:58
stooit
stooit previously approved these changes Aug 19, 2025
@steveworley steveworley merged commit 13c3e98 into main Aug 20, 2025
2 checks passed
@steveworley steveworley deleted the feat/redirect-delete branch August 20, 2025 22:18
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.

3 participants