honor `OCI_CLI_PROFILE` in `oci session authenticate`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Locate the Python entry point for oci session authenticate and trace how --profile-name and OCI_CLI_PROFILE are resolved. Verify that setting only the environment variable avoids the prompt and that the generated config and example command use that profile name.
Written by the indexing model from the issue text.
Description
when doing
export OCI_CLI_PROFILE=oc1.ssh
oci session authenticate --region <region>
it still asks you for the profile name
...
Enter the name of the profile you would like to create:
so OCI_CLI_PROFILE should set --profile-name to get a flow like this
❯ oci session authenticate --region us-ashburn-1 --profile-name oc1.ssh
...
Config written to: /Users/ivang/.oci/config
Try out your newly created session credentials with the following example command:
oci iam region list --config-file /Users/ivang/.oci/config --profile oc1.ssh
- Dominant language
- Python
- Stars
- 669
- Forks
- 236
- Avg merge
- 1m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from oracle/oci-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100