Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twilio CLI won';即使我';设置环境变量_Twilio - Fatal编程技术网

Twilio CLI won';即使我';设置环境变量

Twilio CLI won';即使我';设置环境变量,twilio,Twilio,在终端的Mac OS上,当我输入twilio登录时,我得到: » Installing keytar ... » Secure credential storage failed to load. Alternatively, twilio-cli can use credentials stored in environment variables: # OPTION 1 (recommended) TWILIO_ACCOUNT_SID = your Account SID from

在终端的Mac OS上,当我输入twilio登录时,我得到:

 » Installing keytar ...
 » Secure credential storage failed to load.

Alternatively, twilio-cli can use credentials stored in environment variables:

# OPTION 1 (recommended)
TWILIO_ACCOUNT_SID = your Account SID from twil.io/console
TWILIO_API_KEY = an API Key created at twil.io/get-api-key
TWILIO_API_SECRET = the secret for the API Key

# OPTION 2
TWILIO_ACCOUNT_SID = your Account SID from twil.io/console
TWILIO_AUTH_TOKEN = your Auth Token from twil.io/console

Once these environment variables are set, a twilio-cli profile is not required to move forward with installation.
但是,我确实尝试通过键入以下语句来设置环境变量,但仍然不起作用(当然,我用实际值替换了字符串):


“你有没有这样做过?”Mikemacana客户支持给我发电子邮件说,这很可能是他们CLI的一个bug。CLI在引擎盖下使用ngrok,因此我最终使用了ngrok。
export TWILIO_ACCOUNT_SID="abcd"
export TWILIO_AUTH_TOKEN="efgh"