• Stars
    star
    2,861
  • Rank 15,868 (Top 0.4 %)
  • Language
    JavaScript
  • Created over 10 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI for the surge.sh CDN

surge(.sh)

Publish web apps to a CDN with a single command and no setup required.

NPM

This is the CLI client for the surge.sh hosted service. Itโ€™s what gets installed when you run npm install -g surge.

This CLI library manages access tokens locally and handles the upload and subsequent reporting when you publish a project using surge.

Usage

Itโ€™s easier to show than tell so letโ€™s get to it! The following command will deploy the current working directory to the surge servers where the application will be available at sintaxi.com.

$ surge ./ sintaxi.com

Run surge --help to see the following overview of the surge command...


  Surge โ€“ Single-command web publishing. (v0.20.3)

  Usage:
    surge <project> <domain>

  Options:
    -a, --add           adds user to list of collaborators (email address)
    -r, --remove        removes user from list of collaborators (email address)
    -V, --version       show the version number
    -h, --help          show this help message

  Additional commands:
    surge whoami        show who you are logged in as
    surge logout        expire local token
    surge login         only performs authentication step
    surge list          list all domains you have access to
    surge teardown      tear down a published project
    surge plan          set account plan

  Guides:
    Getting started     surge.sh/help/getting-started-with-surge
    Custom domains      surge.sh/help/adding-a-custom-domain
    Additional help     surge.sh/help

  When in doubt, run surge from within your project directory.

CDN Features

  • Custom CNAME & custom SSL
  • Fallback 404.html pages
  • HTML5 mode 200.html pages
  • Stays out of gits way
  • Supports clean URLs && trailing slashes /
  • Implicit signup
  • Supports CNAME files

If youโ€™re using tools like Grunt, Gulp, or a static site generator like Jekyll, your files are output into a compile directory like _site/, build/, or www/. From the root of your project, pass Surge the path to this directory to upload your compiled assets.

surge www

You may also add this directory to your .gitignore to keep your compiled assets out of your Git history.

More Repositories

1

harp

Static Web Server/Generator/Bundler
JavaScript
4,996
star
2

phonegap

access core functions on Android, iPhone and Blackberry using JavaScript
JavaScript
2,104
star
3

dbox

NodeJS SDK for Dropbox API (THIS LIBRARY IS OBSOLETE!!)
JavaScript
513
star
4

terraform

Asset pipeline for the Harp Web Server.
JavaScript
102
star
5

learn-ruby

files for learning ruby. quickly.
Ruby
79
star
6

nhl

a screen scraping nhl.com api (this project was created as a demonstration)
JavaScript
70
star
7

rolodex

Node user management system using redis
JavaScript
42
star
8

phonegap-examples

open source phonegap examples go here
JavaScript
33
star
9

thug

ORM replacement that provides a functional style object filtration and validation system.
JavaScript
20
star
10

pmpknpi

A RESTful Blog API written in Merb
JavaScript
19
star
11

node-redis-tag

Node tag system using redis.
JavaScript
18
star
12

waterfront

A generic message broker system on top of ZeroMQ with discovery patterns for push/pull, req/rep, pub/sub.
JavaScript
18
star
13

git-harvest

github hook for posting time to harvest
Ruby
16
star
14

node-redis-authorization

Node authorization system built on redis.
JavaScript
12
star
15

phonegap-docs

hand written docs for phonegap and xui
JavaScript
11
star
16

statuscodedrinkinggame

drinking game API built on Smart Platform
JavaScript
8
star
17

smart-messagepub

send AIM, Google Chat, Email, Twitter, Phone, and SMS on the smart platform.
JavaScript
7
star
18

hb-browserify

a boilerplate project for using harp with browserify.
HTML
7
star
19

alluvium

time-series analytics for static web sites.
JavaScript
6
star
20

pressman

email templating system
JavaScript
6
star
21

merb_can_filter

merb plugin for filtering Markdown or Textile to HTML (also does syntax highlighting via coderay).
Ruby
5
star
22

gambit

A minimal mobile UX navigation library for html5 mobile web and cordova applications.
JavaScript
5
star
23

yonder

Redirects for front-end applications. Works on surge.sh.
JavaScript
5
star
24

very-old-phonegap-and-xuijs-websites

stumbled on this old repo late one night. decided to publish it.
JavaScript
5
star
25

refuze

A natural language job queue for doing things later. Built on Redis.
JavaScript
5
star
26

exhale

expiring token system for ephemeral tasks such as email verification and password reset
JavaScript
5
star
27

microplatform

JavaScript
4
star
28

smart-helpers

layout, form, and date helpers for Joyent Smart Platform
JavaScript
4
star
29

yoke

preprocessor for language agnostic concatenation
JavaScript
4
star
30

merb_bot_test

Quick and dirty spam protection using a math equation.
Ruby
3
star
31

nwo

another web publishing tool by sintaxi
JavaScript
3
star
32

aria

A client library for Aria API
JavaScript
3
star
33

merbums

Merb powered forum inspired by Beast
Ruby
3
star
34

hb-minimal

A minimal boilerplate for the Harp Application
3
star
35

urlinfo-server

a service for providing information on any given url
JavaScript
3
star
36

ru

dunno what this is
JavaScript
2
star
37

smart-platform

Joyent Smart Platform
Perl
2
star
38

node-timerange

returns start and end timestamps for YYYY-MM-DD, YYYY-MM, or YYYY
JavaScript
2
star
39

sintaxi.github.com

github can blog
JavaScript
2
star
40

start

CSS
2
star
41

surge-sdk

JavaScript SDK used by Surge.sh CLI
JavaScript
2
star
42

pwa

JavaScript
2
star
43

harp-boilerplates

CLI for searching the Harp Boilerplates registry.
JavaScript
1
star
44

vanjs.no.de

chat example using redis, socket.io, express
JavaScript
1
star
45

nhl-client

CSS
1
star
46

virtual-dom-starter

bare-bones virtual-dom starter using main-loop and browserify/watchify with npm run scripts
JavaScript
1
star
47

localci

test runner for front-end web projects
1
star
48

popp

command line tool to pluck the first line out of file
JavaScript
1
star
49

foxy

a simple proxy middle for CORS
JavaScript
1
star
50

cldflr

static publishing to surge.sh fronted by cloudflare
JavaScript
1
star
51

roller

an example on how to use rolodex
JavaScript
1
star