[{"data":1,"prerenderedAt":86},["ShallowReactive",2],{"legacy-question-2504513b600939bf9c57cd9ff089fcf5":3,"legacy-question-author-koji-kadoma":59,"legacy-question-category-website-building":75},{"id":4,"title":5,"author":6,"body":7,"category":46,"date":47,"description":5,"extension":48,"locale":49,"meta":50,"navigation":51,"path":52,"seo":53,"slug":54,"stem":55,"tag":56,"updated":47,"__hash__":58},"legacyQuestions\u002F20210408000000-Cloudflareのwranglerで別アカウントのWorkersを管理するには？.md","Cloudflareのwranglerで別アカウントのWorkersを管理するには？","koji-kadoma",{"type":8,"value":9,"toc":42},"minimark",[10,15,19,22,33,36,39],[11,12,14],"h2",{"id":13},"コマンド時にapiコードを指定します","コマンド時にAPIコードを指定します。",[16,17,18],"p",{},"wranglerコマンドは、基本的にはloginしているアカウントIDのWorkersしか管理ができません。",[16,20,21],{},"しかし、APIトークンを指定することで、別のアカウントIDのWorkersをwranglerコマンドで実行することが可能になります。",[23,24,29],"pre",{"className":25,"code":27,"language":28},[26],"language-text","CF_API_TOKEN=トークン wrangler コマンド\n\n\u002F\u002F 例\nCF_API_TOKEN=abcdefgabcdefgabcdefgabcdefg wrangler publish\n","text",[30,31,27],"code",{"__ignoreMap":32},"",[16,34,35],{},"wranglerコマンドの前に「CF_API_TOKEN=トークン」を付けるだけなので、簡単です。",[16,37,38],{},"トークンは、Workersを管理できるAPI トークンを発行します。管理画面のマイアカウントにある「Global API Key」では実行ができないので、注意が必要です。",[16,40,41],{},"プレビューサーバーを立ち上げる「wrarngler dev」でも別アカウントの場合はCF_API_TOKENの指定が必要です。",{"title":32,"searchDepth":43,"depth":43,"links":44},2,[45],{"id":13,"depth":43,"text":14},"website-building","2021-04-08T04:00:00.000Z","md","ja",{},true,"\u002F20210408000000-cloudflarewranglerworkers",{"title":5,"description":5},"2504513b600939bf9c57cd9ff089fcf5","20210408000000-Cloudflareのwranglerで別アカウントのWorkersを管理するには？",[57],"cloudflare-workers","ooS1wL10HLQpPY3BIrJUOi_cgdxjMPhbuuau8GIgXXE",{"id":60,"title":61,"body":62,"date":66,"description":67,"extension":48,"locale":49,"meta":68,"name":71,"navigation":51,"path":72,"seo":73,"slug":6,"stem":6,"updated":66,"__hash__":74},"legacyAuthors\u002Fkoji-kadoma.md","Koji Kadoma",{"type":8,"value":63,"toc":64},[],{"title":32,"searchDepth":43,"depth":43,"links":65},[],"2021-04-01T00:00:00.000Z","Webエンジニアです。Javascript、PHP、Ruby、Dockerなどをメインで使っています。",{"image":69,"url":70},"https:\u002F\u002Fwww.codit.work\u002Fimgs\u002Favatar\u002Fkoji-kadoma.png","https:\u002F\u002Fkoji.pages.dev\u002F",null,"\u002Fkoji-kadoma",{"title":61,"description":67},"H1yaGicrsv1CzYTbFeEXQosuYx93lIutD3_XwXMhAFk",{"id":76,"title":77,"body":78,"date":66,"description":77,"extension":48,"locale":49,"meta":82,"navigation":51,"path":83,"seo":84,"slug":46,"stem":46,"updated":66,"__hash__":85},"legacyCategories\u002Fwebsite-building.md","Webサイト構築",{"type":8,"value":79,"toc":80},[],{"title":32,"searchDepth":43,"depth":43,"links":81},[],{},"\u002Fwebsite-building",{"title":77,"description":77},"h9jPLD2mzMm3L4sFN5qWSiSirySQQLdnxLhQcvw8VlQ",1783320300862]