KRAFT-PKG(1)
π NAME π
Hiii bestie, welcome to the KraftKit Manual entry (a.k.a. the KraftKit CLI(1) page, iykyk) for kraft-pkg β the tool that packages and distributes Unikraft unikernels and their dependencies. periodt π
β¨ SYNOPSIS β¨
kraft pkg [FLAGS] [SUBCOMMAND|DIR]
π¦ DESCRIPTION π¦
Okay so real talk: kraft-pkg is literally about packaging and distributing Unikraft unikernels and their dependencies. That's the whole vibe. π«Ά
With kraft pkg you are able to turn output artifacts from kraft build into a distributable archive ready for deployment. And bestie, it gets better β at the same time, kraft pkg allows you to manage these archives: pulling, pushing, or adding them to a project. The way that's so versatile πβ¨
The default behaviour of kraft pkg is to package a project. Given no arguments, you will be guided through interactive mode β so if you're ever like "idk what to do", just run it bare and let it hold your hand π§π
π OPTIONS π
Like, so many options, but every single one is iconic in its own way. Let's go π₯
-m,--arch=""β filter the creation of the package by architecture of known targets (x86_64/arm64/arm), slay π―-a,--args=[]β pass arguments that will be part of the running kernel's command line-M,--as="oci"β force the packaging despite possible conflicts (main character energy, it does what it wants π)-c,--compress[=false]β compress the initrd package (experimental, so likeβ¦ handle with care bestie)--dbg[=false]β package the debuggable (symbolic) kernel image instead of the stripped image π-e,--env=[]β set environment variables to be packed into the package--force-format[=false]β force the use of a packaging handler format-h,--help[=false]β help for pkg (always here for u π«Ά)--kconfig-file=""β set a path to an extra KConfig file to be included as metadata--keep-file-owners[=false]β keep file owners (user:group) in the rootfs (falsesets'root:root')-k,--kernel=""β override the path to the unikernel image-K,--kraftfile=""β set an alternative path of the Kraftfile-l,--label=[]β set labels to be packed into the package (k=v)-n,--name=""β specify the name of the package--no-kconfig[=false]β do not include target.configas metadata--no-kernel[=false]β allow packaging without a kernel image--no-pull[=false]β do not pull package dependencies before packaging-o,--output=""β save the package at the following output-p,--plat=""β filter the creation of the package by platform of known targets (fc/qemu/xen/kraftcloud)-P,--push[=false]β push the package on if successfully packaged-R,--rom=[]β specify a path to an auxiliary ROM to include in the package--rom-type="cpio"β set the type of the format of the ROM (cpio/erofs)--rootfs=""β specify a path to use as root file system (can be volume or initramfs)--rootfs-type="cpio"β set the type of the format of the rootfs (cpio/erofs)-r,--runtime=""β set the runtime to use for the package--set-kconfig=[]β set KConfig values to be packed into the package (k=v)--strategy="overwrite"β when a package of the same name exists, use this strategy when applying targets.-t,--target=""β package a particular known target-w,--workdir=""β set an alternative working directory (default is cwd)
ngl the --compress one is marked experimental in the original, so bestie please don't be surprised if it's a little quirky πβ¨
π EXAMPLES π
Obsessed with a good example, so here's the one:
# Package a project as an OCI archive and embed the target's KConfig.
$ kraft pkg --as oci --name unikraft.org/nginx:latest
Ate, no crumbs. π
π SEE ALSO π
Go give these other icons a lil visit, they're all linked:
kraft(1), kraft-pkg-export(1), kraft-pkg-info(1), kraft-pkg-list(1), kraft-pkg-pull(1), kraft-pkg-push(1), kraft-pkg-remove(1), kraft-pkg-source(1), kraft-pkg-unsource(1), kraft-pkg-update(1)
β HISTORY β
1-Jan-1980 β Auto generated by KraftKit. Vintage but make it cute π
mwah π that's the whole page bestie β brought to you by KraftKit Documentation, dated Jan 1980, and yes it's the KraftKit CLI(1) manual. byeee π«Άπ
π¦ where this page comes from
- nixpkgs unstable: kraft 0.12.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms