Lewati ke konten
AggregaAggrega
Pilih Bahasa: Bahasa Indonesia
Halaman ini diterjemahkan oleh mesin. Baca versi asli dalam bahasa Inggris.

aggrega version

aggrega version mencetak versi CLI aggrega.

Output

Secara default, aggrega version mencetak satu baris versi yang mudah dibaca manusia.

Dengan -o json, perintah ini menghasilkan objek yang dapat dibaca mesin, diindentasi dua spasi, dalam bentuk yang sama dengan yang digunakan setiap perintah aggrega untuk output JSON-nya. Bacalah dengan parser JSON; konsumen yang mencocokkan teksnya secara langsung sebaiknya menghapus spasi kosong sebelum mencocokkan, karena nama field-lah yang menjadi kontrak, sedangkan tata letak di sekitarnya tidak.

{
"version": "1.2.3",
"committed": "2026-07-09T18:07:57Z",
"commit": "a1b2c3d",
"abiVersion": "v1beta1",
"goVersion": "go1.23.0",
"platform": "linux/amd64"
}

Field-field tersebut berasal dari metadata build yang tertanam dalam biner. committed adalah stempel waktu commit, dan hanya ada jika build mencatatnya. abiVersion adalah versi ABI plugin yang digunakan biner, yang dapat dibaca oleh pipeline untuk memeriksa kompatibilitas plugin tanpa memuat plugin. Build pengembangan yang tidak membawa versi tertanam melaporkan nilai penanda (seperti (devel)) alih-alih gagal.

Kapan menggunakan -o json

  • Ekstensi editor membandingkan versi yang dilaporkan daemon dengan versi yang menjadi target build ekstensi tersebut, untuk mendeteksi biner aggrega serve yang tidak kompatibel sebelum menjalankannya.
  • Perangkat CI dan provenans mencatat build compiler persis yang menghasilkan suatu artefak.

Lihat juga

Sinopsis

aggrega version [flags]

Deskripsi

Print the aggrega CLI's build identity.
By default the output is a single human-readable line followed by a
one-line pointer to the plugins compiled into the binary. With
-o json, the output is a structured JSON object suitable for
programmatic consumption (the VS Code extension uses this form to
read the binary's version at activation time), in the same indented
shape every aggrega command's JSON output uses.
With --verbose, the output replaces the pointer line with a table of
the 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 array
carrying the same detail.
Version strings are v-less (1.0.0, not v1.0.0), homogeneous with the
version form catalog entities use. Tagged release builds report the
release 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.

Flag

FlagDefaultDeskripsi
--output, -otextFormat output: text|json.
--verbosefalsesertakan kumpulan plugin tertanam dalam output