Cloudflare Wrangler(CLI) Linux怎么登录 ?

查看 70|回复 6
作者:j6hokqgfrr   
Cloudflare Wrangler(CLI) Linux怎么登录 ?
npx wrangler login
Win能登陆能使用 Linux不行
网上搜不到相关 不会就我一个吧?

就我, 网上, CLI

法外狂徒张三   
复制链接进浏览器登录啊
j6hokqgfrr
OP
  

法外狂徒张三 发表于 2024-9-29 17:23
复制链接进浏览器登录啊

是呀
如下
dXfc6h6BX7s5YqDPxpxf_wEKI-c6tSHBUGKi8dVHYHw.KbdDivhsU12HaGbT0mSpcz3pDK2BPCI-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
j6hokqgfrr
OP
  
如下
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
fail   
搜不到用英文搜。这是验证之后的回调地址,你在VPS上curl 这个localhost地址。
loveqianool   
npm i @cloudflare/wrangler -g           wrangler config --api-key << EOF           ${{ secrets.EMAIL }}           ${{ secrets.CFKEY }}           EOF
loveqianool   
上面是 v1 登录,v2 不用登录,每次在命令前传参  CLOUDFLARE_ACCOUNT_ID=${{ secrets.CF_ACCOUNT_ID }} CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }} wrangler deploy
您需要登录后才可以回帖 登录 | 立即注册

返回顶部