##// END OF EJS Templates
config: synced with rc 4.18.X
config: synced with rc 4.18.X
marcink -
r268:acd4036c default
Show More
Name Size Modified Last Commit Author
pkgs
rhodecode_tools
.bumpversion.cfg Loading ...
.coveragerc Loading ...
.hgignore Loading ...
.hgtags Loading ...
.release.cfg Loading ...
CHANGES.rst Loading ...
CONTRIBUTORS.txt Loading ...
LICENSE.txt Loading ...
MANIFEST.in Loading ...
Makefile Loading ...
README.rst Loading ...
default.nix Loading ...
pip2nix.ini Loading ...
pytest.ini Loading ...
requirements.txt Loading ...
requirements_test.txt Loading ...
setup.cfg Loading ...
setup.py Loading ...
shell.nix Loading ...

CLI TOOLS for RhodeCode Enterprise

RhodeCode tools is a set of utilities to work with RhodeCode Enterprise system. It includes an API client, and a set of maintenance utilities for administrative tasks. It also includes a configuration tool for generating/updating RhodeCode Enterprise configuration files

rhodecode-tools - main CLI tool

call any of tools components:

Usage: rhodecode-tools [OPTIONS] COMMAND [ARGS]...

Options:
  -v, --verbose   Enables verbosity.
  --logfile PATH  Set logfile location for output. Defaults to stdout.
  --version       Show the version and exit.
  --help          Show this message and exit.

Commands:
  api             Calls RhodeCode API functions
  cleanup-gists   Removed expired or damaged gists.
  cleanup-repos   Remove archived repositories and/or...
  config          Create or Update RhodeCode Enterprise...
  example         Manage Instance Cache keys
  extensions      Generate RhodeCode extensions module.
  gist            Create GIST through CLI usage examples: #...
  index           Builds and manages Whoosh full text search...
  list-instances  List instances defined in .rhoderc config...
  setup-config    Create or Update RhodeCode Tools...

rhodecode-api - calling the API of RhodeCode Enterprise

example call for rhodecode-api:

rhodecode-api --instance-name=production1 get_user userid:marcink

Alternative you can specify the arguments with JSON parameters:

rhodecode-api --instance-name=production1 get_user '{"userid": "marcink"}'

rhodecode-gist - easy gist creation

example usage of rhodecode-gist CLI:

# creates config in user home
rhodecode-gist --apikey=<key> --apihost=https://secure.rhodecode.org --save-config

# creates a new public gist with description "my bashrc" and filename .bashrc
rhodecode-gist -f .bashrc -d 'my bashrc' < /home/marcink/.bashrc

# creates a private gist, with access valid for 5 minutes
rhodecode-gist -p --lifetime=5 < /home/marcink/.ssh/id_rsa

# creates a private gist with a filename server1.log (with automatic LOG lexer)
tail -n 300 | rhodecode-gist --private --filename 'server1.log'

# opens stdin from console, type and send gist !
rhodecode-gist -