如何获取使用nativescript进行云构建所需的accountId?

Geo*_*los 4 nativescript

当前以下命令:

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

返回此行: Invalid accountId index provided

您如何获得正确的帐户ID

请注意,我们已经习惯于tns login成功登录

pan*_*ila 6

“ 1”对我有用。

--accountId = 1


Nic*_*iev 5

pansila 的一个有趣的解决方案 :) 尽管如此,如果您想使用您的帐户 ID 进行构建,您应该登录tns login然后使用以下命令获取 ID

tns account
Run Code Online (Sandbox Code Playgroud)

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

????????????????????????????????????????????????????????????????????????
? # ? Id                                   ? Account        ? Type     ?
? 1 ? 000000-11111-2222222-555555          ? myaccount name ? personal ?
????????????????????????????????????????????????????????????????????????
Run Code Online (Sandbox Code Playgroud)

那么你可以使用云构建

tns cloud accountId=000000-11111-2222222-555555
Run Code Online (Sandbox Code Playgroud)