📦
RRPM
RRPM
RRPM
  • Introduction
  • Completions
  • Managing Remote Repositories
  • Managing and Creating Projects
  • Viewing and Regenerating the Config
  • The config.toml file
  • Extensions
    • Overview
    • Errors
  • Presets
    • The API
  • Hooks
    • The API
Powered by GitBook
On this page
  • Cloning Remote Repositories
  • Listing Cloned Repositories
Edit on GitHub

Managing Remote Repositories

Managing remote repositories with RRPM

PreviousCompletionsNextManaging and Creating Projects

Last updated 3 years ago

Cloning Remote Repositories

Remote Git repositories such as those hosted on GitHub or GitLab can be cloned by using the rrpm get command as shown below.

$ python -m rrpm get github.com/pybash1/rrpm # notice that the https:// and .git are optional.
Fetching GitHub Repository
Successfully cloned repository in github.com/pybash1/rrpm

The above command clones the pybash1/rrpm repository to the directory %USERPROFILE%\Projects on Windows and ~/Projects on Unix by default. this can be changed in the config.toml file.

Usage

Usage: python -m rrpm get [OPTIONS] URL

  Clone a remote repository to directory specified in config

Arguments:
  URL  [required]

Options:
  --help  Show this message and exit.

Listing Cloned Repositories

The rrpm list command can be used to display a tree of the of the projects cloned to the root directory as shown below

$ python -m rrpm list
C:\Users\mitra\Projects
  |- github.com
      |- CutCode-org
          |- CutCode-svelte
      |- github
          |- gitignore
      |- pastegram
          |- backend
      |- pybash1
          |- pm
          |- portfolio
          |- pybash1
          |- rrpm

The root directory is as per the config.toml file.

Usage

Usage: python -m rrpm list [OPTIONS]

  List all cloned repositories and generated projects

Options:
  --help  Show this message and exit.
The config.toml file