RhodeCode Tools OverviewΒΆ

To install RhodeCode Tools correctly, see the installation steps covered in RhodeCode Tools Installation, and Configure the .rhoderc File.

Once RhodeCode Tools is installed, and the /home/user/.rhoderc file is configured you can then use RhodeCode Tools on each RhodeCode Enterprise instance to carry out admin tasks. Use the following example to configure that file, and once configured see the RhodeCode Tools CLI for more details.

Note

RhodeCode Tools require Python 2.7 to run.

# Get the status of each instance you wish to use with Tools
(venv)brian@ubuntu:~$ rccontrol status

 - NAME: momentum-1
 - STATUS: RUNNING
 - TYPE: Momentum
 - VERSION: 3.0.0-nightly-momentum
 - URL: http://127.0.0.1:10003

 - NAME: momentum-3
 - STATUS: RUNNING
 - TYPE: Momentum
 - VERSION: 3.0.0-nightly-momentum
 - URL: http://127.0.0.1:10007

Example /home/user/.rhoderc file.

# Configure the .rhoderc file for each instance
# API keys found in your instance
[instance:enterprise-1]
api_host = http://127.0.0.1:10003/
api_key = 91fdbdc257289c46633ef5aab274412911de1ba9
repo_dir = /home/brian/repos

[instance:enterprise-3]
api_host = http://127.0.0.1:10007/
api_key = 5a925f65438d29f8d6ced8ab8e8c3d305998d1d9
repo_dir = /home/brian/testing-repos/

Example usage of RhodeCode Tools after RhodeCode Enterprise 3.5.0. From this version onwards RhodeCode Tools is packaged with RhodeCode Enterprise by default.

$ .rccontrol/enterprise-4/profile/bin/rhodecode-api --instance-name=enterprise-4 get_ip                                                                                                                                                                                                                                                                                                                                                                     [11:56:57 on 05/10/2018]

{
  "error": null,
  "id": 1000,
  "result": {
    "server_ip_addr": "1.2.3.4",
    "user_ips": []
  }
}