The name of the FlexAI Secret to create.
Examples
-
hf-token-dev -
wandb-api-key -
my-secretive-secret-shhh
Creates and stores a new Secret using the FlexAI Secret Manager.
flexai secret create <secret_name> [flags]The name of the FlexAI Secret to create.
hf-token-dev wandb-api-key my-secretive-secret-shhh Displays this help page.
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.
cat gcp-service-account.json | flexai secret create gcp-sa --value-stdin echo $HF_TOKEN | flexai secret create -p hf-token-dev Provides more detailed output when createing a Secret.
Writing in or pasting a value using the interactive prompt:
flexai secret create hf-token-dev✔ Secret Value: █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