mirror of
https://github.com/sbrow/envr.git
synced 2026-10-25 08:41:55 -04:00
feat: Added support for remote files (via ssh).
This commit is contained in:
@@ -10,12 +10,17 @@ envr restore <path> [flags]
|
||||
|
||||
* `path` — Path to .env file to restore
|
||||
|
||||
Remote files are restored over SSH using an atomic replacement. If the remote
|
||||
file has changed since it was backed up, restoration is refused unless
|
||||
`--force` is specified.
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
-h, --help show this documentation
|
||||
-c, --config-file config file (default "~/.envr/config.json")
|
||||
--color Whether or not to colorize output (default 'auto')
|
||||
-f, --force Overwrite existing config
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
Update or restore your env backups
|
||||
|
||||
For both local and remote files, `sync` backs up changed file contents and
|
||||
restores missing files from the backup. Remote SSH and permission errors are
|
||||
reported instead of being treated as missing files.
|
||||
|
||||
```
|
||||
envr sync [flags]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user