एजेंट कमांड

वह command जिससे एजेंट टीम के Passwords में लोगों के सेव किए sign-ins पढ़ते हैं, values दिखाए बिना।

password-book टीम के Passwords पढ़ता है: वे sign-ins जो लोगों ने टीम के बनाए ऐप्स के लिए सेव किए हैं, जैसे staging server का एक test account। टीम का हर एजेंट एक ही book पढ़ता है। Command सिर्फ़ पढ़ती है; यह कोई entry जोड़, बदल या डिलीट नहीं कर सकती।

यह कहाँ चलता है

यही command cloud टीम और Mac टीम, दोनों के एजेंट्स के लिए उपलब्ध है। Sign-in एजेंट के environment से आता है, इसलिए कुछ सेट नहीं करना पड़ता। Command को curl और jq चाहिए, जो environment देता है।

Book में entries कैसे आती हैं

Entries लोग जोड़ते हैं, एजेंट नहीं:

  • एजेंट chat में request_password card भेजकर sign-in माँगता है। व्यक्ति card पर fields भरकर उसे submit करता है। Entry card के नाम से, card के fields के साथ सेव होती है, और उसी नाम की entry बदल जाती है। Chat में कोई value नहीं रहती: card हर सेव field को dots के रूप में दिखाता है, और एजेंट को सिर्फ़ Saved to Passwords as "<name>" (fields: A, B). बताया जाता है।
  • टीम का कोई भी व्यक्ति ऐप में Settings › Teams › Passwords (“Sign-ins you fill in for Agents are saved here.”) के नीचे Add Password, Edit और Delete Password से entries जोड़, बदल और डिलीट भी कर सकता है। देखें Settings › Teams।

हर entry का नाम 1–100 characters का होता है और उसमें 1–20 fields होते हैं, हर एक का label अलग।

Synopsis

password-book list
password-book get NAME
password-book get NAME --field LABEL
password-book get NAME --reveal
password-book --help

NAME और LABEL बिल्कुल सटीक मेल खाते हैं, case समेत। उनमें spaces हों तो quotes लगाएँ।

Commands और options

Command Option क्या दिखाती है
list — हर entry की table: नाम, field labels और आख़िरी बार update होने की तारीख। कोई values नहीं।
get NAME — Entry के field labels, हर value ******** के रूप में छिपी हुई। stderr पर एक hint बताता है कि एक value कैसे pipe करें।
get NAME --field LABEL सिर्फ़ उस field की value, बिना newline के, ताकि उसे किसी दूसरी command में pipe किया जा सके।
get NAME --reveal हर field label: value के रूप में।

--field और --reveal साथ में इस्तेमाल नहीं हो सकते। --field --field=LABEL भी स्वीकार करता है।

Output

list:

NAME                  FIELDS           UPDATED
Staging test account  Email, Password  2026-11-02

Book खाली हो तो यह The Team's Passwords are empty. दिखाती है।

get NAME:

Email: ********
Password: ********

और stderr पर:

Values hidden. Pipe one with --field LABEL, e.g.
  password-book get "Staging test account" --field Password | simulator type -

Values को transcript से बाहर रखना

Command जो कुछ भी stdout पर दिखाती है, वह एजेंट के transcript का हिस्सा बन जाता है। इसलिए साधारण get values छिपाता है, और --field को दिखाने के लिए नहीं, बल्कि सीधे उस command में pipe करने के लिए बनाया गया है जिसे value चाहिए। Simulator पर sign in करने के लिए field पर tap करें और simulator fill को value paste करने दें; यह उसे कभी दिखाता नहीं:

टर्मिनल विंडो
simulator fill "Staging test account" --field Password

Command की help इसके साथ का नियम भी जोड़ती है: कोई भी value कभी chat, files, commits या logs में न लिखें।

Exit codes

Code मतलब
0 सफल, खाली book समेत।
1 Entry या field नहीं मिला, या book पढ़ी नहीं जा सकी।
2 Usage error, जैसे अनजान command या option, या कोई command ही नहीं।

Errors

Message क्या करें
Error: no Password named "NAME". और उसके बाद Available: व नाम दिए गए नामों में से कोई एक, ठीक वैसा ही लिखकर इस्तेमाल करें।
Error: "NAME" has no field "LABEL". और उसके बाद Fields: … दिए गए labels में से कोई एक इस्तेमाल करें।
Error: 'password-book get' needs the entry's name. Entry का नाम जोड़ें।
Error: --field and --reveal cannot be used together. इनमें से एक इस्तेमाल करें।
Error: --field needs a field label. --field के बाद label जोड़ें।
Error: unknown command: … या Error: unknown argument: … Synopsis से line मिलाएँ।
Error: could not reach Airbuild to read the Team's Passwords. फिर कोशिश करें।
Error: Airbuild could not read the Team's Passwords (HTTP …). फिर कोशिश करें; status के बाद का reason और जानकारी देता है।

उदाहरण

देखें कि कौन-सी entries मौजूद हैं:

टर्मिनल विंडो
password-book list

जाँचें कि किसी entry में कौन-से fields हैं, उन्हें देखे बिना:

टर्मिनल विंडो
password-book get "Staging test account"

Simulator के focused field में एक value type करें:

टर्मिनल विंडो
password-book get "Staging test account" --field Password | simulator type -

किसी दूसरी command को book से नाम के ज़रिए password पढ़ने दें (यहाँ, android-key से Android keystore import करते हुए):

टर्मिनल विंडो
android-key import upload.p12 --package com.example.app \
  --password-entry "Android keystore com.example.app"