登入
從 BRICKS Controller 取得拋棄式通行碼,並用它登入:設定檔
設定檔讓您管理多個工作區連線。每次登入都會建立或更新一個設定檔。個別指令的設定檔覆寫
使用-ap 或 --auth-profile 以不同設定檔執行任何指令,無需切換:
--auth-profile 旗標 > BRICKS_PROFILE 環境變數 > 已儲存的使用中設定檔。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
登入您的 BRICKS 工作區並管理設定檔
bricks auth login <passcode>
bricks auth login-token -t <token>
# 登入並儲存至具名設定檔
bricks auth login <passcode> -p my-workspace
# 列出所有設定檔
bricks auth list
# 切換使用中的設定檔
bricks auth use <profile>
# 查看目前使用中的設定檔
bricks auth status
-ap 或 --auth-profile 以不同設定檔執行任何指令,無需切換:
bricks -ap staging device list
bricks --auth-profile production app list
--auth-profile 旗標 > BRICKS_PROFILE 環境變數 > 已儲存的使用中設定檔。
# 移除目前設定檔的 token
bricks auth logout
# 移除指定的設定檔
bricks auth logout -p my-workspace
# 移除所有設定檔
bricks auth logout -a