Projects created after the 36.00 release will not be able to use the file path given below to use CLI commands. When browsing for the file path, search for urc2.exe.
Use the following CLI commands for projects after 36.00:
See all revisions in your repository
urc2 revision list
Sync to the latest revision of the project
urc2 revision sync
Sync to a previous revision in your repository history
urc2 revision sync @[revision]
Get an overview of all assets and their status within a certain revision
urc2 repository status
Roll back to a specific revision to continue working from a previous backup
urc2 revision promote "description"
Revert an asset to the current revision to undo your changes
urc2 file reset .\pathname
Release assets signed out by a specific team member to unblock yourself
urc2 lock release --force --owner <username>
The Unreal Revision Control (URC) Command Line Interface (CLI) enables you to perform revision control actions on your project using a third-party command line tool such as PowerShell. Although these actions can often be performed with the user interface, some allow you to go beyond what the interface currently supports.
This document provides an overview of:
How to get started with CLI
Common use cases and how to achieve them with the CLI
Before You Start
To use command lines you need to know where the URC files are located in Windows Explorer and set up an environment variable to create and use command lines with URC.
Before setting the environment variable, make sure to set your folder where the urc.exe exists within your path variable.
Open your Windows settings and select System > About > Advanced system settings. The System Properties panel opens.
Click Environment Variables…
Click to enlarge image.
Select Path > Edit from the User variables list to edit the Environment Variables for the path.
Click to enlarge image.
Your name appears after C:\Users\
Select Browse and choose the file path that leads to your urc.exe files. This can usually be found at
C:\Program Files\Epic Games\Fortnite\FortniteGame\Binaries\Win64Click OK until all the open panels are closed.
You’ve successfully edited an environment variable.
Launching PowerShell
Open the Unreal Editor for Fortnite (UEFN) project you’re working on with Windows Explorer.
Make sure to log into UEFN first before using other URC CLI commands.
This depends on whether you have recently logged into UEFN. You won’t need to call urc auth login if UEFN is open and you’re logged in unless the token expires. If you use the CLI without UEFN open or after the token expires, you’ll have to log into the CLI.
Shift + right-click to open the contextual menu.
Choose Open PowerShell window here.
Common CLI Use Cases
Listing all the projects that you have access to with your account logged in.
| CLI Commands |
|---|
urc project list |
urc p list |
Click to enlarge image.
Seeing all the snapshots of your project.
| CLI Commands |
|---|
urc project snapshot list |
urc p s list |
Syncing to a previous snapshot to go back in project history.
Close the project or editor before syncing to a specific snapshot to avoid failing to sync project files.
| CLI Commands |
|---|
urc project snapshot get <number of snapshot> |
urc p s get <number of snapshot> |
Click to enlarge image.
Syncing to latest so you can retrieve everyone’s updates to the island.
| CLI COmmands |
|---|
urc project snapshot get |
urc p s get |
Click to enlarge image.
Getting an overview of all assets and their status within the current snapshot before submitting.
| CLI Commands |
|---|
urc project status –-extended |
urc p status –-extended |
Click to enlarge image.
Rollback to a specific snapshot to continue working from a previous backup.
Sync your project to a previous snapshot
| CLI Commands |
|---|
urc projects snapshots get <number of snapshot> |
If you need to see a list of snapshots so you can select which project version you want to sync to, use the command:
| CLI Commands |
|---|
urc projects snapshots list |
Click to enlarge image.
Copy and paste the Plugins folder to your desktop to keep a backup of your assets.
Afterward, sync back to the latest snapshot.
| CLI Commands |
|---|
urc projects snapshots get |
Once you've successfully synched the project to the latest snapshot, do the following:
Delete Plugins from your current UEFN project folder.
Copy and paste the previous Plugins folder from the desktop into the project folder.
Open your project in UEFN and confirm the state of the project looks as you intend it.
Click Check In Changes if you project looks as you expect to create a new snapshot reflecting the new state of your project.
Reverting an asset to the current snapshot to undo your changes.
| CLI Commands |
|---|
urc asset revert .\pathname |
urc a revert .\pathname |
Click to enlarge image.
Releasing assets that are checked out by a specific team member, so you can continue working without someone blocking your work.
Get the projectID, opening in the project in the Creator Portal. You can see the project id in the url.
Click to enlarge image.
This function can only be performed by a team admin. Make sure to check your team role in the Creator Portal.
| CLI Commands |
|---|
urc project forcerelease <projectID> –-user UserName |
urc p forcerelease <projectID> –-user UserName |
Click to enlarge image.