github.com/esnet/gdg@v0.6.1-0.20240412190737-6b6eba9c14d8/website/content/docs/gdg/other_commands.md (about)

     1  ---
     2  title: "Other Commands"
     3  weight: 18
     4  ---
     5  
     6  These are miscellaneous commands that don't fit under any category.
     7  
     8  ### Contexts
     9  
    10  Starting with version 0.1.4 contexts are now supported.  Your config can contain one or multiple contexts which are essentially a grafana server configuration.
    11  
    12  ctx is shorthand for context and basic CRUD is supported which is mainly tooling to make it easier to avoid updating the yaml file manually
    13  
    14  ```sh
    15  ./bin/gdg tools ctx list -- Lists all known contexts
    16  ./bin/gdg tools ctx show qa -- shows the configuration for the selected context
    17  ./bin/gdg tools ctx set production -- updates the active config and sets it to the request value.
    18  ./bin/gdg tools ctx delete qa -- Deletes the QA context
    19  ./bin/gdg tools ctx cp qa staging -- copies the qa context to staging and sets it as active
    20  ./bin/gdg tools ctx clear -- Will delete all active contexts leaving only a single example entry
    21  ```
    22  
    23  ### Version
    24  
    25  Print the applications release version
    26  
    27  ```sh
    28  ./bin/gdg version
    29  ```
    30  
    31  
    32  ```
    33  Build Date: 2022-05-05-13:27:08
    34  Git Commit: 34cc84b3d80080aa93e74ed37739bddc3638997c+CHANGES
    35  Version: 0.1.11
    36  Go Version: go1.18
    37  OS / Arch: darwin amd64
    38  
    39  ```