aggrega version
aggrega version aggrega CLI का संस्करण प्रिंट करता है।
आउटपुट
डिफ़ॉल्ट रूप से aggrega version मनुष्य-पठनीय संस्करण पंक्ति प्रिंट करता है।
-o json के साथ यह मशीन-पठनीय ऑब्जेक्ट जारी करता है, दो स्पेस से इंडेंट किया हुआ, उसी आकार में जिसका हर aggrega कमांड अपने JSON आउटपुट के लिए उपयोग करता है। इसे JSON पार्सर से पढ़ें; जो उपभोक्ता इसके बजाय टेक्स्ट पर मिलान करता है, उसे मिलान से पहले व्हाइटस्पेस हटा देना चाहिए, क्योंकि फ़ील्ड के नाम अनुबंध हैं और आसपास का लेआउट नहीं।
{ "version": "1.2.3", "committed": "2026-07-09T18:07:57Z", "commit": "a1b2c3d", "abiVersion": "v1beta1", "goVersion": "go1.23.0", "platform": "linux/amd64"}फ़ील्ड बाइनरी के एम्बेडेड बिल्ड मेटाडेटा से आते हैं। committed कमिट टाइमस्टैम्प है, और यह केवल तभी मौजूद होता है जब बिल्ड ने उसे दर्ज किया हो। abiVersion वह प्लगइन ABI संस्करण है जो बाइनरी बोलती है, जिसे कोई पाइपलाइन किसी प्लगइन को लोड किए बिना प्लगइन संगतता जाँचने के लिए पढ़ सकती है। कोई एम्बेडेड संस्करण न रखने वाला डेवलपमेंट बिल्ड विफल होने के बजाय एक सेंटिनल मान (जैसे (devel)) रिपोर्ट करता है।
-o json का उपयोग कब करें
- एडिटर एक्सटेंशन डेमन के रिपोर्ट किए गए संस्करण की तुलना उस संस्करण से करता है जिसके लिए वह बनाया गया था, ताकि उसे चलाने से पहले असंगत
aggrega serveबाइनरी का पता लगा सके। - CI और प्रोवेनेंस टूलिंग वह सटीक कंपाइलर बिल्ड दर्ज करती है जिसने कोई आर्टिफ़ैक्ट बनाया।
यह भी देखें
- ./aggrega-serve.md — वह डेमन जिसके संस्करण की जाँच कोई क्लाइंट संगतता के लिए करता है।
सारांश
aggrega version [flags]विवरण
Print the aggrega CLI's build identity.
By default the output is a single human-readable line followed by aone-line pointer to the plugins compiled into the binary. With-o json, the output is a structured JSON object suitable forprogrammatic consumption (the VS Code extension uses this form toread the binary's version at activation time), in the same indentedshape every aggrega command's JSON output uses.
With --verbose, the output replaces the pointer line with a table ofthe embedded plugins — type, name, served capabilities, and commit —under a header naming the count and their shared version. With--verbose -o json, the JSON object gains an embeddedPlugins arraycarrying the same detail.
With --licenses, the output is the third-party notices of everythingcompiled into the binary: the host and each embedded plugin, everydependency with its version, license and copyright lines, then eachlicense text once. It is printed as plain text, so --licenses cannot becombined with -o json or --verbose.
Version strings are v-less (1.0.0, not v1.0.0), homogeneous with theversion form catalog entities use. Tagged release builds report therelease version, a build stamped with a version reports that version,and a build carrying no version stamp reports the literal "(devel)",which marks an unreleased build.फ़्लैग
| फ़्लैग | डिफ़ॉल्ट | विवरण |
|---|---|---|
--licenses | false | बाइनरी में संकलित हर चीज़ की थर्ड-पार्टी सूचनाएँ प्रिंट करें |
--output, -o | text | आउटपुट फ़ॉर्मेट: text|json। |
--verbose | false | आउटपुट में एम्बेडेड-प्लगइन समुच्चय शामिल करें |