Copy a Track from One Organization to Another via CLI
If you have multiple Instruqt organizations or teams and you want to copy an Instruqt track from one to another you can do this with the duplicate option per track in the Instruqt UI or you can do so using the CLI. The CLI process involves pulling the track from the source organization, modifying the track's owner in the track.yml
file, and then pushing the track to the target organization.
Here is the step-by-step process:
Set the working directory to the source organization by running the following command:
Replace <source-org>
with the name of the source organization.
Pull the track from the source organization:
Replace <track-name>
with the name of the track you want to copy.
Open the
track.yml
file in a text editor and change theowner
field from the source organization to the target organization.
Replace <target-org>
with the name of the target organization.
Push the track to the target organization. Make sure you are within the directory structure of the track when you run the following command:
Please note that the instruqt config set team
command is only used for pulling tracks and doesn't impact the pushing of tracks. The organization/team is embedded in the track.yml
file under the "owner" field.
Last updated