{"id":18842700,"url":"https://github.com/dotenv-org/cli","last_synced_at":"2025-04-14T07:31:52.189Z","repository":{"id":42534188,"uuid":"365621485","full_name":"dotenv-org/cli","owner":"dotenv-org","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-01T04:20:46.000Z","size":360,"stargazers_count":46,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T21:12:46.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotenv-org.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-08T22:19:20.000Z","updated_at":"2024-12-07T20:25:40.000Z","dependencies_parsed_at":"2022-09-07T16:13:48.449Z","dependency_job_id":null,"html_url":"https://github.com/dotenv-org/cli","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotenv-org%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotenv-org%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotenv-org%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotenv-org%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotenv-org","download_url":"https://codeload.github.com/dotenv-org/cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248839442,"owners_count":21169817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T02:55:29.455Z","updated_at":"2025-04-14T07:31:51.871Z","avatar_url":"https://github.com/dotenv-org.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cstrong\u003eWarning ⚠️\u003c/strong\u003e\u003cbr/\u003eThis CLI is deprecated. Please use the new and improved \u003ca href=\"https://github.com/dotenv-org/dotenv-vault\"\u003edotenv-vault cli\u003c/a\u003e.\u003c/a\u003e\n\u003c/p\u003e\n\n# @dotenv/cli\n\n\u003cimg src=\"https://raw.githubusercontent.com/dotenv-org/cli/master/dotenv-cli.png\" alt=\"@dotenv/cli\" align=\"right\" /\u003e\n\nDotenv cli is a command line tool that syncs your `.env` files across machines and between your team members. It's like 1Password, but for developers. Designed by the same people that brought you [dotenv](https://github.com/motdotla/dotenv), it's a recommended plugin for [dotenv](https://github.com/motdotla/dotenv).\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@dotenv/cli.svg)](https://npmjs.org/package/@dotenv/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@dotenv/cli.svg)](https://npmjs.org/package/@dotenv/cli)\n[![License](https://img.shields.io/npm/l/@dotenv/cli.svg)](https://github.com/dotenv-org/cli/blob/master/package.json)\n\n## Install\n\n```bash\n# install globally (recommended)\nnpm install @dotenv/cli -g # optionally run with sudo npm install @dotenv/cli -g\n```\n\nor\n\n```bash\n# install locally\nnpm install @dotenv/cli --save-dev\n```\n\n## Usage\n\nUsage is easy! Run the command:\n\n```bash\ndotenv-cli new\n```\n\nFollow those instructions and then run:\n\n```bash\ndotenv-cli push\n```\n\nAnd if you need to pull changes that another teammate made, run:\n\n```bash\ndotenv-cli pull\n```\n\nThat's it!\n\n## Commands\n\n### `dotenv-cli help [COMMAND]`\n\ndisplay help for dotenv-cli\n\n```\nUSAGE\n  $ dotenv-cli help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n### `dotenv-cli new`\n\nCreate your `.env.project` file.\n\nExample:\n\n```bash\n$ dotenv-cli new\n```\n\n### `dotenv-cli push [FILENAME]`\n\nPush your `.env` file to development environment.\n\nExample:\n\n```bash\n$ dotenv-cli push\n# pushes local .env to remote development\n```\n\n#### Arguments\n\n##### [FILENAME]\n\nSet input filename. Defaults to .env.\n\nExample:\n\n```bash\n$ dotenv-cli push .env.development\n# pushes .env.development to remote development environment\n```\n\n#### Options\n\n##### --dotenv_me\n\nDirectly pass your `DOTENV_ME` value to the command line, instead of reading from a `.env.me` file.\n\nExamples:\n\n```bash\n$ dotenv-cli push .env.development --dotenv_me=me_1234\n# pushes local .env.development to remote development\n```\n\n### `dotenv-cli pull [ENVIRONMENT] [FILENAME]`\n\nPulls your development|staging|ci|production environment(s) to your machine.\n\nExample:\n\n```bash\n$ dotenv-cli pull\n# pulls remote development envs to .env\n```\n\nFor more information run..\n\n```bash\n$ dotenv-cli help pull\n```\n\n#### Arguments\n\n##### [ENVIRONMENT]\n\nPull .env.ci, .env.staging, and .env.production\n\nExample:\n\n```bash\n$ dotenv-cli pull staging\n# pulls remote staging envs to .env.staging\n```\n\n##### [FILENAME]\n\nSet output filename. Defaults to .env for development and .env.{environment} for other environments\n\nExample:\n\n```bash\n$ dotenv-cli pull production .env\n# pulls remote production envs to .env\n```\n\n#### Options\n\n##### --dotenv_me\n\nDirectly pass your `DOTENV_ME` value to the command line, instead of reading from a `.env.me` file.\n\nExamples:\n\n```bash\n$ dotenv-cli pull staging --dotenv_me=me_1234\n# pulls remote staging envs to .env.staging\n\n$ dotenv-cli pull production .env --dotenv_me=me_1234\n# pulls remote production envs to .env\n```\n\n## Development\n\n```\nNODE_TLS_REJECT_UNAUTHORIZED=0 DOTENV_API_URL=https://cli.dotenv.development ./bin/run\n```\n\n### Testing\n\n```\nyarn test\n```\n\n### Publishing\n\nOnly for those with permission.\n\n```\nnpm publish\n```\n\n## Contributing Guide\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## CHANGELOG\n\nSee [CHANGELOG.md](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotenv-org%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotenv-org%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotenv-org%2Fcli/lists"}