Skip to content

Fernando-Dourado/harness-move-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harness Move

An utility tool to copy/clone/move a project.

Install

Download the latest version from releases page

Requirements

  • The tool does not create the org or project target.
  • As safety operation the tool do not delete the entities from the source project.
  • The api-key need to have access to read from the source project and write to the target project.
  • You can run it multiple times, when the same entity already exists in the target project we ignore it and do not report it as an error.

Usage

Execute the operation running that command in your terminal

./harness-move-project \
  --api-token <SAT_OR_PAT> \
  --account <account_identifier> \
  --source-org <org_identifier> --source-project <project_identifier> \
  --target-org <org_identifier> --target-project <project_identifier>

If the source and target projects has the same identifier, you can suppress the --target-project argument.

When the tool try to create and entity on target project that the same identifier already exist, it just ignore the error and keep the execution. Using that strategy you can run it multiple times without side effects.

Supported Entities

  • Variables
  • Environments
  • Infrastructure Definition
  • Services
  • Service Overrides V1
  • Templates
  • Pipelines
  • Input Sets
  • File Store

Not Supported Entities

  • Secrets
  • Triggers
  • Connectors
  • Service Overrides V2

Limitation

  • The tool can only fetch 1000 elements of each entity type.
  • Tags are not supported and cannot be copied from the source entity to the target one.

Contributions

I am to express my gratitude for inspiration to create this tool.

  • Aleksa Arsic: Thank you for the inspiration! Your creativity is amazing!
  • Francisco Junior: I appreciate inspiring me to improve. Your guidance was crucial!

About

An utility tool to move project between orgs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages