Generate GitHub and Repl.it Repos with One Command
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 repl.it 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 repl.it, and then either delete the repo, or save it! You'll need a few things to get started.
- Python 3.5+
- A GitHub Account
- A GitHub Personal Access Token (How Do I Get Mine?) Make sure to give it Repo, User, and Delete Permissions
- A repl.it Account
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.
pip3 install repl-from-cli
# After pulling this repo and going into the directory: python3 setup.py install
To install the
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.
repl-from-cli inside any directory you'd like to upload to repl.it. 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, it simply uses the GitHub repo API repl.it offers.
The tool will open up
repl.it in your default browser. Make sure you are logged into repl.it on it.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size repl_from_cli-1.0.2-py3-none-any.whl (6.0 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size repl-from-cli-1.0.2.tar.gz (4.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for repl_from_cli-1.0.2-py3-none-any.whl