enduraweb
v0.1.0
Published
Deploy to EnduraWeb from the command line
Maintainers
Readme
enduraweb
Deploy to EnduraWeb from the command line.
Install
npm install -g enduraweb(Before this is published, run it from the repo with npm run dev --workspace=enduraweb -- <command>, or npm run build:cli once and use node packages/cli/dist/index.js.)
Usage
# 1. Authenticate — paste a token created from Dashboard → Security → API tokens
enduraweb login
# 2. From your project's root:
enduraweb init # create a new EnduraWeb project and link this folder to it
# — or, for an existing project —
enduraweb link # link this folder to one of your existing projects
# 3. Ship a new version any time
enduraweb deploy # aliases: enduraweb upload, enduraweb newbuildEvery deploy zips the current folder, uploads it, and runs it through the
same sandboxed install/build pipeline as a dashboard upload — install
scripts are blocked (--ignore-scripts) the same way, and each upload
becomes its own numbered build automatically, exactly like a new commit.
Other commands:
enduraweb projects # list your projects and their status
enduraweb whoami # show which account you're logged in as
enduraweb logout # forget the stored tokenWhat gets uploaded
enduraweb deploy reads .gitignore if present (so what deploys matches
what's version-controlled) plus an optional .endurawebignore for anything
that should be excluded from a deploy specifically — e.g. a committed
dist/ you don't want re-uploaded on top of a fresh server-side build.
node_modules, .git, and .enduraweb are always excluded regardless of
either file, since dependencies are reinstalled server-side.
.endurawebignore uses the same syntax as .gitignore:
# .endurawebignore
*.local.json
tmp/Config
enduraweb loginwrites~/.enduraweb/config.json(token + API URL), created with0600permissions.enduraweb init/enduraweb linkwrite.enduraweb/project.jsonin the current folder (which project it deploys to) and add.enduraweb/to that folder's.gitignoreif it's a git repo.- Self-hosting EnduraWeb elsewhere? Point the CLI at it with
enduraweb login --api-url https://your-api-host, or setENDURAWEB_API_URLin the environment.
