npm install
npm start:nodemon
- Get app password for bitbucket and configure environment variables with it
- Enter release branches name and other details in app.ts
- Run script using
npm start
- Copy variables from one repository to another
Mandatory Flags
-
app_username
-
app_password
-
workspace_id
-
source_repo_name
-
source_environment_name
-
target_repo
-
target_environment
-
target_stage
Optional flags
Flag | Options | Default | Description |
---|---|---|---|
writeToFile | source , target , both |
by default, it won't write to file | |
readFromFile | full file path | this will read variables from a file and write to a repository | |
overwriteSecured | true , false |
false |
if true, this will set secured variables as dummy text |
delete | true , false |
false |
if true, it will delete variables in target that is not present in source |