---
title: login (private)
description: Interact programmatically with Paperspace using the Login CLI.
product: Reference
url: https://docs.digitalocean.com/reference/paperspace/pspace/commands/login/
last_updated: "2023-12-14"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# login (private)

Log in to the CLI using your Paperspace API key or by opening the web console.

## Arguments

### \[argument] (string, required)

An API key to log in with.

## Global Flags

These flags are available on all commands.

### –log-level, -l (string, optional)

Enable debug logging. One of `debug`, `info`, `warning`, `error`, or `critical`.

### –json, -j (boolean, optional)

Output JSON

### –api-key (string, optional)

A Paperspace public API Key used for authenticating requests

### –help, -h (boolean, optional)

Show help for a command