Skip to main content

Generate GitHub and Repos with One Command

Project description


A new way to get your source code onto Repl with one command.

What is repl-from-cli?

Repl-from-cli allows you to upload your source code to a temporary GitHub repository and then allows you to clone it to and either delete or save the repo on your GitHub. You basically get to hit 2 birds with 1 stone.

How does it work?

This tool uses the GitHub API through PyGithub and the git command line tool. It uses a Python program to create and pull repositories on GitHub to your local directory, push to remote, pull to, and then either delete the repo, or save it! You'll need a few things to get started.


Getting Started

To start, first make sure you have git the command line tool installed. If you are using GitHub you most likely have it installed but if you don't find out how here.

Either Run:

pip3 install repl_from_cli


# After pulling this repo and going into the directory:
python3 install

To install the repl-from-cli command.

The tool pulls from ~/.replitcli/config for configuration values. To change your GitHub token remove the config file there. This will run the startup wizard again and allow you setup your config.


Run repl-from-cli inside any directory you'd like to upload to It will make sure you are logged into repl before creating the repository. After it creates the repo on your github it will create a local git repo in the directory and push to the GitHub repo. If you want to hide files you should make a .gitignore prior to running this command. Also if it already has a GitHub repo simply use the URL API provides (ex.<Username>/<Repo Name>).

The tool will open up in your default browser. Make sure you are logged into on it.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repl-run-cli-1.0.1.tar.gz (4.5 kB view hashes)

Uploaded source

Built Distribution

repl_run_cli-1.0.1-py3-none-any.whl (5.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page