push
Check
envshh help push
for more details from the command line
Push local environment variables to Local and/or Remote Repository
Demo
Screenshot
Usage
envshh push <options>
Options
- project
- branch
- env-path
- offline
- instance
- message
-m, --message <message>
(Optional): Customized commit message. If not specified, Envshh will use Cureent Date and Time (new Date.toString()
) as the commit message
Examples
npx envshh push
npx envshh push -b "staging" # staging / production / development / dev / prod anything you like
npx envshh push -m "My Custom Commit Message" # Custom Commit Message
npx envshh push -e "src/.env.random" # if your .env file is not in the root directory or does not follow .env naming convention
npx envshh push -e "src/.env.random, src/.env.development" # Above example + multiple files
npx envshh push -o # Just commit the changes locally without pushing to remote repository
npx envshh push -p "my-project" # Custom project name
npx envshh push -i "work" # Custom instance. See core-concepts/instance for more details