envland
v0.1.5
Published
CLI for syncing .env files with the Envland console
Downloads
906
Maintainers
Readme
envland CLI
Sync .env files with envland.dev.
Install
npm install -g envlandUsage
envland login # authenticate via browser
envland init # link cwd to a project (.envland.json)
envland pull [env] # download secrets into .env
envland push [env] # upload local .env (shows diff, confirms)
envland diff [env] # compare local vs remote
envland run [env] -- <cmd> # run a command with secrets injected
envland open # open project in the consoleAt runtime, override with ENVLAND_API_URL. The default is baked in at build time (see below).
Develop
From the monorepo root:
bun --filter envland build # bundle for npm (dist/envland.js)
bun --filter envland build:binary # native binary (dist/envland)
node apps/cli/dist/envland.js helpBuild-time API URL
bun run build bakes https://api.envland.dev as the default API host. For local dev:
bun run build:local # http://localhost:4001Override for a one-off build:
ENVLAND_API_URL=https://api.envland.dev bun run build:bundleprepublishOnly runs build automatically on npm publish.
Publish
- Bump
versioninapps/cli/package.json. - Commit and push a tag:
git tag cli-v0.1.0 && git push origin cli-v0.1.0 - GitHub Actions publishes to npm (requires
NPM_TOKENrepo secret).
Manual publish (runtime deps are bundled — do not add workspace:* to dependencies):
cd apps/cli
npm login
npm publish --access public