11///////////////////////////////////////////////////////////////////////////////
22
3- Copyright (c) 2021, 2023 Oracle and/or its affiliates.
3+ Copyright (c) 2021, 2024 Oracle and/or its affiliates.
44 Licensed under the Universal Permissive License v 1.0 as shown at
55 https://oss.oracle.com/licenses/upl.
66
1010
1111== Changing Config Locations
1212
13- By default, the CLI creates a directory `.cohctl` off the users home to store connection information,
13+ By default, the CLI creates a directory `.cohctl` off the user's home to store connection information,
1414log files and various other information.
1515
16- If you wish to change this directory from the default, you can use the following for each command.
16+ NOTE: It is recommended to leave these values as default unless you have a good reason to change them.
17+ If you do want to change the location, setting the `COHCTL_HOME` environment variable is the best option
18+ otherwise you would need to specify the `--config` option on each command execution.
19+
20+ If you wish to change this directory from the default, you can use the following options:
21+
22+ === Set COHCTL_HOME environment variable
23+
24+ You can set the environment variable `COHCTL_HOME` to change the location of the directory where the CLI creates it's files.
25+
26+ [source,bash]
27+ ----
28+ export COHCTL_HOME=/u01/config
29+ ----
30+
31+ All subsequent command executions will use this directory. The directory will be created if it doesn't exist
32+ and will throw an error if you don't have permissions to create it.
33+
34+ === Specify the directory for each command
1735
1836[source,bash]
1937----
@@ -27,7 +45,6 @@ You can also specify a different location for the `cohct.yaml` file that is gene
2745cohctl get clusters --config /u01/my-config.yaml
2846----
2947
30- NOTE: It is recommended to leave these values as default unless you have a good reason to change them
31- as you would need to specify the `--config` option on each command execution.
48+
3249
3350
0 commit comments