# 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:

1. Set the working directory to the source organization by running the following command:

```bash
instruqt config set team <source-org>
```

Replace `<source-org>` with the name of the source organization.

2. Pull the track from the source organization:

```bash
instruqt track pull <track-name>
```

Replace `<track-name>` with the name of the track you want to copy.

3. Open the `track.yml` file in a text editor and change the `owner` field from the source organization to the target organization.

```yaml
owner: <target-org>
```

Replace `<target-org>` with the name of the target organization.

4. Push the track to the target organization. Make sure you are within the directory structure of the track when you run the following command:

```bash
instruqt track push
```

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.instruqt.com/resources/faq/copy-a-track-from-one-organization-to-another-via-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
