# nodus create secret

> Create a secret

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_create_secret/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus create secret

Create a secret

```plaintext
nodus create secret NAME [flags]
```

### Examples

```plaintext
  nodus create secret hf --from-literal HF_TOKEN=hf_xxx
```

### Options

```plaintext
      --dry-run string[="server"]   server returns the estimate without creating; client prints the manifest (default "none")
      --from-env-file stringArray   File of KEY=VALUE lines
      --from-literal stringArray    KEY=VALUE (repeatable)
  -h, --help                        help for secret
  -o, --output string               Output format: name, json, yaml, or estimate (with --dry-run=server)
      --type string                 Opaque or Registry
```

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus create](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_create/) - Create resources from manifests or with a typed generator

### Tested examples

These invocations run in CI against the CLI’s fake API.

Terminal window

```sh
nodus create secret hf --from-literal HF_TOKEN=hf_test --from-env-file wandb.env -o jsonpath={.spec.stringData}
```
