Skip to main content
Code42 Support

Code42 commands

Available in:

StandardPremiumEnterprise
Small Business
Applies to:

Overview

Code42 Commands allow you to manually enter commands that can be used to generate log files, start and stop the Code42 service, assign a new GUID, and more.

Steps

  1. Open the Code42 app.
  2. If necessary, sign in.
    See the table below for commands that require authentication.
  3. Open Code42 Commands by entering the keyboard shortcut for your operating system:
    • Windows: Ctrl+Shift+C
    • Mac: Option+Command+C
    • Linux: Ctrl+Shift+C
  4. Enter commands in the text area.
    • Enter commands without quotes.
    • The commands are case-sensitive, so be sure to enter commands exactly as shown.
    • Use commas to separate multiple commands on the same line.

CLI-5_2-capture.png

Available commands

You must be signed in to the Code42 app to use commands that require authentication.

Command Description Requires Authentication?
backup.replace <destination GUID>

Recreates the client-side cache with data from the destination.

True
backup.scan Performs a file verification scan or checks your file selection for deleted files. You can abbreviate this command as scan. True
backup.set Creates or deletes backup sets. You can abbreviate this command as set. True
backup.validate Validates the client cache for all or a given destination. True

connection.info

Returns the local IP address and ports used by the Code42 app.

The ports displayed are used for the following:

  • Port: Listens for computer-to-computer connections when a device is configured to accept inbound backups.
    Inbound backup is unsupported in version 5.x and later of the Code42 app.
  • UI Port: Deprecated in versions 5.x and later. In versions 4.x and earlier, binds to localhost for communication between Code42 service and Code42 app.
  • HTTP Port: Binds to localhost for communication between Code42 service and Code42 app.
False
custom

Deletes any existing Code42 app language and skin customizations.

True
deauthorize Signs out the current user, disables the Code42 service and requires you to sign in to resume. True
disconnect Disconnects the device or another device on the account using the Globally Unique ID.
For example: disconnect <GUID>
True
dump Prints the client's state and configuration to the logs for easy reading. If possible, always issue this command before sending the logs to support. False
exit Exits the Code42 app and turns off the background Code42 service. True
getlogs

Compiles the client logs into a compressed archive and displays the archives path.
For example: /Library/Logs/CrashPlan/cl_<GUID><hostname><date/timestamp>.zip

False
guid Displays device's current identity (Globally Unique ID). True
guid new Assigns a new, randomly generated device identity. True
guid <guid number> Reassigns the provided GUID from another device in your account to this device. True
help Lists available commands. False
java

Displays or sets the Java JVM maximum heap size. You can use this command to increase the amount of memory allocated to the Code42 service.

True
log

Controls logging levels. Available logging levels are:

  • info
  • debug
  • trace
  • default
True
pause.system Pauses the Code42 service for 24 hours. Add number of minutes to pause for a different period. For example, pause.system 30 pauses for 30 minutes. You can abbreviate this command as pause. True
pause.target
<destination GUID>
<time in minutes>
Pauses backup to a specific destination GUID for a specific number of minutes. For example, pause.target 43 30 pauses backup to the Code42 public cloud destination for 30 minutes. True
proxy Manages proxy settings and refresh PAC file. Available proxy commands are:
  • enable
  • disable
  • refresh
  • debug
  • test
True
reauthorize Reauthorizes with the server. You can abbreviate this command as rz. True
reconnect Reconnects the device or another device on the account using the Globally Unique ID.
For example: reconnect <GUID>
True
restart Exits the Code42 app and restart the Code42 service. True
resume.system Resumes the Code42 service. You can abbreviate this command as resume. True
send.log Sends logs to the server. False
shutdown Stops the Code42 service. You can abbreviate this command as stop or exit. True
version Lists version date and time string. True