Comparing version 1.0.13 to 1.0.14
@@ -12,2 +12,3 @@ const fetch = require('node-fetch'); | ||
const path = `${__dirname}/../.securenv`; | ||
console.log(`Trying to get configuration at ${path}`); | ||
const content = fs.readFileSync(path, 'utf8'); | ||
@@ -14,0 +15,0 @@ return JSON.parse(content); |
{ | ||
"name": "securenv", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Securenv its a CLI for securenv API that stores and gets secure env files", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -5,6 +5,4 @@ # Securenv | ||
# Get started | ||
## Login | ||
@@ -15,3 +13,3 @@ | ||
```shell | ||
$ npx securenv login [username] [password] [api-host] | ||
$ npx securenv login [username] [password] https://securenv.prod.k8s.inovacao.rdsl.adttemp.com.br | ||
``` | ||
@@ -29,3 +27,3 @@ | ||
## Upload an ENV file | ||
## SET an ENV file | ||
@@ -36,3 +34,3 @@ ```shell | ||
So if you want to upload your env.production file to the vault, you have to do: | ||
So if you want to upload your .env.production file to the vault, you have to do: | ||
@@ -45,17 +43,9 @@ ```shell | ||
By the way, if you dont say the environment, securenv will use .env file in production env. | ||
## GET an ENV file | ||
```shell | ||
$ npx securenv set my-project | ||
# this will upload .env to my-project production vault | ||
``` | ||
## Download an ENV file | ||
```shell | ||
$ npx securenv get [project-name] [environment] | ||
``` | ||
So if you want to download your env.production file from the vault, you have to do: | ||
So if you want to download your .env.production file from the vault, you have to do: | ||
@@ -74,8 +64,11 @@ ```shell | ||
## List environments | ||
## GET an specific version | ||
List all avaiable projects and environments that you have grants. | ||
When you list list all avaiable projects and environments that you have grants, securenv will | ||
show to you up 10 old versions of some environment. | ||
If you want to get an specific version you have to get the versionId you want and do: | ||
```shell | ||
$ npx securenv list [project-name] | ||
$ npx securenv get [project-name] [environment] [version-id] | ||
@@ -85,13 +78,18 @@ # this will list all available environments that you have grant | ||
## Download an specific version | ||
## CAT an ENV file | ||
When you list list all avaiable projects and environments that you have grants, securenv will | ||
show to you up 10 old versions of some environment. | ||
If you only want to see some env file, you can do: | ||
If you want to get an specific version you have to get the versionId you want and do: | ||
```shell | ||
$ npx securenv cat [project-name] [environment] | ||
``` | ||
## LIST environments | ||
List all avaiable projects and environments that you have grants. | ||
```shell | ||
$ npx securenv get [project-name] [environment] [version-id] | ||
$ npx securenv list [project-name] | ||
# this will list all available environments that you have grant | ||
``` |
Sorry, the diff of this file is not supported yet
257
12390
88