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

# nebius mysterybox secret create

## Name

`nebius mysterybox secret create`

Creates a new secret in the specified container.

## Synopsis

```
nebius mysterybox secret create
  --description
  --labels
  --name
  --parent-id [required]
  --primary-version-id
  --resource-version
  --secret-version-description
  --secret-version-payload
  --secret-version-set-primary
  --async
  -i, --interactive
```

## Examples

**Create a secret with string values**

```
nebius mysterybox secret create \
  --name "<secret_name>" \
  --description "<description>" \
  --secret-version-payload '[
    {"key": "<key_name>", "string_value": "<value>"},
    {"key": "<key_name>", "string_value": "<value>"},
    ...
  ]'
```

**Create a secret with binary values on Ubuntu**

```
nebius mysterybox secret create \
  --name "<secret_name>" \
  --description "<description>" \
  --secret-version-payload "[
    {\"key\": \"<key_name>\", \"binary_value\": \"$(base64 -w 0 <path/to/file>)\"},
    {\"key\": \"<key_name>\", \"binary_value\": \"$(base64 -w 0 <path/to/file>)\"},
    ...
  ]"
```

**Create a secret without a version**

```
nebius mysterybox secret create \
  --name "<secret_name>" \
  --description "<description>"
```

## Options

`--description` (string)

Description of the secret.

`--labels` (string->string)

Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--parent-id` (string)* \[required]*

Identifier of the parent resource to which the resource belongs.

`--primary-version-id` (string)

Specifies the primary version of the secret to update its payload. This parameter should only be provided during update operations.

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--secret-version-description` (string)

Description of the version.

`--secret-version-payload` (json)

Payload entries related to the version.

(structure)

**binary\_value** -> (bytes)*\[sensitive]*

The binary data to encrypt and store in the version of the secret.

Mutually exclusive with: *string\_value*.

**key** -> (string)*\[required]*
*\[sensitive]*

Non-confidential key of the payload entry.

**string\_value** -> (string)*\[sensitive]*

The text data to encrypt and store in the version of the secret.

Mutually exclusive with: *binary\_value*.

JSON Schema:

```json theme={null}
[{                   
  "binary_value": "",
  "key": ""          
}]
```

`--secret-version-set-primary` (bool)

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

`-i, --interactive` (bool)

If set, suggests to insert field values in interactive mode.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {              
>   "metadata": {               
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "spec": {                      
>     "description": string,        // Description of the secret.
>     "primary_version_id": string, // [optional] [non_empty_default]
>                                   // Specifies the primary version of the secret to update its payload. This parameter should only be provided during update operations.
>     "secret_version": {      // [immutable] [input_only]
>                              // Secret's version specification, defines the secret version, including its payload. This parameter must be specified only during create
>                              // operations.
>       "description": string, // [immutable]
>                              // Description of the version.
>       "payload": [{             // [required] [immutable] [input_only]
>                                 // Payload entries related to the version.
>         "binary_value": bytes,  // [sensitive]
>                                 // Cannot be set together with: string_value
>                                 // The binary data to encrypt and store in the version of the secret.
>         "key": string,          // [required] [sensitive]
>                                 // Non-confidential key of the payload entry.
>         "string_value": string  // [sensitive]
>                                 // Cannot be set together with: binary_value
>                                 // The text data to encrypt and store in the version of the secret.
>       }],
>       "set_primary": bool    // [input_only]
>     }
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius mysterybox secret create '
> {              
>   "metadata": {           
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "spec": {                  
>     "description": "",       
>     "primary_version_id": "",
>     "secret_version": {    
>       "description": "",   
>       "payload": [{        
>         "binary_value": "",
>         "key": ""          
>       }],
>       "set_primary": false 
>     }
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
