##// END OF EJS Templates
Show More
Commit message Age Author Refs
r271:8c7462de
Added tag v1.4.0 for changeset df6ad3d0172e
1
r270:df6ad3d0
release: Finish preparation for 1.4.0
0
r269:70311899
release: Merge default into stable for release preparation
0
r268:acd4036c
config: synced with rc 4.18.X
0
r267:72144088
dependencies: bumped requests to latest release amongs other libraries
0
r266:bf773c17
api: added support for exception tracker headers to report server-side error
0
r265:56db00cb
version: bumped release to 1.4.0
0
r264:aff22b4b
Added tag v1.3.0 for changeset 0f3b629be725
0
r263:0f3b629b
release: Finish preparation for 1.3.0
0
r262:c5d8f1e7
release: Merge default into stable for release preparation
0
< 1 2 3 4 5 6 7 .. 28 >

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 -