For the latest Agents CLI information, see the Agents CLI topic.
The repo agent is a service that you deploy and operate in the local network or VPC and therefore, the controller can securely connect to the artifact repositories.
The table below describes the list of actions that can be performed on "repository" using the RCTL CLI Utility.
Use this command to retrieve the list of agents in the configured Project. The name of the agents, the type of agent and health status are returned. An illustrative example is shown below where RCTL retrieves the list of agents in the project "Demo".
./rctl get agent --project Demo
+---------------+--------------+---------------+------------------------------+
| AGENT NAME | TYPE | HEALTH STATUS | CREATE AT |
+---------------+--------------+---------------+------------------------------+
| dev | ClusterAgent | HEALTHY | Thu Jan 7 22:37:16 UTC 2021 |
+---------------+--------------+---------------+------------------------------+
| test | ClusterAgent | HEALTHY | Sat Mar 6 08:31:48 UTC 2021 |
+---------------+--------------+---------------+------------------------------+
| demo | ClusterAgent | HEALTHY | Sat Mar 6 09:00:56 UTC 2021 |
+---------------+--------------+---------------+------------------------------+
Use this command to retrieve a specific agent's details in the configured project.
./rctl get agent <agent-name>
Below is the illustrative example for the agent called "demo"
./rctl get agent demo
+---------------+--------------+---------------+------------------------------+
| AGENT NAME | TYPE | HEALTH STATUS | CREATE AT |
+---------------+--------------+---------------+------------------------------+
| demo | ClusterAgent | HEALTHY | Sat Mar 6 09:00:56 UTC 2021 |
+---------------+--------------+---------------+------------------------------+
Or you can use below command to get more information of the agent in json or yaml format