diff --git a/docs/help.md b/docs/help.md index 6d9ac6da..e5ad9317 100644 --- a/docs/help.md +++ b/docs/help.md @@ -190,6 +190,10 @@ Usage: llm keys get [OPTIONS] NAME Return the value of a stored key + Example usage: + + export OPENAI_API_KEY=$(llm keys get openai) + Options: --help Show this message and exit. ``` diff --git a/llm/cli.py b/llm/cli.py index c864e235..69cd44e6 100644 --- a/llm/cli.py +++ b/llm/cli.py @@ -607,7 +607,14 @@ def keys_path_command(): @keys.command(name="get") @click.argument("name") def keys_get(name): - "Return the value of a stored key" + """ + Return the value of a stored key + + Example usage: + + \b + export OPENAI_API_KEY=$(llm keys get openai) + """ path = user_dir() / "keys.json" if not path.exists(): raise click.ClickException("No keys found")