# Manage Your chainctl Configuration

URL: https://edu.chainguard.dev/chainguard/chainctl-usage/manage-chainctl-config.md
Last Modified: July 23, 2025
Tags: chainctl

Chainguard&rsquo;s chainctl configuration management enables you to customize CLI behavior, set default organizations, configure output formats, and optimize your workflow for managing container security resources. Proper configuration ensures efficient interaction with Chainguard&rsquo;s platform across different environments and use cases.
chainctl config CLI chainctl has a local configuration you can manage. To get a list of all options available, you can run:
chainctl config -hYou&rsquo;ll receive output like the following:
Local config file commands for chainctl. Usage: chainctl config [command] Available Commands: edit Edit the current chainctl config file. reset Remove local chainctl config files and restore defaults. save Save the current chainctl config to a config file. set Set an individual configuration value property. unset Unset a configuration property and return it to default. validate Run diagnostics on local config. view View the current chainctl config. Flags: -h, --help help for config Global Flags: --api string The url of the Chainguard platform API. (default &#34;https://console-api.enforce.dev&#34;) --audience string The Chainguard token audience to request. (default &#34;https://console-api.enforce.dev&#34;) --config string A specific chainctl config file. Uses CHAINCTL_CONFIG environment variable if a file is not passed explicitly. --console string The url of the Chainguard platform Console. (default &#34;https://console.chainguard.dev&#34;) --issuer string The url of the Chainguard STS endpoint. (default &#34;https://issuer.enforce.dev&#34;) -o, --output string Output format. One of: [&#34;&#34;, &#34;json&#34;, &#34;id&#34;, &#34;table&#34;, &#34;terse&#34;, &#34;tree&#34;, &#34;wide&#34;] -v, --v int Set the log verbosity level. Use &#34;chainctl config [command] --help&#34; for more information about a command.To view your current chainctl config, run:
chainctl config viewYou&rsquo;ll receive output similar to this:
# Base Config file: /home/erika/.config/chainctl/config.yaml auth: mode: browser device-flow: &#34;&#34; default: active-within: 24h0m0s autoclose: true autoclose-timeout: &#34;10&#34; group: &#34;&#34; identity-provider: &#34;&#34; org-name: &#34;&#34; skip-auto-login: false skip-version-check: false social-login: google-oauth2 use-refresh-token: true output: color: fail: &#39;#ff0000&#39; pass: &#39;#00ff00&#39; warn: &#39;#ffa500&#39; silent: false platform: api: https://console-api.enforce.dev audience: https://console-api.enforce.dev console: https://console.enforce.dev issuer: https://issuer.enforce.dev registry: https://cgr.devThe full documentation for the chainctl config command is available on the relevant reference page.
Edit the chainctl Configuration You can edit the chainctl config directly with an editor. The following command will open your default command line text editor (typically nano) where you can edit the local chainctl config.
chainctl config editAlternatively, you can update one attribute at a time with the set option, as demonstrated in the next command:
chainctl config set platform.api=https://console-api.enforce.devYou can review the chainctl config set options on the relevant docs page.
Reset the Configuration If you run into issues with your chainctl configuration, you can use the following command to reset it to the default state:
chainctl config resetYou can review all the available chainctl commands in our chainctl reference documentation.

