gitoq
is a cli to share env files with high security in minimum time between environments and team members.
It works with a single command:
npm i -g gitoq
Start the process of synchronizing, managing and deploying your passwords using the Quick Start Guide:
gitoq login
That's it. Now you need to connect your project. Be careful that your project changes every time you run this command.
gitoq connect
After connecting the project we will create an env.gitoq.lock
file to track the project. you can
commit and push your env.gitoq.lock
file safely to a version controller like git.
Now you can get the latest changes of your main env (by default development
) :
gitoq pull
If you don't have the ENV
file, we'll create it for you and monitor your changes. Be careful, if it already exists, we'll change its content. (You can change it before running this command to send your ENV
first)
gitoq push
⭐ Note: Our intention regarding the file ENV
is the file .env
or .env.local
. We will create one of them for you based on their presence in your source code (priority is given to .env
).
After you've pushed your ENV
file, gitoq automatically sets up your main env. Manage multiple environments with the included UI (learn more) or :
gitoq pull -l
Would you also like to pull your envs to your local workspace? Run the command:
gitoq pull -l
gitoq --help
login your gitoq account.
Example:
gitoq login
If you're using multiple devices, make sure to logout to protect your privacy.
Example:
gitoq logout
Connect your project to your local workspace.
Example:
gitoq connect
[Token]
Connect your project directly to your local workspace.
gitoq connect Token
Cancel access to the project from the local workspace.
Example:
gitoq disconnect
Set changes of local workspace to env.
Example:
gitoq push
-l, --list
Set local workspace changes to preferred env.
gitoq push -l
Get changes of env to local workspace.
Example:
gitoq pull
-l, --list
Get desired env changes to the local workspace.
gitoq pull -l
It is development
by default, but you can change it in the project settings.
Our intention regarding the file ENV
is the file .env
or .env.local
. We will create one of them for you based on their presence in your source code (priority is given to .env
).
No. We strongly recommend against committing your env files to version control. It should only include environment-specific values such as database passwords or API keys. Your production database should have a different password than your development database.
Yes sure. It is safe and recommended to do so. It your project identifier.
See CONTRIBUTING.md
See CHANGELOG.md
MIT