Skip to content

Commit 71663df

Browse files
committed
docs: Document the new --replace-env flag in CLI
1 parent f48495c commit 71663df

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/pages/reference/cli.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,15 @@ run this command from the Cube app directory.
137137
### Usage
138138

139139
```bash
140-
npx cubejs-cli deploy --upload-env --directory PATH --token TOKEN
140+
npx cubejs-cli deploy --replace-env --directory PATH --token TOKEN
141141
```
142142

143-
| Parameter | Description |
144-
| -------------------- | ---------------------------------------------- |
145-
| `--upload-env`       | Optional. Upload the `.env` file to Cube Cloud |
146-
| `--token <token>` | Authentication token for Cube Cloud |
147-
| `--directory <path>` | Path to the Cube application directory |
143+
| Parameter | Required | Description |
144+
| -------------------- | -------- | ---------------------------------------------- |
145+
| `--token <token>` | ✅ Yes | Authentication token for Cube Cloud |
146+
| `--directory <path>` | ✅ Yes | Path to the Cube application directory |
147+
| `--upload-env`       | ❌ No | Use `.env` file to populate environment variables in Cube Cloud. Only set them once during the very _first_ upload for this deployment |
148+
| `--replace-env`      | ❌ No | Use `.env` file to populate environment variables in Cube Cloud. Replace them with new ones during _every_ upload for this deployment |
148149

149150
### Example
150151

0 commit comments

Comments
 (0)