Skip to content

honor OCI_CLI_PROFILE in oci session authenticate #1091

Description

@scratchmex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions