github.com/buildtool/build-tools@v0.2.29-0.20240322150259-6a1d0a553c23/www/docs/commands/kubecmd.md (about)

     1  # kubecmd
     2  
     3  Generates a kubectl command, using the configuration from .buildtools.yaml if found.
     4  Normal usage `kubecmd <target>`, but additional flags can be used to override:
     5  
     6  |      Flag             |                   Description                                                   |
     7  | :-------------------- | :-------------------------------------------------------------------------------|
     8  | `--context`, `-c`           | Use a different context than the one found in configuration                     |
     9  | `--namespace`, `-n`         | Use a different namespace than the one found in configuration                   |
    10  
    11  ## Default usage, with `.buildtools.yaml` file
    12  Only the `target` name has to be specified
    13  ```sh
    14  $ kubecmd local
    15  kubectl --context docker-desktop --namespace default
    16  ```
    17  
    18  ### Overriding namespace from config:
    19  ```sh
    20  $ kubecmd --namespace test local
    21  kubectl --context docker-desktop --namespace test
    22  ```