Commit message | Age | Author | Refs | |||
---|---|---|---|---|---|---|
r271:8c7462de
|
|
1 | ||||
r270:df6ad3d0
|
|
0 | ||||
r269:70311899
|
|
0 | ||||
r268:acd4036c
|
|
0 | ||||
r267:72144088
|
|
0 | ||||
r266:bf773c17
|
|
0 | ||||
r265:56db00cb
|
|
0 | ||||
r264:aff22b4b
|
|
0 | ||||
r263:0f3b629b
|
|
0 | ||||
r262:c5d8f1e7
|
|
0 |
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 -