> ## Documentation Index
> Fetch the complete documentation index at: https://controlplanecorporation-jakob-ess-2-0-0.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# login

> cpln login — Create a default profile and authenticate with Control Plane using a login URL and confirmation code.

Create a profile named "default" and print a URL and a confirmation code to complete sign-in in any browser

**Usage**

```none theme={null}
cpln login [ref] [OPTIONS]
```

<Accordion title="Reference">
  ```text theme={null}
  Debug options:
    --verbose, -v  Enable verbose output to stderr  [boolean] [default: false]
    --debug, -d    Show all HTTP communications  [boolean] [default: false]

  Positionals:
    ref  The resource reference. Usually it is the name of the resource.

  Options:
    --help         Show help  [boolean]
    --version, -v  Show version number  [boolean]
  ```

  [Common Options Reference](/cli-reference/using-cli/common-options)
</Accordion>

<Accordion title="Example">
  <CodeGroup>
    ```bash Command theme={null}
    cpln login
    ```

    ```text Output theme={null}
    First, copy your confirmation code: 960619

    Opening your browser to log in. Browser didn't open? Use the URL below:

      https://auth.cpln.io/cli-login?id=A1b2C3d4E5f6G7h8I9j0KlMnOpQrStUvWxYz

    Waiting for login to complete... (code expires in ~10 minutes)
    ```
  </CodeGroup>
</Accordion>

***
