{"id":17337,"date":"2024-01-18T11:39:49","date_gmt":"2024-01-18T02:39:49","guid":{"rendered":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=17337"},"modified":"2024-01-18T11:39:49","modified_gmt":"2024-01-18T02:39:49","slug":"twilio-cli%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6twilio-sendgrid%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=17337","title":{"rendered":"Twilio CLI\u3092\u4f7f\u3063\u3066Twilio SendGrid\u306e\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/20240118_blog.png\" alt=\"Twilio CLI\u3092\u4f7f\u3063\u3066Twilio SendGrid\u306e\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\" width=\"100%\" class=\"aligncenter size-full wp-image-17338\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/20240118_blog.png 650w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/20240118_blog-300x185.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/20240118_blog-225x139.png 225w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>Twilio SendGrid\u30b5\u30dd\u30fc\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u83ca\u7530(<a href=\"https:\/\/twitter.com\/kikutaro_\" rel=\"noopener\" target=\"_blank\">@kikutaro_<\/a>)\u3067\u3059\u3002Twilio\u3067\u306fAPI\u3092\u7c21\u5358\u306b\u4f7f\u3046\u624b\u6bb5\u3068\u3057\u3066<a href=\"https:\/\/www.twilio.com\/docs\/twilio-cli\" rel=\"noopener\" target=\"_blank\">Twilio CLI<\/a>\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3067\u7c21\u5358\u306bAPI\u3092\u547c\u3079\u308b\u306e\u3067\u3001\u3059\u3050\u306b\u52d5\u4f5c\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d\u306a\u3069\u306b\u4fbf\u5229\u3067\u3059\u3002\u4eca\u56de\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Twilio CLI\u3092\u4f7f\u3063\u3066SendGrid\u306e\u30e1\u30fc\u30eb\u3092\u9001\u308b\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>Twilio CLI\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p><a href=\"https:\/\/www.twilio.com\/docs\/twilio-cli\/quickstart\" rel=\"noopener\" target=\"_blank\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/a>\u306f\u6b21\u306e5\u7a2e\u985e\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3054\u81ea\u8eab\u306e\u74b0\u5883\u306b\u3042\u308f\u305b\u3066\u9078\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>homebrew (Mac)<\/li>\n<li>apt<\/li>\n<li>scoop (Windows)<\/li>\n<li>Docker<\/li>\n<li>npm<\/li>\n<\/ul>\n<p>\u4eca\u56de\u306fDocker\u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u3067\u9032\u3081\u307e\u3059\u3002\u5b9f\u969b\u306b\u52d5\u4f5c\u78ba\u8a8d\u3057\u305f\u74b0\u5883\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>Windows 11 Pro 22H2 64bit<\/li>\n<li>Docker 24.0.2-rd<\/li>\n<\/ul>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndocker run -it --rm twilio\/twilio-cli bash\r\n<\/pre>\n<p>\u3053\u308c\u3067Twilio CLI\u3092\u5229\u7528\u3067\u304d\u308b\u74b0\u5883\u304c\u7acb\u3061\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30b3\u30de\u30f3\u30c9\u306e\u8aac\u660e<\/h3>\n<p>\u30e1\u30a4\u30f3\u3068\u306a\u308b\u30b3\u30de\u30f3\u30c9\u306f<strong>twilio<\/strong>\u3067\u3059\u3002\u30d8\u30eb\u30d7\u306fh\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ntwilio -h\r\n\r\nUnleash the power of Twilio from your command prompt. Visit https:\/\/twil.io\/cli for don.\r\n\r\nVERSION\r\n  twilio-cli\/5.15.0 linux-x64 node-v18.16.0\r\n\r\nUSAGE\r\n  $ twilio &#x5B;COMMAND]\r\n\r\nTOPICS\r\n  api            advanced access to all of the Twilio APIs\r\n  config         manage Twilio CLI configurations\r\n  debugger       Show a list of log events generated for the account\r\n  email          sends emails to single or multiple recipients using Twilio SendGrid\r\n  feedback       provide feedback to the CLI team\r\n  phone-numbers  manage Twilio phone numbers\r\n  plugins        list available plugins for installation\r\n  profiles       manage credentials for Twilio profiles\r\n\r\nCOMMANDS\r\n  autocomplete  display autocomplete installation instructions\r\n  feedback      provide feedback to the CLI team\r\n  login         create a new profile to store Twilio Account credentials and configuration\r\n  plugins       List installed plugins.\r\n  update        update the twilio CLI\r\n  version\r\n<\/pre>\n<p>\u4eca\u56de\u306fTOPICS\u306b\u8f09\u3063\u3066\u3044\u308bemail\u3092\u4f7f\u3044\u307e\u3059\u3002\u5b9f\u969b\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u524d\u306b\u3001Twilio SendGrid\u306eAPI\u30ad\u30fc\u3092\u6e96\u5099\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>Twilio SendGrid\u306e<a href=\"https:\/\/sendgrid.kke.co.jp\/docs\/Tutorials\/A_Transaction_Mail\/manage_api_key.html#-Generate\" rel=\"noopener\" target=\"_blank\">API\u30ad\u30fc\u4f5c\u6210<\/a><\/h3>\n<p>SendGrid\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304b\u3089Settings > API Keys\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u6a29\u9650\u306e\u307f\u3042\u308c\u3070\u826f\u3044\u306e\u3067\u3001Restricted Access\u306eMail Send\u306e\u307f\u306bFull Access\u3092\u4e0e\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2023-10-24_17h49_07.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2023-10-24_17h49_07.png\" alt=\"Twilio SendGrid\u306eAPI\u30ad\u30fc\u4f5c\u6210\" width=\"100%\" class=\"aligncenter size-full wp-image-17345\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2023-10-24_17h49_07.png 1151w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2023-10-24_17h49_07-300x261.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2023-10-24_17h49_07-768x669.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2023-10-24_17h49_07-1024x892.png 1024w\" sizes=\"(max-width: 1151px) 100vw, 1151px\" \/><\/a><\/p>\n<h3>\u30e1\u30fc\u30eb\u306e\u9001\u4fe1<\/h3>\n<p>Twilio CLI\u306b\u623b\u3063\u3066\u3001\u4f5c\u6210\u3057\u305fAPI\u30ad\u30fc\u3092\u74b0\u5883\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexport SENDGRID_API_KEY=SG.xxxxxxxxxxxxxxx\r\n<\/pre>\n<p>email:set\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3068From\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u4ef6\u540d\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002Sender\u306b\u306f\u3054\u81ea\u8eab\u306e\u9001\u4fe1\u5143From\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f8b\u3067\u306f\u79c1\u306e\u6240\u6709\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u300ckikuta@kikutaro.tech\u300d\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ntwilio email:set\r\n? Default email address of the sender: kikuta@kikutaro.tech\r\n? Default subject line for all emails: \u3053\u3093\u306b\u3061\u306f!\r\nDefault sending email address has been set to: kikuta@kikutaro.tech\r\nDefault subject line has been set to: \u3053\u3093\u306b\u3061\u306f!\r\ntwilio-cli configuration saved to &quot;\/root\/.twilio-cli\/config.json&quot;\r\n<\/pre>\n<p>\u305d\u308c\u3067\u306femail:send\u30b3\u30de\u30f3\u30c9\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u5b9b\u5148\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u672c\u6587\u3001\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306e\u6709\u7121\uff08\u3042\u308b\u5834\u5408\u306f\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u6307\u5b9a\uff09\u3092\u805e\u304b\u308c\u308b\u306e\u3067\u7b54\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ntwilio email:send\r\n? Email address of recipient (for multiple email addresses separate each email with a comma): kikutarosendgrid@gmail.com\r\n? Text to send within the email body: Twilio CLI\u304b\u3089\u9001\u4fe1\u3057\u307e\u3057\u305f\u3002\r\n? Would you like to send an attachment? No\r\n<\/pre>\n<p>\u6210\u529f\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nYour email containing the message &quot;Twilio CLI\u304b\u3089\u9001\u4fe1\u3057\u307e\u3057\u305f\u3002&quot; sent from &quot;kikuta@kikutaro.tech&quot; to &quot;kikutarosendgrid@gmail.com&quot; with the subject line &quot;\u3053\u3093\u306b\u3061\u306f!&quot; has been sent!\r\n<\/pre>\n<p>\u5b9f\u969b\u306b\u5c4a\u3044\u305f\u30e1\u30fc\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3068\u5165\u529b\u306e\u3068\u304a\u308a\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2024-01-15_12h01_36.png\" alt=\"\u5b9f\u969b\u306b\u5c4a\u3044\u305f\u30e1\u30fc\u30eb\" width=\"100%\" class=\"aligncenter size-full wp-image-17344\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2024-01-15_12h01_36.png 573w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2024\/01\/2024-01-15_12h01_36-300x102.png 300w\" sizes=\"(max-width: 573px) 100vw, 573px\" \/><\/p>\n<p>\u73fe\u5728Twilio CLI\u306eSendGrid\u6a5f\u80fd\u306b\u95a2\u3057\u3066\u306f\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u30e1\u30fc\u30eb\u9001\u4fe1\u3057\u304b\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3068\u3057\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u6a5f\u80fd\u62e1\u5f35\u3082\u53ef\u80fd\u3067\u3059\uff08\u30b3\u30f3\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u65b9\u6cd5\u306f<a href=\"https:\/\/github.com\/twilio\/twilio-cli\/tree\/main#contributing\" rel=\"noopener\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u3067\u3059\uff09\u3002\u3054\u8208\u5473\u3042\u308c\u3070\u305c\u3072Twilio CLI\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Twilio SendGrid\u30b5\u30dd\u30fc\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u83ca\u7530(@kikutaro_)\u3067\u3059\u3002Twilio\u3067\u306fAPI\u3092\u7c21\u5358\u306b\u4f7f\u3046\u624b\u6bb5\u3068\u3057\u3066Twilio CLI\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3067\u7c21\u5358\u306bAPI\u3092\u547c\u3079\u308b\u306e\u3067\u3001\u3059\u3050\u306b\u52d5\u4f5c\u78ba\u8a8d\u3057\u305f <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=17337\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":9,"featured_media":17338,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-17337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/17337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17337"}],"version-history":[{"count":3,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/17337\/revisions"}],"predecessor-version":[{"id":17346,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/17337\/revisions\/17346"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/17338"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}