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
+11-65Lines changed: 11 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,55 +139,9 @@ The CLI will:
139
139
140
140
### 4. Environment Configuration (Optional)
141
141
142
-
By default, MoMorph CLI connects to the production MoMorph API. For development or testing purposes, you can configure the CLI to use different environments:
142
+
By default, MoMorph CLI connects to the production MoMorph API. For development or testing purposes, you can configure the CLI using environment variables.
143
143
144
-
#### Using Staging Environment
145
-
146
-
Staging environment requires Basic Authentication in addition to GitHub token. Set up your environment variables:
147
-
148
-
```bash
149
-
# Set environment to staging
150
-
export MOMORPH_ENV=staging
151
-
# or
152
-
export MOMORPH_ENV=stg
153
-
154
-
# Set Basic Auth credentials (required for staging)
155
-
export MOMORPH_BASIC_AUTH_USERNAME=your_username
156
-
export MOMORPH_BASIC_AUTH_PASSWORD=your_password
157
-
158
-
# Now all commands will use staging API with Basic Auth
159
-
momorph login
160
-
momorph init my-project --ai copilot
161
-
```
162
-
163
-
#### Using .env File (Recommended)
164
-
165
-
For convenience and security, you can use a `.env` file:
166
-
167
-
```bash
168
-
# Copy the example file
169
-
cp .env.example .env
170
-
171
-
# Edit .env with your credentials
172
-
nano .env
173
-
174
-
# Load environment variables (bash/zsh)
175
-
source .env
176
-
177
-
# Or use with direnv (auto-loads when entering directory)
178
-
echo"dotenv"> .envrc
179
-
direnv allow
180
-
```
181
-
182
-
**Important Security Notes**:
183
-
- ✅ `.env` is already in `.gitignore` - your credentials won't be committed
184
-
- ✅ Basic Auth credentials are NEVER saved to disk config files
185
-
- ✅ Credentials are only read from environment variables at runtime
186
-
- ⚠️ Keep your `.env` file secure: `chmod 600 .env`
187
-
- ⚠️ Never share or commit your `.env` file
188
-
- ⚠️ Use different credentials for staging and production
0 commit comments