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

# secret create

> Create a new secret in the FlexAI Secret Manager

Creates and stores a new Secret using the FlexAI Secret Manager.

## Usage

```bash theme={null}
flexai secret create <secret_name> [flags]
```

## Arguments

| Argument      | Type   | Required | Description                              |
| ------------- | ------ | -------- | ---------------------------------------- |
| `secret_name` | string | Yes      | The name of the FlexAI Secret to create. |

## Flags

| Flag            | Short | Type    | Description                                                                                                                                                                            |
| --------------- | ----- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--help`        | `-h`  | boolean | Displays this help page.                                                                                                                                                               |
| `--value-stdin` | `-p`  | boolean | Take the Secret's value directly from the Standard input (stdin) instead of the default interactive prompt. Especially useful for storing secrets from environment variables or files. |
| `--verbose`     | `-v`  | boolean | Provides more detailed output when creating a Secret.                                                                                                                                  |

## Examples

### Interactive prompt (Default)

Writing in or pasting a value using the interactive prompt:

```bash theme={null}

flexai secret create hf-token-dev
✔ Secret Value: █

```

### Reading from stdin

Setting a Secret's value by *piping in* from the stdout of another program:

```bash theme={null}

cat ~/Downloads/gcp-service-account.json | flexai secret create -p secret-from-sa-file

```
