This repository was archived by the owner on Jul 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (44 loc) · 2.16 KB
/
Copy path.env.example
File metadata and controls
55 lines (44 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Zoho Inventory CLI environment variables.
# Copy to `.env` (gitignored) and fill in values, or set them in the shell.
# --- Auth: option A (recommended) — OAuth refresh flow ---
# The CLI exchanges this refresh token for a short-lived access token on each
# run (cached on disk) and sends `Authorization: Zoho-oauthtoken <token>`.
# Refresh tokens never expire; access tokens last ~1 hour.
# @required
# @how-to-get https://www.zoho.com/inventory/api/v1/oauth/ (Self Client → Generate refresh token; scope ZohoInventory.fullaccess.all)
# @format Zoho refresh token (starts with "1000.")
# @validation-command organizations list
ZOHO_INVENTORY_API_KEY=your_zoho_inventory_api_key_here
# Use ZOHO_INVENTORY_API_KEY only if you want to paste a static access token
# (expires hourly). Prefer the refresh-token trio below.
# @required
# @how-to-get Same Self Client used to mint the refresh token.
ZOHO_INVENTORY_REFRESH_TOKEN=your_zoho_refresh_token_here
# @required
ZOHO_INVENTORY_CLIENT_ID=1000.your_client_id_here
# @required
ZOHO_INVENTORY_CLIENT_SECRET=your_client_secret_here
# --- Required everywhere ---
# Organization id (from Zoho Inventory → Settings → Manage Organizations).
# Auto-injected as `?organization_id=` on every request.
# @required
ZOHO_INVENTORY_ORG_ID=your_organization_id_here
# --- Datacenter routing ---
# Datacenter for the Zoho account: com | eu | in | com.au | jp | ca | com.cn | sa
# Picks the base URL https://www.zohoapis.<dc>/inventory/v1 and the matching
# accounts.zoho.<dc> for OAuth refresh. Default: com.
ZOHO_INVENTORY_DC=in
# --- Test / mock override ---
# @optional
# @validation-command organizations list
# Overrides the API base URL — used by integration tests to point at a mock server.
# ZOHO_INVENTORY_BASE_URL=http://127.0.0.1:3000
# @optional
# Overrides the OAuth accounts URL. Rarely needed; tests can point this at a mock.
# ZOHO_INVENTORY_ACCOUNTS_URL=http://127.0.0.1:3001
# @optional
# Stateless mode: do not read/write ~/.config/zoho-inventory-cli/credentials.json.
# ZOHO_INVENTORY_NO_CACHE=1
# @optional
# Full OAuth token URL override for tests or non-standard routing.
# ZOHO_INVENTORY_TOKEN_URL=http://127.0.0.1:3001/oauth/v2/token