circleci-cli
circleci-cli copied to clipboard
Support Project Secrets / Environment Variables
What problem does this feature solve?:
One of the biggest gaps in our CircleCI CLI workflow is not having the ability to manage Project specific environment variables via the CLI. Ideally the project commands would try to infer the CircleCI Project from the current directory, much like the follow command, but should obviously favor the vcs-type, org-name, and repo-name the user specifies.
Provide an example:
$ circleci help project
...
Usage:
circleci project [command]
Available Commands:
remove-secret Remove an environment variable from the named project
secrets List all secrets for the named project
store-secret Store a new environment variable in the named project. The value is read from stdin.
$ circleci project secrets <vcs-type> <org-name> <repo-name>
Project: <vcs-type>/<org-name>/<repo-name>
+----------------------+-------+
| ENVIRONMENT VARIABLE | VALUE |
+----------------------+-------+
| XXXXXX_XXXXX | •••• |
| XXXXXX_XXX | •••• |
| XXXXXX_XXXXXXXX | •••• |
+----------------------+-------+
$ circleci project remove-secret <vcs-type> <org-name> <repo-name> <secret name>
$ circleci project store-secret <vcs-type> <org-name> <repo-name> <secret name>
Enter secret value and press enter:
Hi @derekpovah , thanks for your suggestion. I will check internally with the team, and get back to you asap