How to get the accountId that is required to do a cloud build with nativescript?

时间:2018-04-18 17:55:58

标签: nativescript

Currently the following command:

tns cloud build android --accountId=<cannot find the account id assigned to our email>

returns this line: Invalid accountId index provided

How could you get the correct accountId for your account?

(note that we have already used tns login to login successfully)

2 个答案:

答案 0 :(得分:6)

&#39; 1&#39;适合我。

  

- 帐户ID = 1

答案 1 :(得分:2)

来自pansila的有趣解决方案:) 不过,如果要使用帐户ID进行构建,则应使用tns login登录,然后使用以下命令获取ID

tns account

它将产生类似于以下内容的信息

┌───┬──────────────────────────────────────┬────────────────┬──────────┐
│ # │ Id                                   │ Account        │ Type     │
│ 1 │ 000000-11111-2222222-555555          │ myaccount name │ personal │
└───┴──────────────────────────────────────┴────────────────┴──────────┘

因此,您可以使用

构建云
tns cloud accountId=000000-11111-2222222-555555
相关问题