stencila secrets set
echo <KEY> | stencila secrets set STENCILA_API_KEY
Usage
stencila secrets set <NAME>Examples
# Set a secret interactively (you'll be prompted)
stencila secrets set OPENAI_API_KEY
# Set a secret from stdin
echo "sk-abc123..." | stencila secrets set OPENAI_API_KEY
# Set API keys for different services
stencila secrets set ANTHROPIC_API_KEY
stencila secrets set GOOGLE_AI_API_KEY
stencila secrets set STENCILA_API_KEY
# Use the add alias instead
stencila secrets add STENCILA_API_KEY
Security
When setting secrets interactively, your input will be
hidden. When piping from stdin, ensure your shell history
doesn't record the command with the secret value.Arguments
<NAME> |