# Cli Config

The Platform9 CLI requires configuration to your SaaS Management Plane. Use the command `pf9ctl config` to create, get or update a configuration.

## Syntax Example

{% tabs %}
{% tab title="Bash" %}

```bash
pf9ctl config [command]
```

{% endtab %}
{% endtabs %}

## All Available Commands and Flags

{% tabs %}
{% tab title="Bash" %}

```bash
pf9ctl config --help
Create or get PF9 controller config used by this CLI

Usage:
  pf9ctl config [command]

Available Commands:
  get         Print stored config
  set         Create a new config

Flags:
  -h, --help   help for config

Global Flags:
      --verbose   print verbose logs

Use "pf9ctl config [command] --help" for more information about a command.
```

{% endtab %}
{% endtabs %}

## Command Examples

### Config Set

{% tabs %}
{% tab title="Bash" %}

```bash
pf9ctl config set
Platform9 Account URL: https://du-test-kplane-anup-3727.platform9.horse
Username: anup@platform9.com
Password:
Region [RegionOne]:
Tenant [service]:
2021-02-22T07:27:37.0952Z	INFO	Storing config
```

{% endtab %}
{% endtabs %}

### Config Get

{% tabs %}
{% tab title="Bash" %}

```bash
pf9ctl config get
{"fqdn":"https://demo.platform9.io","username":"user@clusters.com","password":"Usx4dGZvcm05QA!?=","tenant":"service","region":"RegionOne","wait_period":60,"allow_insecure":false}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/managed-kubernetes/5.7/pmk-cli-commands/cli-config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
