Comments (3)
Please consider allowing to move the directory. I have many customers each with a workspace which has a .envrc
file to scope into their context. This way all tools are configured to treat that directory as the HOME directory for that project.
Having any tool try and stuff every single customer config into a single place will get very overwhelming very quickly. We even have some customers with more than one CircleCI account for whatever reason. Imagine how large the .circleci
dir will get for us.
Every single CLI we currently use, except circlecli, allows changing where the home directory is. For example with aws cli I can set AWS_CONFIG_FILE
and k8s with KUBECONFIG
. This keeps everything very nicely organized and all customer stuff is in one single location.
Then cd into customer folder and direnv loads .envrc and voila, all cli tools just magically use the correct accounts and there is no chance of accidentally running commands against wrong customer.
I suggest something simple as CIRCLECI_CONFIG
to be like everything else. Or CIRCLECI_HOME
since it is a directory.
from circleci-cli.
Hello @kferrone , thanks for raising the issue!
Actually config location and even config customisation overall is a subject we discussed a lot in our team. Our aim in the (hopefully near) future would be to enable users to have several level of configuration.
Say you have
A
.circleci/cli.yml
B
.circleci/cli.yml
...other files / directories in B
The CLI would first load the config in A
and then the config in B
thus overwriting the values set in A
.
While we implement this, I propose that we add a root option --config
that would allow you to specify the path of the directory to load config from.
from circleci-cli.
Any chance this is going to happen. One cli.yml is becoming a burden.
from circleci-cli.
Related Issues (20)
- Allow configuring http client timeout HOT 2
- [Feature Request] Add number of Active tasks in "runner instance list" command
- Wrong version of circleci inside local execution env HOT 2
- CircleCI Orb Init Error Misleading HOT 2
- Unable to start job with private images using `circleci local execute`
- docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/3966974312_circleci_config.yml. HOT 1
- IN1-GOLANG-GITHUBCOMCLOUDFLARECIRCLPKEKYBERINTERNALCOMMON-6150686 - github.com/cloudflare/circl
- CircleCI CLI policy test command missing timestamp in JUnit output HOT 2
- `circleci local execute` does not work with Docker for Desktop on OSX HOT 1
- Json unmarshall error HOT 2
- Error: Unable to validate config HOT 4
- Clarify `orb validate` and `config validate` scope of validation HOT 1
- Infinite install bug HOT 2
- Provide mac arm64 release asset
- unable to execute local job on mac m1 pro HOT 2
- invalid character 'I' looking for beginning of value HOT 13
- ` local execute build` command fails when sidecar is present and using the latest docker version
- circleci config pack command is not working with latest version (v0.1.28363) HOT 2
- Orb validation fails HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circleci-cli.