Open Andarius opened 1 year ago
Great suggestion, I will let you know when we are able to pick this up in our sprint!
It looks like one or more projects can have the same name currently. Since this is already the standard, I think the easiest option is to do it by projectId. What do you think about a flag to specify the project ID?
Yes that would work too :)
You can add --projectId
to the export command in the latest version of the CLI! Let us know if things are working on your end.
Hey @maidul98, sorry for the late answer. I tried the following command but it's asking to connect to a project.
infisical export --env=stg --format=dotenv --projectId=***********
It looks you have not yet connected this project to Infisical
To do so, run [infisical init] then run your command again
I'm not sure why it's asking since I'm passing the ID in the command.
I'll take another look at this and get back to you
Hey @maidul98, do you have any news on this issue ?
Hey @Andarius the issue is occurring because for none service token fetch, the code still requires a workspace file. As a temporary work around, you can run infisical init
and then use the --projectID
which will override the project id in the .infisical.json.
I will need some time to see how we can re format the current workflow so that it doesn't require the file for none service token use cases. Let me know if the work around is working for you.
Feature description
For now, when trying to export secrets locally, we must first run
infisical init
and then manually select the project.It would be nice if we could just pass the project name to the
export
command so that we could runWhy would it be useful?
It would allow to run the following when setting up multiple projects at once: