Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

embeddings: added cli command to embedding docs (#12993)

nicole pardal482bec824f30
diff --git a/docs/capabilities/embeddings.mdx b/docs/capabilities/embeddings.mdx
index 99a577489..7d364200f 100644
--- a/docs/capabilities/embeddings.mdx
+++ b/docs/capabilities/embeddings.mdx
@@ -13,9 +13,23 @@ Embeddings turn text into numeric vectors you can store in a vector database, se
## Generate embeddings
-Use `/api/embed` with a single string.
-
<Tabs>
+ <Tab title="CLI">
+ Generate embeddings directly from the command line:
+
+ ```shell
+ ollama run embeddinggemma "Hello world"
+ ```
+
+ You can also pipe text to generate embeddings:
+
+ ```shell
+ echo "Hello world" | ollama run embeddinggemma
+ ```
+
+ Output is a JSON array.
+
+ </Tab>
<Tab title="cURL">
```shell
curl -X POST http://localhost:11434/api/embed \