feat: auto-extract and save App ID from environment#38
实现 App ID 自动提取和保存,用户不再需要每次手动传 --app-id。
--app-id
首次运行时,CLI 自动:
~/.tcb-user/config.json
改进前:
tcb-user collection query todos --app-id 1328860866 --env-id test-xxx
改进后:
tcb-user collection query todos --env-id test-xxx # 首次运行会提示:✅ Auto-extracted and saved App ID: 1328860866
initConfigAsync()
createClients()
Closes #36
功能说明
实现 App ID 自动提取和保存,用户不再需要每次手动传
--app-id。自动提取机制
首次运行时,CLI 自动:
~/.tcb-user/config.json用户体验
改进前:
改进后:
tcb-user collection query todos --env-id test-xxx # 首次运行会提示:✅ Auto-extracted and saved App ID: 1328860866代码变更
initConfigAsync()支持异步提取createClients()兼容性
--app-id参数Closes #36