Cloudflare Wrangler(CLI) Linux怎么登录 ?
npx wrangler login |
复制链接进浏览器登录啊 |
是呀 |
如下 http://localhost:8976/oauth/callback?code=dXfc6h6BX7s9YqDPxpxf_wEKI-c6tSHBUGKi8dVHYHw.KbdDivhsU12HaGbT0mSpcz3pDK1BPCI-krSXNusifI0&scope=account%3Aread%20user%3Aread%20workers%3Awrite%20workers_kv%3Awrite%20workers_routes%3Awrite%20workers_scripts%3Awrite%20workers_tail%3Aread%20d1%3Awrite%20pages%3Awrite%20zone%3Aread%20ssl_certs%3Awrite%20ai%3Awrite%20queues%3Awrite%20pipelines%3Awrite%20offline_access&state=FmIAAl2V1y27kArfKJ7uSqNlylXwNtW2 |
搜不到用英文搜。这是验证之后的回调地址,你在VPS上curl 这个localhost地址。 |
npm i @cloudflare/wrangler -g wrangler config –api-key << EOF ${{ secrets.EMAIL }} ${{ secrets.CFKEY }} EOF |
上面是 v1 登录,v2 不用登录,每次在命令前传参 CLOUDFLARE_ACCOUNT_ID=${{ secrets.CF_ACCOUNT_ID }} CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }} wrangler deploy |