KAS-DUMP(1)
π
KAS-DUMP β the kas dump plugin, bestie edition β¨
okay so bestie, welcome to kas-dump(1), part of the kas manual. this is the page that tells you everything about the kas dump plugin, and yeah we're gonna go through all of it, no skips, no cap. π«Ά
β¨ SYNOPSIS β¨
kas dump [-h] [--skip STEP] [--force-checkout] [--update] [--indent INDENT]
[--sort] [--format {yaml,json}] [--resolve-refs] [--resolve-local]
[--resolve-env | --lock]
[config]
πΈ DESCRIPTION πΈ
So what does this actually do? It expands and dumps the final config to stdout. Obsessed. And lowkey important: when it's resolving branches, it does that before patches get applied. iykyk.
This plugin is literally the implementation of the kas dump command. πββοΈ
π default mode vibes
When you run this command in default mode, kas will parse every referenced config file, expand all the includes, and print a flattened yaml version of the configuration straight to stdout. That config is semantically identical to the input β but it does not include any references to other configuration files. So you can take that output and go analyze your build configuration further. slay. β¨
π --lock mode
When you run it with --lock, a locking spec gets created that only contains the exact commit of each repository. This is the moment for pinning the commit of floating branches and tags while still keeping an easy update path. iconic behavior honestly.
For all the deets on locking support, see kas.plugins.lock <#module-kas.plugins.lock>. π
Note: the options to create and update lock files have been moved to the lock plugin. not me finding out they relocated π
π¦ --resolve-local mode
When you run it with --resolve-local, VCS tracking information of the root repo (that's the one with the kas-project.yml) gets added to the output. The generated file can be used as a single input to kas to reproduce the build environment. so handy fr fr.
If the root repo is not under version control, or it contains uncommitted changes, a warning is emitted. β οΈ heads up bestie.
π please note:
- the dumped config is semantically identical but not bit-by-bit identical
- all referenced repositories are checked out to resolve cross-repo configs
- all branches are resolved before patches are applied
- the ordering of the keys is kept unless
--sortis used. If you intend to store the flattened configs for comparison, it is recommended to sort the keys. trust.
π example time
say you want a single config representing the final build config of kas-project.yml:target-override.yml β you'd run:
kas dump kas-project.yml:target-override.yml > kas-project-expanded.yml
and then the generated config can be used as input for kas:
kas build kas-project-expanded.yml
like?? it's giving full circle. π«
π OPTIONS π
Positional Arguments
configβ the config file(s), separated by a colon. If you don't specify any, it uses.config.yamlinKAS_WORK_DIR. β¨
Named Arguments
--skip=[]β skip build steps. Wanna skip more than one step? use this argument multiple times, bestie. Possible choices:setup_dir,setup_home,make_non_interactive,init_setup_repos,repo_setup_loop,finish_setup_repos,repos_checkout,repos_apply_patches,setup_environ,write_bbconfig--force-checkout=Falseβ always checkout the desired commit/branch/tag of each repository, and discard any local changes. no mercy. π₯--update=Falseβ pull new upstream changes to the desired branch even if it's already checked out locally. fresh vibes only.--indent=2β line indent, as a number of spaces. default is2.--sort=Falseβ alphanumerically sort the keys in the output. so tidy. π§--format='yaml'β output format. default isyaml. Possible choices:yaml,json--resolve-refs=Falseβ replace floating refs with exact SHAs. Overrides are removed. π--resolve-local=Falseβ add tracking information of the root repo.--resolve-env=Falseβ set env defaults to the captured env value.--lock=Falseβ create a lockfile with exact SHAs. π
π SEE ALSO π
kas-project-config(1), kas-checkout(1), kas-lock(1), kas-build(1)
π KAS π
Part of the kas(1) suite. one big happy family fr.
Author: Daniel Wagner, Jan Kiszka, Claudius Heine π
Copyright: Siemens and contributors, 2017-2025 β
and that's the whole page, bestie!! this was version 5.4, dated Jun 25, 2026. go dump some configs and slay the day π β¨π¦ππ
π¦ where this page comes from
- ubuntu stonking: kas 5.4-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms