Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locize cli doesn't read .env file #69

Closed
Carduelis opened this issue Jun 21, 2022 · 2 comments
Closed

Locize cli doesn't read .env file #69

Carduelis opened this issue Jun 21, 2022 · 2 comments
Labels

Comments

@Carduelis
Copy link

Problem

I've added variables of project id and API key to <root>/.env file and use locize sync in my package.json command.
It doesn't respect added variables with the correct spelling (I've checked the source code as well)

<root>/.locize works, but I need .env file, cause I need to store variables Secretly.

I've tried the guide and it works with echo, but doesn't work with locize.

"echo-test": "dotenv cross-var echo $LOCIZE_API_KEY" // prints the value (expected)
"pure-test": "dotenv cross-var $LOCIZE_API_KEY" // prints the value as a missing command (expected)
"locize:sync": "dotenv cross-var locize sync --api-key $LOCIZE_API_KEY" // doesn't work

Environment

Windows 10, Node 16.14.2

@adrai
Copy link
Collaborator

adrai commented Jun 21, 2022

For me "locize:sync": "dotenv cross-var locize sync" is working...
just make sure you do not have a .locize config file

@stale
Copy link

stale bot commented Jun 29, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants