Creating an app release using the VTEX IO CLI returns an EBADF error.
Keywords: Release | CLI
When running the VTEX IO CLI command vtex release
, it returns an EBADF (error bad file descriptor) message. This happens because a file descriptor variable does not correctly point to a file during command execution.
The vtex release
command creates a new version of a VTEX IO app by rewriting the CHANGELOG.md
and the manifest.json
files. For more details about this process, see Releasing a new app version.
The vtex release
command creates a release commit and a release tag and sends the changes to the app repository. Thus, a possible cause of the EBADF message could be improper GitHub configuration. For more details, see the external GitHub documentation.
Solution
Instead of depending on the vtex release
command to make the changes in the app files for a new version, make the changes manually and continue deploying a new app version.
Consider your app was at version 0.1.0
and a new version 0.1.1
was created on July 15, 2024. Follow the steps below to create a new app version without using the vtex release
command:
-
Open the
CHANGELOG.md
file of your app. -
Update the version header from
## [Unreleased]
to## [0.1.1] - 2024-07-15
, as follows:_12- ## [Unreleased]_12+ ## [0.1.1] - 2024-07-15_12+_12+ ### Added_12+_12+ * New feature_12_12## [0.1.0] - 2024-06-03_12_12### Fixed_12_12* Bug fixes -
Open the
manifest.json
file of your app and change the app version to the new version. In this example, we are changing the version from0.1.0
to0.1.1
._10"version": “0.1.1” -
Open a terminal in the root folder of your app.
-
Run the
vtex publish
command. This command creates a release candidate version of the app and makes it available for installation using thevtex install
command. For more details, see Publishing an app.