id = "rancher" name = "Rancher CLI" homepage = "https://github.com/rancher/cli" description = "The Rancher Command Line Interface (CLI) is a unified tool for interacting with your Rancher Server." icon = "theSVG:rancher" executables = ["rancher"] [dotfiles] # cli2.json is the only file the CLI keeps in ~/.rancher, and it is the # credential below. There is no separate preferences file. paths = [] exclude = [] # The README states both the path and what the file is for: # # The CLI requires your Rancher Server address, along with credentials for # authentication. Rancher CLI pulls this information from a JSON file, # cli2.json, which is created the first time you run `rancher login`. By # default, the path of this file is ~/.rancher/cli2.json. # # https://github.com/rancher/cli#setting-up-rancher-cli-with-a-rancher-server # # main.go backs it up: the global `--config` flag defaults to # `os.ExpandEnv("${HOME}/.rancher")` (env var RANCHER_CONFIG_DIR), and # cmd/common.go joins `cfgFile = "cli2.json"` onto it in `loadConfig`. # # Whole-file secret rather than a secret_paths carve-out: config/config.go's # ServerConfig is accessKey, secretKey, tokenKey, plus a kubeCredentials map of # bearer tokens and a kubeConfigs map of embedded kubeconfigs. What is left over # once those are removed — the server URL and the focused project — is not worth # syncing on its own. secret = ["~/.rancher/cli2.json"]