Skip to content

Commit 11470cd

Browse files
committed
Document Programmatic API
1 parent 7e793da commit 11470cd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ deploy-env production API_KEY SECRET GRAPHQL_ENDPOINT
6262
```
6363

6464

65+
## Programmatic API
66+
67+
### `deployEnv`
68+
A function which deploys environment variables from `.env` and `.env-cmdrc.json` files:
69+
70+
- `deploymentEnv` { `'production'|'preview'|'development'` }: Deployment environment to be deployed to
71+
- `varNameList` { `string[]` }: (optional) List of environment variables to be deployed
72+
- **Returns** { `Promise<void>` }: Promise which resolves when deployment completes
73+
74+
6575
## Related Projects
6676
[`env-cmd`](https://github.com/toddbluhm/env-cmd) - a simple node program for executing commands using an environment from an env file
6777

0 commit comments

Comments
 (0)