VAPIGEN(1)
π VAPIGEN(1) β bestie edition π
okay so first things first, this is the vapigen page, and it lives in the User Commands part of the manual (section 1, iykyk). pull up a chair, we're doing this together π«Ά
πΈ NAME πΈ
vapigen β generate a Vala API. that's it, that's the whole vibe. β¨
π SYNOPSIS π
vapigen SOURCE PKGBASE [OPTION]... [FILE]...
so it wants a SOURCE and a PKGBASE right up front, then whatever [OPTION]... and [FILE]... you feel like throwing at it. main character energy fr.
π¦ DESCRIPTION π¦
vapigen is a utility that generates Vala API (VAPI) files from GI files. and where do those GI files come from? bestie, they may be generated using the vala-gen-introspect(1) utility. it's giving pipeline. it's giving teamwork. π
π Usage:
vapigen [OPTION???] FILE... - Vala API Generator
(yes the ??? is really in there. not me questioning it. it's iconic, leave it alone π)
β¨ Help Options:
-h,--helpβ show help options. literally the "help me bestie" button.
π«Ά Application Options:
--vapidir=DIRECTORY...β look for package bindings in DIRECTORY. yes you can pass more than one, go off π--girdir=DIRECTORY...β look for GIR bindings in DIRECTORY. the GIR files stay GIR-ing πβ¨--metadatadir=DIRECTORY...β look for GIR.metadatafiles in DIRECTORY. metadata? she's organized.--nostdpkgβ do not include standard packages. standard packages? not invited to this party π--pkg=PACKAGE...β include the binding for PACKAGE. stack 'em up, plural, you can add as many as you want π§--library=NAMEβ the library name. just NAME. that's the whole job.-d,--directory=DIRECTORYβ output directory. where the goods land π¦--disable-warningsβ disable warnings. turn the volume down on the yelling π§--versionβ display version number. who are you, what era are you from π-q,--quietβ do not print messages to the console. silent mode, mysterious mode, shhh π€«
π BUGS π
found something broken? take it here, no cap:
https://gitlab.gnome.org/GNOME/vala/issues
πΈ HOMEPAGE OR CONTACT πΈ
π AUTHORS π
JΓΆrg Billeter, Raffaele Sandrini. legends, honestly. thank you for your service π«‘β¨
π₯ EXAMPLES π₯
okay so here's the whole glow-up journey. after compilation, this command generates a GI for pango:
vala-gen-introspect pango packages/pango
and then you can convert that into a Vala API like this:
vapigen --pkg cairo --vapidir . --library pango packages/pango/pango.gi
see how it all connects?? obsessed. π
π¦ SEE ALSO π¦
vala-gen-introspect (1)β the other half of this duo, go say hi π
that's the whole page bestie, you ate it, no crumbs π
and a lil sign-off from the page itself: this was brought to you by Vala API Generator 0.56.19, dated March 2026. periodt. π
π¦ where this page comes from
- alpine 3.24: vala-doc 0.56.19-r0 Β· LGPL-2.0-or-later
- arch rolling: vala 0.56.19-2 Β· LGPL-2.1-or-later
- fedora 43: vala 0.56.19-1.fc43 Β· LGPL-2.1-or-later AND BSD-2-Clause
- fedora 43: vala 0.56.19-1.fc43 Β· LGPL-2.1-or-later AND BSD-2-Clause
- fedora 44: vala 0.56.19-1.fc44 Β· LGPL-2.1-or-later AND BSD-2-Clause
- fedora 44: vala 0.56.19-1.fc44 Β· LGPL-2.1-or-later AND BSD-2-Clause
- nixos 26.05: vala 0.56.19
- nixpkgs unstable: vala 0.56.19
- ubuntu stonking: valac-bin 0.56.19-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms