This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new ab0c319148ea Update jbang docs how to force install a specific version
ab0c319148ea is described below

commit ab0c319148ea34bc06dd8f6d7f1f6e083dbdafad
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 18 15:28:04 2025 +0100

    Update jbang docs how to force install a specific version
---
 docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index df02ebc8b580..d7e285de6b7b 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -47,6 +47,18 @@ so no previous downloaded cache etc. may cause a problem.
 IMPORTANT: From Camel 4.17 onwards then Kamelets are optional, and only 
downloaded on demand. You define the version
 of kamelets via `--kamelets-version` parameter to `camel run` or can 
pre-configure the version via `camel config set kamelets-version=4.17.0`.
 
+=== Installing offline safe Camel JBang
+
+When installing Camel JBang as a JBang app via `jbang app install ...` then 
JBang would usually check
+occasionally if the upstream version has changed and then automatic update. 
This can be undesired if you
+want to ensure your Camel JBang app is not automatically updated, such as when 
there are newer Apache Camel releases.
+
+1. Download 
https://github.com/apache/camel/blob/main/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java[CamelJBang.java]
 file to local disk.\
+2. Edit the `CamelJBang.java` file with the desired Camel version you want to 
use.
+3. And then install via `jbang app install CamelJBang.java`.
+4. After this you can delete the `CamelJBang.java` file.
+
+
 == Container Image
 
 There is also a container image available in 
https://hub.docker.com/r/apache/camel-jbang/[Dockerhub]

Reply via email to