You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-5Lines changed: 36 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,13 +64,28 @@ Make sure to replace `your-api-key-here` with your actual Hevy API key.
64
64
65
65
## Configuration
66
66
67
-
Create a `.env` file in the project root (you can copy from [.env.sample](.env.sample)) with the following content:
67
+
You can supply your Hevy API key in two ways:
68
+
69
+
1. Environment variable (`HEVY_API_KEY`)
70
+
2. Command-line argument (`--hevy-api-key=your_key` or `hevy-api-key=your_key` after `--` when using npm scripts)
71
+
72
+
Create a `.env` file in the project root (you can copy from [.env.sample](.env.sample)) with the following content if using the environment variable approach:
68
73
69
74
```env
70
75
HEVY_API_KEY=your_hevy_api_key_here
71
76
```
72
77
73
-
Replace `your_hevy_api_key_here` with your actual Hevy API key.
78
+
Replace `your_hevy_api_key_here` with your actual Hevy API key. If you prefer the command argument approach you can skip setting the environment variable and start the server with for example:
0 commit comments