Vercel

Vercel CLI Updates Default Command Scope to Local Directory Context


Executive Summary

Vercel has released an update for its Command Line Interface (CLI) that changes the default behavior of read-only commands. Commands such as `vc project ls` now automatically default to the scope of the linked local directory instead of the user's global team. This change is intended to make the CLI's output more intuitive and aligned with the developer's immediate working environment, while still allowing for manual overrides using the `--scope` flag.

Key Takeaways

* Product: Vercel CLI (version 50.40.0 and later).

* Core Change: Read-only commands like `vc project ls` and `vc domains ls` now default their scope to the currently linked local project directory.

* Problem Solved: This resolves an issue where the CLI would return global results, creating a disconnect from the developer's local context.

* Manual Override: Users can still target the global team or another scope by manually passing the `--scope` flag.

* Availability: The update is available now by upgrading to the latest version of the Vercel CLI.

Strategic Importance

This quality-of-life improvement enhances the developer experience by making the Vercel CLI more intuitive and context-aware, reducing friction in common development workflows.

Original article