aggrega config
ตรวจ
รูป
aggrega configคำ
Inspect and manage the configuration Aggrega reads.
Most projects need two files.
One .aggrega-config.yaml at your project root, carrying a "workspace:" block —that block is what marks the root — holds how this project builds: its catalogdirectories, its provider bindings, which lint rules it relaxes. It iscommitted, so a teammate who clones the project builds it the same way.
One global file is shared across every workspace on this machine:~/.config/aggrega/config.yaml, or on Windows aggrega\config.yaml inside thedirectory the APPDATA environment variable names. It holds what belongs to themachine rather than to any one project: the registries you pull from and thesignature trust policy for each, how large the compiled-module store may grow,any command extension you have installed. It loads automatically when it isthere, and nothing breaks when it is not.
Your project's file wins over the global one, an environment variable winsover both, and a flag wins over everything.
Secrets are not configuration. A registry password or a signing identity tokenis never a field in either file; it is supplied by environment variable or flagat the moment it is needed.
Because the effective configuration is assembled rather than written anywhere,"aggrega config show" is how you see what actually applies, and --origin is howyou find out which layer each setting came from. "aggrega config init" seeds aworking configuration, and "aggrega config capture" freezes the effectivebuild-critical settings into this workspace so a build does not depend on aglobal file that is not committed.
Larger projects have more to work with. None of it is needed to start, and eachpiece exists for the shape it solves:
More than one file inside a project. Every .aggrega-config.yaml from the project root down to the directory you run in contributes, a nearer file overriding a farther one. Only a file carrying "workspace:" marks the root; one without it contributes settings without anchoring anything.
Extending a list instead of replacing it. A nearer file's list replaces the farther one's. The companions catalog_dirs_append, governance_append, linter_append, importer_append and providers_append concatenate onto the resolved list at each layer instead of shadowing it.
A file your pipeline owns. .aggrega-config-append-ci.yaml may sit beside the hand-authored file in any of those directories, so automation can overwrite it wholesale without touching what a person wrote. It is additive only: it removes nothing and overrides no scalar, and a scalar key written in it is ignored and named in a warning. It never marks a root.
A relative path anchors to the file that declared it. A catalog directory, a local plugin path, or an entry under a plugin's with.sources resolves against the directory of the config file it was written in — not the project root, and not the directory you ran the command from. So the same "./catalog" names a different directory depending on which file carries it. Two settings sit outside this rule: artifact_cache_dir is interpreted relative to the project root wherever you run from, and AGGREGA_CATALOG_DIRS has no declaring file at all, so supply absolute paths in it.
The other root markers. A "workspace:" block wins outright at whatever depth it sits. Failing one, the nearest .aggrega/ directory or aggregate*.yaml, release*.yaml or manifest*.yaml file anchors the root, in that order within a directory; failing everything, your working directory is used. --workspace-root skips discovery entirely.
Naming the global file. --config <path> wins over the AGGREGA_CONFIG environment variable, which wins over the default location. Both name a file deliberately, so a path either gives that does not exist is a loud error rather than a silent fallback. Whichever file resolves is also the one a config-writing command writes when it writes globally.คำ
| คำ | คำ |
|---|---|
aggrega config capture | ตรึง |
aggrega config init | เริ่ม |
aggrega config show | แสดง |
คำaggrega config capture
Write the effective build-critical configuration into this project's workspaceconfig file, so the workspace builds identically without relying on themachine's global configuration.
The build-critical subset is the configuration a build participates in: a set ofplugin socket attachments and the catalog directories. By default the capturedsockets are only those that determine therendered output — the provider bindings and the transform-role governance attachments — since only those musttravel with the project for byte-identical output. Pass --all-plugins to alsofreeze the verdict-role governance, linter, and importer sockets, which otherwise stay free tovary by environment. Each field is written at its effective value — the valuethat resolves right now with the global configuration and the workspace treemerged together — so a binding that today comes only from the global config ismaterialized into the workspace and travels with the project.
Machine-wide tooling settings, such as a registry's trust policy, are notcaptured: they stay in the global config by their nature. Capture always writesthis project's workspace config file. Running it again on an unchangedconfiguration rewrites the same file byte-for-byte. Run in a folder that is notinside a workspace, with no --workspace-root naming one, it writes nothing andexits with an error saying so.แฟล็กaggrega config capture
| แฟล็ก | ค่า | คำ |
|---|---|---|
--all-plugins | false | ตรึง |
คำaggrega config init
Seed a working configuration by registering a registry and its signature trustpolicy, so a fresh machine can pull and verify signed artifacts without editingYAML by hand.
By default it registers the official hub (hub.aggrega.ai) with signaturesrequired and the official trusted identities. The registry's advertised trustpolicy is fetched once from its own origin and pinned locally — trust-on-first-use; when the hub is unreachable, advertises nothing, or the workspace isoffline, its built-in official baseline is written instead, so init stillproduces a usable config offline. Pass --registry to seed a different registry(for an air-gapped or private hub). Such a registry has no built-in baseline,so seeding it while the workspace is offline is refused: init takes noidentities or key to pin by hand, so register it once while online, or add itwith "aggrega registry add --identity" or "--key".
The entry is written to the global config shared across every workspace bydefault; pass --workspace to write it to this project's workspace configinstead. If the target config file already exists, init refuses rather thanoverwrite it — pass --force to write anyway (the registry entry is merged intothe existing file, other settings preserved).
Before anything else, init says where things are: the configuration file itcreated — or, under --force, the one already there that it wrote into — andthe directory the machine-wide caches are kept in. On Windows that directory isaggrega\cache inside the directory the LOCALAPPDATA environment variable names;elsewhere it is a directory named aggrega under the per-user cache directory:~/.cache/aggrega on Linux unless XDG_CACHE_HOME names another, and~/Library/Caches/aggrega on macOS.
A seeded configuration is a document you own and go on editing, so --dry-run doeseverything init does except write: it hands the content back, creating andmodifying nothing. The answer names the file the content is for — which mattershere, because the target is the global config unless --workspace selects thisproject's own. A caller that keeps its own document model puts the content there,where it is visible before it is saved and can be amended or undone. The registryis still contacted for its advertised trust policy, because the policy in thatcontent is the policy a write would have pinned.
Because a dry run does everything else init does, it refuses an existing configfile exactly as a write refuses it, and for the same reason. So its exit codepredicts the write's: if the dry run refuses, init would have refused. Pass--force alongside it to see the merge an overwriting write would produce.
Under --dry-run standard output carries that content and nothing else, so it staysparseable. A registry seeded with no trust policy, because it advertises none,still produces its notice, on standard error: read that stream too, or thatconfiguration arrives without the advice to pin identities by hand. A pinnedpolicy, whether advertised or the hub's built-in baseline, is in the contentitself and produces no notice.แฟล็กaggrega config init
| แฟล็ก | ค่า | คำ |
|---|---|---|
--dry-run | false | ทำ |
--force | false | เขียน |
--global | false | เขียน |
--registry | hub.aggrega.ai | โฮสต์ |
--workspace | false | เขียน |
คำaggrega config show
Show the configuration that applies right now.
By default it leads with the cascade of config files and environment overridesthat contributed, lowest precedence first, then prints the effective mergedconfiguration — the global config, the workspace-tree cascade, and anyenvironment override combined into what applies right now.
Pass --global or --workspace to print a single layer's own file bytes verbatim,preserving its comments and formatting; when that layer's file does not exist itsays so rather than failing. The two are mutually exclusive.
Pass --origin to annotate each effective setting with the layer it came from —a command-line flag, an environment variable, a config file, or the built-indefaults, highest precedence first. A flag is named as the reader typed it, soa setting a flag decided reports that flag as its source. A setting isattributed to the highest-precedence layer that sets it, whatever value thatlayer writes: a file restating the default is the file named, not the built-indefaults. List and map settings are attributed as a whole. The signingrequirement is the one exception: any layer may turn it on and none can turn itoff, so it names the first layer that turns it on.แฟล็กaggrega config show
| แฟล็ก | ค่า | คำ |
|---|---|---|
--global | false | พิมพ์ |
--origin | false | ระบุ |
--workspace | false | พิมพ์ |
สิ่งที่คำสั่งนี้ทำ
คำconfig เริ่ม
config init — เริ่มต้นการกำหนดค่าที่ใช้งานได้
aggrega config init เริ่มhub.aggrega.ai) โดยinit ยัง
ก่อนinit จะ
Created the global configuration file at /home/you/.config/aggrega/config.yamlMachine-wide caches are kept in /home/you/.cache/aggregaและ
Created the global configuration file at C:\Users\you\AppData\Roaming\aggrega\config.yamlMachine-wide caches are kept in C:\Users\you\AppData\Local\aggrega\cacheบรรทัดinit เขียน: Created เมื่อUsing เมื่อ--force ให้ init เขียน--workspace จะ--dry-run ก็
--registry <host>เริ่มต้น ในรีจิสทรี อื่น — hub ที่ แยก จาก เครือข่าย หรือ เป็น ส่วน ตัว — แทน รีจิสทรี อย่าง เป็น ทางการ รีจิสทรี เช่น นี้ ไม่มี เกณฑ์ พื้น ฐาน ใน ตัว หาก ไม่ แจ้ง สิ่ง ใด รายการ จะ ถูก เขียน โดย ไม่มี นโยบาย และ พื้นที่ (รหัสทำงาน ออฟไลน์ การ เริ่ม ต้น รีจิสทรี นี้ จะ ถูก ปฏิเสธ ย่อ E0310) เพราะดึง นโยบาย ไม่ ได้ และ initไม่มี--identityหรือ--keyให้ปัก หมุด นโยบาย ด้วย มือ เริ่ม ต้น รีจิสทรี นี้ ครั้ง เดียว ขณะ ออนไลน์ หรือ เพิ่ม ด้วย aggrega registry addพร้อมนโยบาย ที่ คุณ จัด เตรียม เอง - หาก
ไฟล์ เป้า หมาย มี อยู่ แล้ว initจะปฏิเสธ แทน การ เขียน ทับ --forceจะเขียน ต่อ ไป แม้ มี ไฟล์ โดย ผสาน รายการ รีจิสทรี เข้า กับ ไฟล์ ที่ มี อยู่ และ คง การ ตั้ง ค่า อื่น ไว้ --dry-runทำทุก อย่าง ที่ initทำ ยกเว้นการ เขียน โดย ส่ง การ กำหนด ค่าที่ เริ่ม ต้น ไว้ กลับ มา เป็น เนื้อหา ไม่ สร้าง และ ไม่ แก้ไข สิ่ง ใด และ คำ ตอบ ระบุ ไฟล์ ที่ เนื้อหา นั้น มี ไว้ สำหรับ — ซึ่ง สำคัญ ใน กรณี นี้ เพราะ เป้า หมาย คือ การ กำหนด ค่า ส่วน กลาง เว้น แต่ --workspaceเลือกการ กำหนด ค่า ของ โปรเจกต์ นี้ เอง ผู้ เรียก ที่ เก็บ โมเดล เอกสาร ของ ตัว เอง เช่น ตัว แก้ไข จะ นำ เนื้อหา ไป ไว้ ใน นั้น ซึ่ง มอง เห็น ได้ ก่อน บันทึก และ แก้ไข หรือ เลิก ทำได้ - เนื่องจาก
การ ทดลอง รัน ทำ ทุก อย่าง อื่น ที่ initทำ รหัสการ ออก ของ การ ทดลอง รัน จึง ทำนาย รหัส ของ การ เขียน ได้ การ ทดลอง รัน ปฏิเสธ ไฟล์ การ กำหนด ค่าที่ มี อยู่ เหมือน ที่ การ เขียน ปฏิเสธ และ ด้วย เหตุผล เดียวกัน คุณ จึง ใช้ ถาม ได้ ว่า initจะสำเร็จ หรือ ไม่ ก่อน ลงมือ เปลี่ยน จริง หาก ต้องการ ดู เอกสาร ที่ การ เขียน แบบ เขียน ทับ จะ สร้าง ขึ้น ใส่ --forceร่วมด้วย: --force --dry-runรายงานผล การ ผสาน และ ยัง ไม่ เขียน สิ่ง ใด - รีจิสทรี
ยัง ถูก ติดต่อ เพื่อ ขอ นโยบาย ความ เชื่อ ถือ ที่ รีจิสทรี แจ้ง ไว้ เพราะ นโยบาย ใน เนื้อหา ที่ รายงาน คือ นโยบาย ที่ การ เขียน จะ ปัก หมุด การ ทดลอง รัน ส่ง คำขอ เดียว ที่ ไม่ ยืนยัน ตัว ตน ไป ยัง ต้นทาง ของ รีจิสทรี นั้น เหมือน ที่ การ เขียน ส่ง - เมื่อ
ใช้ --dry-runเอาต์พุตมาตรฐาน มี เนื้อหา นั้น และ ไม่มี สิ่ง อื่น จึง แยก วิเคราะห์ ได้ สิ่ง เดียว ที่ เนื้อหา แสดง ไม่ ได้ คือ ความ ไม่มี เมื่อ รีจิสทรี ไม่ แจ้ง นโยบาย ความ เชื่อ ถือ และ ถูก เริ่ม ต้น โดย ไม่มี นโยบาย ข้อความ แจ้ง ที่ บอก เรื่อง นี้ — และ บอก ให้ คุณ ปัก หมุด ตัว ตน ด้วย --identityหรือ--key— จะไป ที่ ข้อ ผิด พลาด มาตรฐาน เอกสาร การ กำหนด ค่าที่ ไม่มี ตัว ตน ที่ เชื่อ ถือ ได้ ดู เหมือน กัน ไม่ ว่า จะ ปัก หมุด นโยบาย ที่ บังเอิญ ว่าง เปล่า หรือ ไม่มี การ แจ้ง นโยบาย เลย ดัง นั้น ต้อง อ่าน ทั้ง สอง สตรีม โปรแกรม ที่ ทิ้ง ข้อ ผิด พลาด มาตรฐาน จะ ไม่ ได้ รับ รู้ เรื่อง นี้ เมื่อ รีจิสทรี แจ้ง นโยบาย หรือ ปัก หมุด เกณฑ์ พื้น ฐาน ใน ตัว ของ hub อย่าง เป็น ทางการ แทน นโยบาย ที่ ปัก หมุด อยู่ ใน เนื้อหา ที่ รายงาน เอง และ ไม่มี ข้อความ แจ้ง แยก ต่าง หาก
การ--dry-run
config show — ตรวจดูสิ่งที่ใช้อยู่ในตอนนี้
aggrega config show รายงาน
มุม
--globalหรือ--workspaceพิมพ์ไบต์ ของ ไฟล์ ใน ชั้น เดียว ตาม ต้นฉบับ โดย คง ความ คิด เห็น และ การ จัด รูป แบบ ไว้ เมื่อ ไม่มี ไฟล์ ของ ชั้น นั้น จะแจ้ง เรื่อง นี้ แทนที่ จะ ล้ม เหลว ทั้ง สอง ใช้ ร่วม กัน ไม่ ได้ --originระบุที่มา ของ การ ตั้ง ค่าที่ มี ผล แต่ละ รายการ ว่า มา จาก ชั้น ใด — แฟล็ก บรรทัด คำ สั่ง ตัวแปร สภาพ แวดล้อม ไฟล์ การ กำหนด ค่า หรือ ค่า เริ่ม ต้น ใน ตัว เรียง จาก ลำดับ ความ สำคัญ สูงสุด ก่อน แฟล็ก จะ ถูก ระบุ ตาม ที่ คุณ พิมพ์ ดัง นั้น การ ตั้ง ค่าที่ --offlineตัดสินใน การ รัน นี้ จะ รายงาน --offlineเป็นที่มา ตัวแปร สภาพ แวดล้อม จะ ระบุ โดย มี คำนำ หน้า env:และไฟล์ การ กำหนด ค่า จะ ระบุ ด้วย เส้น ทาง สัมบูรณ์
เมื่อ--origin การdefault_registry: hub.aggrega.ai จะ
- อะไร
นับ ไฟล์ว่า ตั้ง ค่า การ กำหนด ค่า ตั้ง ค่า ได้ เมื่อ มี คีย์ ของ การ ตั้ง ค่า นั้น และ การ ตั้ง ค่า แบบ รายการ ยัง ตั้ง ได้ เมื่อ มี คีย์ คู่ _appendของรายการ นั้น ด้วย ตัวแปร สภาพ แวดล้อม ตั้ง ค่า เมื่อ ถูก กำหนด ไว้ ด้วย ค่าที่ ไม่ ว่าง และ แฟล็ก ตั้ง ค่า เมื่อ คุณ พิมพ์ — --offline=falseตั้งท่าที ได้ แน่นอน เท่ากับ --offline - ไฟล์
การ จะกำหนด ค่าที่ ไปป์ไลน์ ของ คุณ เป็น เจ้าของ ถูก ระบุ ชื่อ เฉพาะ สำหรับ คีย์ ที่ อ่าน จาก ไฟล์ นั้น ได้แก่ ส่วน ที่ เพิ่ม ของ รายการ และ นโยบาย การ ลง ลาย เซ็น คีย์ ที่ ไฟล์ เพิก เฉย และ เตือน ไว้ จะ ไม่ ถูก รายงาน เป็น ที่มา ของ ค่า เลย - การ
ตั้ง คือค่า แบบ รายการ และ แบบ แมป จะ ระบุ ที่มา ทั้งหมด เป็น หน่วย เดียว ชั้น ที่ มี ลำดับ ความ สำคัญ สูงสุด ที่ ตั้ง ค่า นั้น และ ไม่ รายงาน ว่า ชั้น ใด มี ส่วน กับ รายการ ใด ของ รายการ นั้น - ข้อ
กำหนดการ ชั้นลง นาม เป็น ข้อ ยกเว้น เดียว ใด ก็ เปิด ได้ แต่ ไม่มี ชั้น ใด ปิด ได้ จึง ระบุ ชั้น แรก ที่ เปิด ชั้น ที่ เขียน required: falseไม่ได้ เปิด สิ่ง ใด ดัง นั้น เมื่อ ไม่มี ชั้น ใด เปิด การ ตั้ง ค่า นี้ จะ รายงาน ค่า เริ่ม ต้น ใน ตัว
config capture — ตรึงการตั้งค่าที่สำคัญต่อการบิลด์
aggrega config capture เขียน
ส่วน
- โดย
ค่า เริ่ม ต้น การ ตรึง จะ ตรึง เฉพาะ ซ็อกเก็ต ที่ กำหนด เอาต์พุต ที่ เรนเดอร์ — การ ผูก ผู้ ให้ บริการ และ การ แนบ การ กำกับ ดูแล ใน บทบาท การ แปลง — เพราะ มี เฉพาะ ส่วน นั้น ที่ ต้อง เดิน ทาง ไป กับ โปรเจกต์ เพื่อ ให้ บิลด์ เหมือน กัน ทุก ไบต์ ไดเรกทอรี แค็ตตาล็อก ถูก ตรึง เสมอ --all-pluginsขยายซ็อกเก็ต ที่ ตรึง ให้ รวม ซ็อกเก็ต การ กำกับ ดูแล ใน บทบาท คำ ตัดสิน linter และ ตัวนำ เข้า ด้วย หาก ไม่ ใช้ ทั้ง สาม ชนิด นี้ ยัง เปลี่ยน ตาม สภาพ แวดล้อม ได้ อย่าง อิสระ
การ
การ--workspace-root หรือ AGGREGA_WORKSPACE_ROOT ระบุaggrega config init --workspace ทำให้
ดูเพิ่มเติม
- configuration.md — ไฟล์
ที่ การ ตั้ง ค่า หนึ่ง ควร อยู่ บันได ลำดับ ความ สำคัญ และ กลไก ที่ โปรเจกต์ ขนาด ใหญ่ ใช้ - global-flags.md — แฟล็ก
--configและ--workspace-root - environment-variables.md — ตัวแปร
AGGREGA_*ที่แทนที่ การ กำหนด ค่า ขณะ รัน - aggrega-registry.md — จัดการ
รีจิสทรี และ นโยบาย ความ เชื่อ ถือ โดยตรง - aggrega-cache.md — สิ่ง
ที่ ไดเรกทอรี ซึ่ง artifact_cache_dirระบุเก็บ ไว้ จริง และ เหตุ ที่ เอนทิตี ซึ่ง อยู่ ที่ นั่น แต่ ไม่มี ไฟล์ ล็อก ใด ปัก หมุด จะ ไม่ ถูก การ บิลด์ พบ