Blogs›Cloudflare›Wrangler Authentication
Cloudflare's Wrangler CLI has evolved its authentication process to improve the developer experience. Previously, users had to manually create API tokens through the Cloudflare dashboard. The new `wrangler login` command streamlines this by allowing users to authenticate directly with their Cloudflare credentials, similar to Argo Tunnel's login flow. This involves generating a public-private key pair, prompting the user to log in via the dashboard, automatically creating a Workers-scoped API token. The CLI's command structure for interacting with Workers KV has also undergone significant iteration, moving from filesystem-like commands to declarative subcommands, and finally to a colon-delimited namespacing pattern (`kv:namespace`, `kv:key`, `kv:bulk`) for improved clarity and usability. This evolution also includes leveraging the `wrangler.toml` configuration file to map human-readable binding names to KV namespace IDs, reducing the need for users to manually manage and input complex IDs.