> For the complete documentation index, see [llms.txt](https://docs.instruqt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.instruqt.com/resources/faq/copy-a-track-from-one-organization-to-another-via-cli.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
