lburgazzoli removed a comment on issue #1133: Allow to configure kamel CLI with 
env vars and configuration files
URL: https://github.com/apache/camel-k/pull/1133#issuecomment-564310115
 
 
   
   You can now configure default values for any `kamel` command in a file named 
`.kamel/config.yaml` in the current working directory or in the user home like:
   
   ```yaml
   kamel:
     install:
       kits:
         - js
         - yaml
       maven-repositories:
         - 
http://repository.apache.org/snapshots@id=apache.snapshots@snapshots@noreleases
         - 
http://oss.sonatype.org/content/repositories/snapshots@id=oss.snapshots@snapshots@noreleases
   ```
   
   Environment variables can be used to so the configuration below can be 
replaced by:
   
   ```
   KAMEL_INSTALL_KITS="js,yaml"
   
KAMEL_INSTALL_MAVEN_REPOSITORIES="http://repository.apache.org/snapshots@id=apache.snapshots@snapshots@noreleases,http://oss.sonatype.org/content/repositories/snapshots@id=oss.snapshots@snapshots@noreleases";
   ```
   
   You can of course mix command flags, environment variables and configuration 
files (in the given order of priority).
   
   Note that inside a configuration file or environment variables, multi value 
flags are expressed through the plural for of the flag, as example: 
   
       kamel install --kit=js --kit=java
   
   is equivalent to
   
       KAMEL_INSTALL_KITS="js,java" kamel install
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to