Download the PHP package tamer-dev/laravel-env-cli without Composer
On this page you can find all versions of the php package tamer-dev/laravel-env-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tamer-dev/laravel-env-cli
More information about tamer-dev/laravel-env-cli
Files in tamer-dev/laravel-env-cli
Package laravel-env-cli
Short Description laravel commands to work with .env file in cli
License MIT
Homepage https://github.com/tamer-dev/laravel-env-cli
Informations about the package laravel-env-cli
Laravel Commands for .env file
This Laravel package offers to you some commands to work with your env file from the command line. if you are making changes frequently to your env file this package will help you to do this fast and in an effective way.
This package supports the Laravel version from 5.7 to 10 .
- Installation
- Usage:-
- Set Environment Variable Command
- Read Environment Variable Command
- Backup Environment File Command
- Restore Environment File Command
- Contribution
- Notes
- License
Installation
You can install this package with Composer using the following command:
Usage
1- Set Environment Variable Command
command definition :-
env:set {key} {value}
this command by default will use .env file
optional command options:-
{--file=your-custom-env-name} if you want to set a key in custom env file
{--b|backup} take a backup from env file before set the key
you must provide both a key and value .
you can provide them as two arguments as commnd before or one argument like follwoing:- .
if you value have spaces you can wrapping them in quotes like follwoing:-.
you can create new environment variables if this key dose not exist.
you can create or update environment variables in another file not in the default one by passing --file option like following:-
also you can take a backup file from your env file before make any changes in same command by passing -b option (a new file backup with the name '.env.backup_
another features :-
- update an empty value
- stop invalid inputs
- stop updateing in APP_KEY
2- Read Environment Variable Command
command definition :-
env:read {key}
this command by default will use .env file
optional command options:-
{--file=your-custom-env-name} if you want to read a key from a custom env file
3- Backup Environment File Command
this command will make a backup from env file (a new file backup with the name '.env.backup_
command definition :-
env:backup
this command by default will use .env file
optional command options:-
{--file=your-custom-env-name} if you want to backup a custom env file
4- Restore Environment File Command
restore your .env file from a backup file
command definition :-
env:restore {backupedFileName}
this command by default will use .env file
optional command options:-
{--file=your-custom-env-name} if you want to restore a custom env file
The MIT License (MIT). Please see License File for more information.
Contribution
contribution are welcome ,if any one want to contribute in this package you can start by picking from this list : -
- add tests
- add more commands and important features
- fix any issues
Notes
this package inspired by this package imliam/laravel-env-set-command,for that all thanks to imliam
License
The MIT License (MIT). Please see License File for more information.