Twilio CLI won';即使我';设置环境变量
在终端的Mac OS上,当我输入twilio登录时,我得到: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
» 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"