title: How do I set the name of the default profile in AWS CLI?
body: <p>When I give the command <code>aws config list</code>, I get the following output for the default profile:</p>
  
  <pre><code>      Name                    Value             Type    Location
        ----                    -----             ----    --------
     profile                &lt;not set&gt;             None    None
  </code></pre>
  
  <p>However, when I give the command for a named profile, I get a profile name</p>
  
  <pre><code>$ aws configure list --profile MyProfile
        Name                    Value             Type    Location
        ----                    -----             ----    --------
     profile                MyProfile           manual    --profile
  </code></pre>
  
  <p>I have tried <code>aws configure set profile Default</code> to name the default profile as <code>Default</code> by reading the '<a href="https://docs.aws.amazon.com/cli/latest/reference/configure/set.html" rel="noreferrer">set</a>' CLI command, I also tried <code>aws configure set StoreAs Default</code> because I thought that's what's the variable is named after I read <a href="https://docs.aws.amazon.com/powershell/latest/userguide/specifying-your-aws-credentials.html" rel="noreferrer">this page</a>. I want to do this because I want have two profiles and I want to switch between profiles using the <code>AWS_DEFAULT_PROFILE</code> environment variable.</p>