# nodus secret create

> Create a Secret

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

## nodus secret create

Create a Secret

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

### Examples

```plaintext
  nodus secret create hf-token --from-literal HF_TOKEN=hf_xxx
  nodus secret create app-env --from-env-file .env
  nodus secret create registry --type Registry --from-literal server=ghcr.io --from-literal username=ada --from-literal password=…
```

### 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 create
  -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 secret](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_secret/) - Create Secrets from literals, env files or registry logins
