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

# The Inframan CLI

> Install the inframan CLI, sign in, and use it for kubectl access and quick checks from your terminal.

The `inframan` CLI signs you in from your terminal and opens [kubectl tunnels](https://inframan.mintlify.site/provision/cluster-access.md) to your infrastructures. Most day-to-day work happens through `git push`, the console or an [AI assistant](https://inframan.mintlify.site/get-started/ai-assistants.md), so the CLI is deliberately small.

## Install

```bash macOS and Linux theme={null}
curl -fsSL https://inframan.cloud/install.sh | sh
```

```powershell Windows theme={null}
irm https://inframan.cloud/install.ps1 | iex
```

Check it worked with `inframan version`. The CLI tells you after any command when a newer version is available.

## Sign in

```bash theme={null}
inframan login --url https://central1.inframan.cloud
```

Use the address of the console you sign in to. A browser window opens. On a machine without a browser, the CLI prints a link and asks you to paste back a code. Your credentials are saved in `~/.inframan/credentials.json`, readable only by you.

If your instance's console runs in your own Google Cloud project, run `inframan login` without `--url`.

## Commands

| Command | What it does |
| - | - |
| `inframan login [--url <console>]` | Sign in |
| `inframan logout` | Sign out |
| `inframan version` | Show the CLI's version |
| `inframan instance list` | List the instances you can use |
| `inframan instance use <instance-id>` | Choose the instance later commands act on |
| `inframan cloud list` | List the instance's cloud accounts |
| `inframan tunnel [infrastructure] [--port N] [--kubeconfig PATH]` | Open a kubectl tunnel to an infrastructure. Admins only. |

For an instance whose control plane runs in your own Google Cloud project, these also apply:

| Command | What it does |
| - | - |
| `inframan init` | Create a control plane in your Google Cloud project |
| `inframan instances` | List your instances |
| `inframan use [instance-id]` | Choose an instance |
| `inframan connect` | Open an SSH session to the control plane's virtual machine, through Identity-Aware Proxy |

> [!NOTE]
>
> Cloud accounts are connected in the console, under **Settings** → **Cloud accounts**. See [Connect a cloud account](https://inframan.mintlify.site/provision/cloud-accounts.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.