The command line interface to POP.co, the world's easiest to way to get your idea online.
You will need to have an account with POP in order to use this utility.
Signup is free and you will get a free webpage and custom email address, live on the domain name of your choosing.
Learn more at POP.co
With npm do:
npm install -g popcli
popcli [options] [service] [command.. args..]
-u, --user=ARG POP username
-p, --pass=ARG POP password
-d, --domain=ARG Domain name to manipulate (not always needed)
-h, --help
- Simple Page (web page builder)
- Upload a file or contents of a folder to use as your simple page.
- Domains Management
- List domains in your account.
More services will be available in future updates, such as ability to register an account directly from popcli, check domain availability, etc...
To upload the contents of your files/
directory to use as your Simple Page:
Supported file types: gif, jpg, jpeg, jpe, png, ico, svg, bmp, pdf, doc, docx, csv, txt, js, css, htm, html, xml, xls, xlsx, json.
popcli -u=tom@pop.co -p=xyzzy -d=q4a.co simplepage upload files/
For a full list of options and services that can be controlled, please see the help screen
by typing popcli -h
.
To see a list of all domains tied to your POP account
popcli -u=tom@pop.co -p=xyzzy -d=q4a.co domains list
If you don't want to constantly type your credentials you can create a .popclirc
file and put your credentials in there:
user=xxx@domain.tld
pass=qwerty
domain=domain.tld
Any flags you pass in the command line will override whatever it's in the config. e.g.
popcli -d=otherdomain.tld ...
The above will use otherdomain.tld
rather than domain.tld
defined in the config.
Pro Tip:
You can also put .popclirc
file in your $HOME
directory and then just change whatever options you want on a per project/folder basis.
Handy when you have multiple domains.
Need help? Confused and have no idea what to do or what this is? Contact us don't be shy.
Licensed under MIT