Skip to content

circlecli is generating files in my homedir instead of XDG directories #1177

@jasonkarns

Description

@jasonkarns

Meta:

CircleCI CLI Version:
$ circleci version
0.1.34038+3fea946 (homebrew)

Operating System:
$ uname -mrsv
Darwin 25.2.0 Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:56 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6041 arm64

CircleCI CLI Diagnostic:


---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /Users/jasonkarns/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Hello, Jason Karns.


Current behavior:

I ran circleci setup and provided an api token. And then it generated files in my homedir.

$ ls ~/.circleci/
cli.yml           telemetry.yml     update_check.yml

Expected behavior:

I expected any auth files/ config files / cache files to be written to directories respecting $XDG_* variables.

Nothing should have been written to my homedir. Firstly because XDG has default locations for all of those files. But even moreso because I have the xdg env vars set explicitly:

$ echo $XDG_
$XDG_CACHE_HOME   $XDG_CONFIG_DIRS  $XDG_CONFIG_HOME  $XDG_DATA_DIRS    $XDG_DATA_HOME    $XDG_RUNTIME_DIR  $XDG_STATE_HOME   

cli.yml should have been written to config-home; update_check should have been written to cache home or state home. telemetry to data maybe? I don't know what is in all these files.

When did this begin / Was this previously working?:

Additional Information:

https://specifications.freedesktop.org/basedir/latest/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions