@sheetbase/cli
Official CLI for working with Sheetbase.
Last updated 7 months ago by lamnhan .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @sheetbase/cli -g
SYNC missed versions from official npm registry.

Sheetbase CLI

Official CLI for working with Sheetbase.

Build Status Coverage Status NPM License Support me on Patreon PayPal Ask me anything

Install

npm install -g @sheetbase/cli

Additional steps

Enable Apps Script API

Go to https://script.google.com/home/usersettings, then enable the API.

Connect Apps Script in Drive

My Drive > Connect more apps > (search for Google Apps Script) > Connect

Install @google/clasp

Recommended for developing Google Apps Script, https://github.com/google/clasp.

npm install -g @google/clasp

Commands

The following commands provide many convinient methods to manage a Sheetbase project.

Note: Some of them require you to connect a Google account by sheetbase google login; project-related command needs to be run inside a Sheetbase project.

Google account

Project related

Backend specific

Frontend specific

Database related

Misc actions

Reference

Google

Manage Google accounts. Sub-commands: list|ls, connect|login|add, disconnect|logout|remove|rm, default.

  • subCommand: Supported sub-commands.
  • params: Command params, comma-separated.
  • -y,--yes: (connect) Agree on account connection.
  • -c,--creds: (connect) Save credential to .googlerc.json.
  • -f,--full-drive: (connect) Not recommended, grant full access to Drive.
  • -d,--default: (list) Show default account only.

Project

Project general tasks. Sub-commands: start, setup, configs, config, urls, url, info, build, deploy, preview.

  • subCommand: Supported sub-commands.
  • params: Command params, comma-separated.
  • -i,--install: (start) Install npm packages.
  • -x,--not-setup: (start) Do not run setup command.
  • -r,--fresh: (setup) Force re-setup.
  • -o,--open: (url) Open the url in browser.
  • -b,--backend: (build, deploy) Build or deploy backend only.
  • -f,--frontend: (build, deploy) Build or deploy frontend only.
  • -m,--message: (deploy) Deployment message.

Start

Start a new project. Proxy of project start

  • projectName: Name of the project, auto default.
  • resource: Resource to create the project with, default to theme blank_angular.
  • -i,--install: Install npm packages.
  • -x,--not-setup: Do not run setup command.

Setup

Setup the project. Proxy of project setup

  • -r,--fresh: Force re-setup.

Configs

View project configs. Proxy of project configs

Config

Config the project. Proxy of project config Sub-commands: list, update, import, export

  • subCommand: Optional supported sub-commands, default: list.
  • params: Command params, comma-separated.

Urls

View project URLs. Proxy of project urls

Url

View or open a project URL. Proxy of project url

  • name: Url name to view or open with.
  • -o,--open: Open the url in browser.

Info

Output project info. Proxy of project info

Build

Build the project. Proxy of project build

  • -b,--backend: Build backend only.
  • -f,--frontend: Build frontend only.

Deploy

Deploy the project. Proxy of project deploy

  • -b,--backend: Deploy backend only.
  • -f,--frontend: Deploy frontend only.
  • -m,--message: Deployment message.

Preview

Preview the project. Proxy of project preview

Backend

Run backend related commands. Sub-commands: build, push, deploy, install|i, uninstall|un, run, *.

  • subCommand: Optional supported sub-commands.
  • -m,--message: (deploy) Deployment message.

Frontend

Run frontend related commands. Sub-commands: build, deploy, prerender, install|i, uninstall|un, run, *.

  • subCommand: Optional supported sub-commands.
  • -m,--message: (deploy) Deployment message.
  • -f,--force: (prerender) Force prerender all or certain parts.
  • -o,--only: (prerender) Prerender only certain parts.

Db

Manage the database. Sub-commands: list|ls, create, import|im, export|ex

  • subCommand: Supported sub-commands.
  • params: Command params, comma-separated.
  • -i,--id: The database id.
  • -d,--data: (create) Create table with sample data.

Docs

Open the documentation.

Update

Check and install update.

  • -y,--yes: Install update when available.

Help

Display help.

  • -d,--detail: Detail help.

*

Any other command will run: npm run <cmd>.

Development

API Reference: https://sheetbase.github.io/cli/api/

Lisence

Sheetbase CLI is released under the Apache-2.0 license.

Current Tags

  • 1.3.0                                ...           latest (7 months ago)

31 Versions

  • 1.3.0                                ...           7 months ago
  • 1.2.0                                ...           7 months ago
  • 1.1.0                                ...           8 months ago
  • 1.0.0                                ...           a year ago
  • 1.0.0-rc.0                                ...           a year ago
  • 0.0.27                                ...           a year ago
  • 0.0.26                                ...           a year ago
  • 0.0.25                                ...           a year ago
  • 0.0.24                                ...           a year ago
  • 0.0.23                                ...           a year ago
  • 0.0.22                                ...           a year ago
  • 0.0.21                                ...           a year ago
  • 0.0.20                                ...           a year ago
  • 0.0.19                                ...           a year ago
  • 0.0.18                                ...           a year ago
  • 0.0.17                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           a year ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 32
Last Day 0
Last Week 0
Last Month 0
Dependencies (20)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |