Skip to main content
Creates and stores a new Secret using the FlexAI Secret Manager.

Usage

flexai secret create <secret_name> [flags]

Arguments

ArgumentTypeRequiredDescription
secret_namestringYesThe name of the FlexAI Secret to create.

Flags

FlagShortTypeDescription
--help-hbooleanDisplays this help page.
--value-stdin-pbooleanTake 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-vbooleanProvides more detailed output when creating a Secret.

Examples

Interactive prompt (Default)

Writing in or pasting a value using the interactive prompt:

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:

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