Skip to content

Commit

Permalink
docs: mention .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoral committed Feb 19, 2025
1 parent 26dabf7 commit be0201f
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,22 @@ yarn store deploy --store-id=fashion-brand \
```

::tip Environment Variables
You can simplify the command by setting environment variables:
You can simplify the command by using environment variables. The Alokai CLI automatically loads variables from the `.env` file in your project root, which is the recommended approach:

```bash
# .env file in your project root
CLI_CLOUD_USERNAME=your_username
CLI_CLOUD_PASSWORD=your_password
```

Alternatively, you can set them manually in your terminal:
```bash
export CLI_CLOUD_USERNAME=your_username
export CLI_CLOUD_PASSWORD=your_password
```

# Now you only need to specify store-id and registry
With either approach, you'll only need to specify the store-id:
```bash
yarn store deploy --store-id=fashion-brand
```
::
Expand Down

0 comments on commit be0201f

Please sign in to comment.