LogoLogo
What's New?Connect Agent ReleasesBook a DemoPricing
  • Documentation
  • Developers
  • Administration
  • OVERVIEW
    • JFrog Connect Overview
      • Architecture Overview
        • Connect Agent
        • Connect & JFrog Platform
      • Plan Your Update Strategy
        • Software Update Objectives & Concepts
        • Software Update Process & Procedures
  • Get Started
    • Create JFrog Connect Account
    • Log in to JFrog Connect
    • Network Requirements
    • Register Device
      • Device Registration Troubleshooting
  • Fleet Management
    • Register Devices at Scale
      • Freeze Image on Device
      • Build Image with Agent
    • Register & Update Device at Once
    • Organize Your Fleet
      • Create Project
      • Move Device between Projects
      • Create Groups
        • Add Device to Group
        • Add Many Devices to Group
        • Change Group Name
        • Delete Group
      • Tag Devices
        • Remove a Tag
  • Devices
    • Fleet Overview
      • Filter Devices
      • Locate Devices
    • Device Details
      • Delete a Device
      • Block Updates with Update Trigger
    • Update Connect Agent
    • Delete Many Devices
  • Deployment
    • Create Update Flow
      • Actions
        • Run Command
        • Run Script
        • Deploy File
        • Deploy Docker
          • Use Docker Image
          • Use Docker Compose
          • Get Artifactory Parameters
        • Clone Git Repository
        • Download Artifact
          • Get Artifactory Path
        • Download Release Bundle
          • Get Artifactory Parameters for Release Bundle
        • Update Image
        • Install Debian Package
          • Get Artifactory Parameters for Debian
      • Use Update Parameters
      • On Failure & Rollback
      • Vulnerability Scans
      • Sample Use Case: Build Update Flow for Reuse
    • Deploy Software
      • Set Application & Version
      • Set Alert upon Failure
      • Set Phased Rollout
      • View Deployment Progress
        • Detailed Deployment Information
        • Abort a Deployment
      • Deploy in Groups
      • Sample Use Case: Deploy Docker Images to Devices
  • Tools
    • Remote Tools
      • Use Terminal
        • Terminal Troubleshooting
      • Open Port Tunnel Session
        • Access with VNC
        • Connect with SSH
        • Access Device Web Applications
      • Run Commands Remotely
        • Run Command as Non-Root User
      • Get Device Files (Fetch Files)
    • Alerts
      • Create Channel
      • Set Webhook
    • Monitor
      • Resource Monitor
      • Process Monitor
    • Connect Server Status
  • Releases
    • What's New?
    • Connect Agent Release Notes
Powered by GitBook
On this page
  • Enter and Run a Command
  • Executed Commands
  • Run a Saved Command
  • Add a New Command
  • What’s Next?

Was this helpful?

Export as PDF
  1. Tools
  2. Remote Tools

Run Commands Remotely

With JFrog Connect, you can run a command remotely on one or multiple edge devices. View the command output and save the command to use again later.

PreviousAccess Device Web ApplicationsNextRun Command as Non-Root User

Last updated 6 months ago

Was this helpful?

In JFrog Connect, the Command Runner tool provides a simple solution for running commands remotely on your Linux edge devices.

Connect provides several convenient ways to run commands on your edge devices.

  • If you just want to run a single command remotely on a single device, you can do this quickly on the of the Devices page.

  • If you want to run several commands in succession, or run a command along with other operations on the edge device, create an that uses the action block.

  • If you want to run a single command remotely on multiple devices, you can do it using the Command Runner tool. This page describes how to create and run commands with Command Runner.

You can create Bash commands, run them on devices you select, and save the commands for later use. After running a command, you will be able to view its output.

By default, Connect runs the commands on your edge device as a Linux root user. If you want the commands to run as non-root, see .

Enter and Run a Command

To enter and run a command, do the following:

  1. Go to Remote Tools/Command Runner in the left menu and enter a Bash command in the Command field. Click Run Command.

  1. Using groups and/or additional filters, select the device(s) to receive the command.

  1. View the number of devices affected by the filter you applied. If this does not look right, you can go back and reset your device filter. Once you are satisfied with the filter applied, run the command.

Executed Commands

After you have run a command, you can scroll down the Command Runner page to see the Executed Commands. For each command, the table shows a separate row for each device that received the command.

To see the full output of the command on a specific device, click View Output on the right side of the table. A popup with the output information like the example below will appear.

Run a Saved Command

Connect comes with a number of commands ready to use. If you want to use one of these commands or a command that you have added and saved, do the following:

  1. Go to Remote Tools/Command Runner in the left menu. Find the command in the list of commands and click the green arrow. If you don’t see the command in the list displayed, use the Search to find the command.

  2. Select the groups and/or filters of the device(s) to receive the command and run the command.

Add a New Command

To add a new Bash command, do the following:

  1. Go to Remote Commands and click Add New Command.

  1. Enter a name that will help you remember the command, enter the Bash command, and save.

The command will appear in the list of Saved Commands, and you can reuse it whenever you need it. The command will also be available in the list of Control Commands on the details panel of the Devices page.

What’s Next?

You don’t want to run commands on your device as root user? Learn how to .

Run Commands as a Non-root User
Details Panel
update flow
Run Command
Run Commands as Non-root User