Change Project, Many Devices
Use a JFrog Connect update flow to change the project of many devices with a single command.
Last updated
Use a JFrog Connect update flow to change the project of many devices with a single command.
Last updated
You can use this procedure as a bulk action to change the project of multiple devices or a single device. When you switch the devices to a different project, JFrog Connect will install the latest version of the Connect Agent on the devices.
Tip: Moving a device between projects will re-register the device to the new project. Information about the previous device, including Update Flow history and device names, will be lost in the process, and the previous device will appear as offline in the previous project.
In this part of the procedure, you will create a Run Command update flow with the required command to switch your devices to a different project. Do the following:
Copy the command below to your clipboard.
Go to Deployment in the left menu and create a new update flow that has the Run Command action block. Enter a Flow Name for the update flow.
In the action block configuration panel, enter a name for the action block and paste the command in the Command box.
In the command, substitute <user_token>
with your user token. You can get this from the Account tab in the Settings page.
Substitute <device_token>
with the name the devices should have in the new project. The command should now look like the example below:
Save the configuration and create the update flow.
In this part of the procedure, you will use the deployment filters to choose the relevant devices and deploy the update flow that switches the devices to a different project. Do the following:
Go to the Update Flows tab and click New Deployment for the update flow you just created.
Select the devices to change. Your selection can include specific groups in the account and any of the additional filters, as shown in the example below.
Under Deployment Parameters, enter the value for project_name
. This is the name of the new project for the device.
You can set any of the other deployment options, such as a schedule or an alert. Create the deployment. To view the device in the new project, use the device filter to choose the relevant project name.
Tip: When this deployment is successful, you will not be able to see the Success message in the deployment details.
This update flow is reusable. If you need to change more devices, you can deploy the same update flow. Each time you just change the filter for the devices to be changed and enter the relevant project_name
when prompted.
Learn how to change the project without updating Connect Agent on the device.