@@ -307,14 +307,84 @@ vectorize-iris large-document.pdf \
307307
308308## Configuration
309309
310- Set your API credentials:
310+ ### CLI Configuration
311311
312+ The CLI offers multiple ways to configure your credentials:
313+
314+ #### Interactive Configuration (Recommended)
315+
316+ The easiest way to get started - opens your browser for authentication:
317+
318+ ``` bash
319+ vectorize-iris configure
320+ ```
321+
322+ ** What happens:**
323+ 1 . Opens your browser to the Vectorize platform
324+ 2 . Click "Authorize" to grant access
325+ 3 . Credentials are automatically saved to ` ~/.vectorize-iris/credentials `
326+ 4 . Done! You're ready to extract
327+
328+ #### Manual Configuration
329+
330+ If you prefer not to use the browser, prompt for credentials manually:
331+
332+ ``` bash
333+ vectorize-iris configure --manual
334+ ```
335+
336+ You'll be asked to enter:
337+ - API Token
338+ - Organization ID
339+
340+ Get these from [ platform.vectorize.io] ( https://platform.vectorize.io ) → Account → Org Settings → Access Tokens
341+
342+ #### Non-Interactive Configuration
343+
344+ For scripts and automation, pass credentials directly:
345+
346+ ``` bash
347+ vectorize-iris configure --api-token " your-token" --org-id " your-org-id"
348+ ```
349+
350+ #### Environment Variables
351+
352+ Alternatively, set credentials via environment variables (works for all clients):
353+
354+ ``` bash
355+ export VECTORIZE_TOKEN=" your-token"
356+ export VECTORIZE_ORG_ID=" your-org-id"
357+ ```
358+
359+ ### Python & Node.js Configuration
360+
361+ For Python and Node.js clients, use environment variables or pass credentials programmatically:
362+
363+ ** Environment variables:**
312364``` bash
313365export VECTORIZE_TOKEN=" your-token"
314366export VECTORIZE_ORG_ID=" your-org-id"
315367```
316368
317- Get your credentials at [ Vectorize Console] ( https://vectorize.io ) .
369+ ** Python:**
370+ ``` python
371+ from vectorize_iris import VectorizeIrisClient
372+
373+ client = VectorizeIrisClient(
374+ api_token = " your-token" ,
375+ org_id = " your-org-id"
376+ )
377+ ```
378+
379+ ** Node.js:**
380+ ``` typescript
381+ import { extractTextFromFile } from ' @vectorize-io/iris' ;
382+
383+ const result = await extractTextFromFile (' document.pdf' , {
384+ apiToken: ' your-token' ,
385+ orgId: ' your-org-id'
386+ });
387+ ```
318388
319389## Documentation
320390
0 commit comments