FLATPAK BUILD-BUNDL(1)

    .SH "NAME" flatpak-build-bundle - Create a single-file bundle from a local repository
    .SH "SYNOPSIS"
            .HP u
                flatpak build-bundle
                 [OPTION...]
                 LOCATION
                 FILENAME
                 NAME
                 [BRANCH]

    .SH "DESCRIPTION"

        .PP Creates a single-file named FILENAME for the application (or runtime) named NAME in the repository at LOCATION. If a BRANCH is specified, this branch of the application is used.
        .PP The collection ID set on the repository at LOCATION (if set) will be used for the bundle.
        .PP Unless --oci is used, the format of the bundle file is that of an ostree static delta (against an empty base) with some flatpak specific metadata for the application icons and appdata.

    .SH "OPTIONS"

        .PP The following options are understood:

            .PP -h, --help

                    Show help options and exit.
                .RE
                .PP --runtime

                        Export a runtime instead of an application.
                    .RE
                    .PP --arch=ARCH

                            The arch to create a bundle for. See flatpak --supported-arches for architectures supported by the host.
                        .RE
                        .PP --repo-url=URL

                                The URL for the repository from which the application can be updated. Installing the bundle will automatically configure a remote for this URL.
                            .RE
                            .PP --runtime-repo=URL

                                    The URL for a .flatpakrepo file that contains the information about the repository that supplies the runtimes required by the app.
                                .RE
                                .PP --gpg-keys=FILE

                                        Add the GPG key from FILE (use - for stdin).
                                    .RE
                                    .PP --gpg-homedir=PATH

                                            GPG Homedir to use when looking for keyrings.
                                        .RE
                                        .PP --from-commit=COMMIT

                                                The OSTree commit to create a delta bundle from.
                                            .RE
                                            .PP --oci

                                                    Export to an OCI image instead of a Flatpak bundle.
                                                .RE
                                                .PP --oci-layer-compress=gzip|zstd

                                                        Choose how to compress the layers in OCI images. gzip (the default) is universally supported, but zstd compresses faster and results in smaller images. As of 2023, zstd support is present in most major registries.
                                                    .RE
                                                    .PP -v, --verbose

                                                            Print debug information during command processing.
                                                        .RE
                                                        .PP --ostree-verbose

                                                                Print OSTree debug information during command processing.
                                                            .RE

                                                    .SH "EXAMPLES"

                                                        .PP $ flatpak build-bundle /var/lib/flatpak/repo gnome-calculator.flatpak org.gnome.Calculator stable
                                                        .PP $ flatpak build-bundle ~/.local/share/flatpak/repo gnome-calculator.flatpak org.gnome.Calculator stable

                                                    .SH "SEE ALSO"

                                                        .PP ostree(1), flatpak(1), flatpak-build-init(1), flatpak-build(1), flatpak-build-finish(1), flatpak-build-import-bundle(1), flatpak-build-update-repo(1)