Coming soon- glitch CLI

glitch-cli

A CLI is being made which will allow you to manage your project properly, it will let you-

  • clear all files and start over
  • initialise as a node project
  • force stop the web server
  • get help on different topics
  • refresh the editor (a pretty obvious command, so it might not be added)

And much much more! If you want to help then send a PM!


github: https://github.com/17lwinn/glitch-cli
glitch: https://glitch.com/edit/#!/glitch-cli

I will release installation steps shortly!

6 Likes

Could you post a github link or any way to view the source?

project not ready yet, but i`m settung up a repo now!

if you want to help, then feel free!

@ihack2712 the github link is https://github.com/17lwinn/glitch-cli

it has only a README, which will tell you most of what it will soon contain (the repository)

Ideas for features:

  1. Throw the entire glitch project into a .zip
  2. Optionally upload a file to a temporary upload site where it can be downloaded be the user and then automatically deleted(there exist sites that do that)
  3. Upload a file to gist(glitch should have this)
  4. Setup a prettier file
  5. A new method to optimize storage by minifying libraries!
2 Likes

add github/gist push support
compress to ZIP
push to github and release glitch link

The project lives!

Next update- glitch add-ons!


Give your project neat new features with our add-ons! These allows you to install utilities and languages or even frameworks without sudo! This is based off the Workman package manager software I created a few months ago.

We will release a beta version with a way to install NVM (Node Version Manager)!. Mention me in a reply if you would like us to add a package to our registry!

1 Like

I think this should work for NVM:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash && export NVM_DIR=“$([ -z “${XDG_CONFIG_HOME-}” ] && printf %s “${HOME}/.nvm” || printf %s “${XDG_CONFIG_HOME}/nvm”)” && [ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm

from readme.md

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash

Running either of the above commands downloads a script and runs it. The script clones the nvm repository to ~/.nvm , and attempts to add the source lines from the snippet below to the correct profile file ( ~/.bash_profile , ~/.zshrc , ~/.profile , or ~/.bashrc ).
export NVM_DIR=“$([ -z “${XDG_CONFIG_HOME-}” ] && printf %s “${HOME}/.nvm” || printf %s “${XDG_CONFIG_HOME}/nvm”)”
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm

okay! good idea!

I believe in one of the projects we have a test drive of that…

You can do wget glitch-cli.glitch.me/cli.py for installation instructions

What about curl?

Edit:

wget http://glitch-cli.glitch.me/cli.py && echo 'alias glitch-cli="python3 glitch-cli.py"' > .bash_profile

echo $(curl https://glitch-cli.glitch.me/cli.py) > glitch-cli.py  && echo 'alias glitch-cli="python3 glitch-cli.py"' > .bash_profile

These also create .bash_profile with downloading glitch-cli

Both take forever because glitch-cli.glitch.me isn’t woken up yet.

1 Like

Yeah.__ i’ll have to try and make it static

On your dashboard (https://glitch.com/dashboard) you can find and hover over “glitch-cli” then click static.

???

don’t think that;s how it works lol :rofl:

2 Likes

oh i thought you meant archiving the project ok

2 Likes