cli icon indicating copy to clipboard operation
cli copied to clipboard

[Question]: Configure Global project ID

Open rjshrjndrn opened this issue 1 year ago • 2 comments
trafficstars

Is there any way to have global project id, say in the ~/.config/depot/depot.yaml, so that every git project doesn't have to have depot.json in .gitignore?

rjshrjndrn avatar Apr 11 '24 08:04 rjshrjndrn

Hey! So the Depot CLI will actually search for a depot.json file in any parent directory when trying to resolve the project ID - are your git projects in a common directory? If they're all underneath your home directory for instance, a ~/depot.json would apply to all of them

jacobwgillespie avatar Apr 11 '24 08:04 jacobwgillespie

Good to know that. But no, my projects doesn't have a common parent directory. But depot already have Api token stored in ~/. config/depot.yaml.cant we consider that as the global config file? And for project based config, per do rectory depot.json or yaml will take precedence?

rjshrjndrn avatar Apr 11 '24 13:04 rjshrjndrn