https://garden.io logo
#💻|dev
Title
# 💻|dev
h

happy-oxygen-34146

05/03/2023, 1:54 PM
Is it possible to login with
garden login
without a project directory? Can I provide that command with what domain I want to authenticate with (app.garden as an example) instead of it figuring that out based on the project config?
c

cold-jordan-68753

05/03/2023, 2:05 PM
Its currently not possible without a refactor. (short answer)
There is an env var to override the domain
GARDEN_CLOUD_DOMAIN
h

happy-oxygen-34146

05/03/2023, 2:06 PM
Ah ok ... so if I provide it with that env var it doesn't complain about not being inside a garden project?
c

cold-jordan-68753

05/03/2023, 2:07 PM
no, it needs to be a garden project
I think the refactor to be able to login without a project makes sense though.
h

happy-oxygen-34146

05/03/2023, 2:09 PM
Ok – yeah I definitely need that for Desktop, since I need to allow the user to authenticate before it's even aware of any project directories
c

cold-jordan-68753

05/03/2023, 2:09 PM
(i know its not really helping you now)
h

happy-oxygen-34146

05/03/2023, 2:09 PM
So maybe
garden login --domain https://app.garden
will have it ignore the project directory check?
c

chilly-gigabyte-83853

05/03/2023, 2:23 PM
The original implementation of login, would need to find the domain name in the project.garden.yml, so it's not going to work without refactoring that.
c

cold-jordan-68753

05/03/2023, 4:20 PM
Had another look at this, it is possible to disable the project check. I think we can work around this.
What other commands would you need without running inside a project? @happy-oxygen-34146
h

happy-oxygen-34146

05/03/2023, 4:28 PM
Just
login
and
logout
I think. Perhaps @alert-helicopter-61082 is aware of others, but I can't think of any off the top of my head
c

cold-jordan-68753

05/03/2023, 5:00 PM
listing projects?
h

happy-oxygen-34146

05/03/2023, 6:47 PM
is that a command that already exists? does it pull that from cloud or locally?
c

cold-jordan-68753

05/03/2023, 7:01 PM
that would be listing cloud projects, local projects can be connected to a cloud project
h

happy-oxygen-34146

05/03/2023, 7:28 PM
not sure if that's something of interest for Desktop, at least not for now
unless it stores information around where the working directory for that project is on the user's machine, in which case we could use it to populate their projects list
8 Views