Links

Copy a track

Save time.
This guide explains how to copy a track.

Copy a track

Copying a track can save you development time and it takes the following steps:
🌐 Web UI
💻 Instruqt CLI
  1. 1.
    Open your browser and go to play.instruqt.com. ↳ Instruqt shows your Content page.
  2. 2.
    Click
    on the track you want to copy, followed by Copy track. ↳ The Copy track pop-up opens.
  3. 3.
    In the Track title field, enter a title for the new track.
  4. 4.
    In the Track slug field, enter a unique slug within your team for the new track.
  5. 5.
    If you are a member of multiple teams on Instruqt, the Select team list is part of the pop-up. If so, select the desired team in the Select team list.
  6. 6.
    Click Create. ↳ The newly copied track appears at the top of your My content page.
  1. 1.
    Open a terminal and move into the directory where you maintain your tracks.
  2. 2.
    Enter the following command:
    instruqt track create --from TEAM/TRACK_SLUG --title "YOUR_TITLE"
    ⇨ Replace TEAM, TRACK_SLUG , and YOUR_TITLE with your values. ↳ Instruqt CLI copies the track. The output looks something like this:
    ==> Finding track by slug: TEAM/TRACK_SLUG_TRACK_TO_COPY_FROM
    ==> Creating new track files:
    TRACK_SLUG_NEW_TRACK
    ├── 01-CHALLENGE_SLUG
    │ ├── assignment.md
    │ ├── check-container
    │ ├── cleanup-container
    │ ├── setup-container
    │ └── solve-container
    ├── 02-CHALLENGE_SLUG
    │ ├── assignment.md
    │ ├── check-container
    │ ├── cleanup-container
    │ ├── setup-container
    │ └── solve-container
    ├── config.yml
    └── track.yml
    OK