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 .metadata files 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 🌸

https://vala.dev


πŸ’œ 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