Official CLI for working with Sheetbase.
Official CLI for working with Sheetbase.
sheetbase backend|b [subCommand] [params...] --message [value]
sheetbase config|c [subCommand] [params...]
sheetbase database|db [subCommand] [params...] --id [value] --remote --data
sheetbase docs|d
sheetbase frontend|f [subCommand] [params...] --message [value] --only [value] --force [value]
sheetbase google|gg [subCommand] [params...] --yes --creds --full-drive
sheetbase new|start|n <name> [source] --skip-install --skip-setup
sheetbase project|p [subCommand] [params...] --fresh --open --message [value]
sheetbase update|u --yes --self
sheetbase help|h --detail
sheetbase *
Backend related tasks.
Usage:
sheetbase backend [subCommand] [params...] --message [value]
sheetbase b [subCommand] [params...] --message [value]
Sub-commands:
Build the backend.
Usage:
sheetbase backend build
Proxy use:
sheetbase backend-build
Deploy the backend.
Usage:
sheetbase backend deploy --message [value]
Proxy use:
sheetbase backend-deploy --message [value]
Options:
-m, --message [value]
: Deployment message.
Install backend dependencies.
Usage:
sheetbase backend install
sheetbase backend i
Proxy use:
sheetbase backend-install
Lint the backend.
Usage:
sheetbase backend lint
Proxy use:
sheetbase backend-lint
Push the backend.
Usage:
sheetbase backend push
Proxy use:
sheetbase backend-push
Run backend scripts.
Usage:
sheetbase backend run
Proxy use:
sheetbase backend-run
Test the backend.
Usage:
sheetbase backend test
Proxy use:
sheetbase backend-test
Uninstall backend dependencies.
Usage:
sheetbase backend uninstall
sheetbase backend un
Proxy use:
sheetbase backend-uninstall
Config the project.
Usage:
sheetbase config [subCommand] [params...]
sheetbase c [subCommand] [params...]
Sub-commands:
Export configurations.
Usage:
sheetbase config export
sheetbase config ex
Proxy use:
sheetbase config-export
Import configurations.
Usage:
sheetbase config import <path>
sheetbase config im <path>
Proxy use:
sheetbase config-import <path>
Parameters:
<path>
: Path to .json file.
List configurations.
Usage:
sheetbase config list
sheetbase config ls
Proxy use:
sheetbase config-list
Update configurations.
Usage:
sheetbase config update [input...]
sheetbase config set [input...]
Proxy use:
sheetbase config-update [input...]
Parameters:
[input...]
: List of input.
Manage the database.
Usage:
sheetbase database [subCommand] [params...] --id [value] --remote --data
sheetbase db [subCommand] [params...] --id [value] --remote --data
Sub-commands:
Create tables in the database.
Usage:
sheetbase database create [input...] --id [value] --data
sheetbase database new [input...] --id [value] --data
Proxy use:
sheetbase database-create [input...] --id [value] --data
Parameters:
[input...]
: List of table names, ex.: categories posts ...
Options:
-i, --id [value]
: Custom database id.-d, --data
: Create table with sample data.
Export data from the database.
Usage:
sheetbase database export <table> [dir] --id [value]
sheetbase database download <table> [dir] --id [value]
sheetbase database ex <table> [dir] --id [value]
Proxy use:
sheetbase database-export <table> [dir] --id [value]
Parameters:
<table>
: The table name.[dir]
: Custom export folder.
Options:
-i, --id [value]
: Custom database id.
Import data to the database.
Usage:
sheetbase database import <table> [source] --id [value]
sheetbase database upload <table> [source] --id [value]
sheetbase database im <table> [source] --id [value]
Proxy use:
sheetbase database-import <table> [source] --id [value]
Parameters:
<table>
: The table name.[source]
: Source to the data or default.
Options:
-i, --id [value]
: Custom database id.
List local or remote models.
Usage:
sheetbase database list --id [value] --remote
sheetbase database show --id [value] --remote
sheetbase database ls --id [value] --remote
Proxy use:
sheetbase database-list --id [value] --remote
Options:
-i, --id [value]
: Custom database id.-r, --remote
: List remote tables.
Open documentation.
Usage:
sheetbase docs
sheetbase d
Frontend related tasks.
Usage:
sheetbase frontend [subCommand] [params...] --message [value] --only [value] --force [value]
sheetbase f [subCommand] [params...] --message [value] --only [value] --force [value]
Sub-commands:
Build the frontend.
Usage:
sheetbase frontend build
Proxy use:
sheetbase frontend-build
Deploy the frontend.
Usage:
sheetbase frontend deploy --message [value]
Proxy use:
sheetbase frontend-deploy --message [value]
Options:
-m, --message [value]
: Deployment message.
Install frontend dependencies.
Usage:
sheetbase frontend install
sheetbase frontend i
Proxy use:
sheetbase frontend-install
Lint the frontend.
Usage:
sheetbase frontend lint
Proxy use:
sheetbase frontend-lint
Prerender the frontend.
Usage:
sheetbase frontend prerender --only [value] --force [value]
Proxy use:
sheetbase frontend-prerender --only [value] --force [value]
Options:
-o, --only [value]
: Prerender only certain parts.-f, --force [value]
: Force prerender all or certain parts.
Run frontend scripts.
Usage:
sheetbase frontend run
Proxy use:
sheetbase frontend-run
Test the frontend.
Usage:
sheetbase frontend test
Proxy use:
sheetbase frontend-test
Uninstall frontend dependencies.
Usage:
sheetbase frontend uninstall
sheetbase frontend un
Proxy use:
sheetbase frontend-uninstall
Manage Google accounts.
Usage:
sheetbase google [subCommand] [params...] --yes --creds --full-drive
sheetbase gg [subCommand] [params...] --yes --creds --full-drive
Sub-commands:
Change the active account.
Usage:
sheetbase google active <id>
sheetbase google change <id>
sheetbase google at <id>
Proxy use:
sheetbase google-active <id>
Parameters:
<id>
: The Google account id.
Connect an account.
Usage:
sheetbase google connect --yes --creds --full-drive
sheetbase google login --yes --creds --full-drive
sheetbase google cn --yes --creds --full-drive
Proxy use:
sheetbase google-connect --yes --creds --full-drive
Options:
-y, --yes
: Agree on account connection.-c, --creds
: Save credential to .googlerc.json.-f, --full-drive
: Not recommended, full access to Drive.
Disconnect connected accounts.
Usage:
sheetbase google disconnect <input>
sheetbase google logout <input>
sheetbase google dc <input>
Proxy use:
sheetbase google-disconnect <input>
Parameters:
<input>
: Disconnection input: {id}, all, active, local.
List connected accounts.
Usage:
sheetbase google list
sheetbase google show
sheetbase google ls
Proxy use:
sheetbase google-list
Star a new project.
Usage:
sheetbase new <name> [source] --skip-install --skip-setup
sheetbase start <name> [source] --skip-install --skip-setup
sheetbase n <name> [source] --skip-install --skip-setup
Parameters:
<name>
: The project name.[source]
: The custom source.
Options:
-i, --skip-install
: Skip installing npm packages.-s, --skip-setup
: Skip project setup.
Project related tasks.
Usage:
sheetbase project [subCommand] [params...] --fresh --open --message [value]
sheetbase p [subCommand] [params...] --fresh --open --message [value]
Sub-commands:
Build the project.
Usage:
sheetbase project build
Proxy use:
sheetbase project-build
sheetbase build
View project configs.
Usage:
sheetbase project configs
Proxy use:
sheetbase project-configs
sheetbase configs
Deploy the project.
Usage:
sheetbase project deploy --message [value]
Proxy use:
sheetbase project-deploy --message [value]
sheetbase deploy --message [value]
Options:
-m, --message [value]
: Deployment message.
Output project info.
Usage:
sheetbase project info
Proxy use:
sheetbase project-info
sheetbase info
Lint the project.
Usage:
sheetbase project lint
Proxy use:
sheetbase project-lint
sheetbase lint
Preview the project.
Usage:
sheetbase project preview
Proxy use:
sheetbase project-preview
sheetbase preview
Setup the project.
Usage:
sheetbase project setup --fresh
Proxy use:
sheetbase project-setup --fresh
sheetbase setup --fresh
Options:
-r, --fresh
: Force re-setup.
Test the project.
Usage:
sheetbase project test
Proxy use:
sheetbase project-test
sheetbase test
View or open a project URL.
Usage:
sheetbase project url <name> --open
Proxy use:
sheetbase project-url <name> --open
sheetbase url <name> --open
Parameters:
<name>
: The url name.
Options:
-o, --open
: Open the url in browser.
View project URLs.
Usage:
sheetbase project urls
Proxy use:
sheetbase project-urls
sheetbase urls
Update the CLI to the latest version.
Usage:
sheetbase update --yes --self
sheetbase u --yes --self
Options:
-y, --yes
: Do update now.-s, --self
: Update the CLI itself.
Display help.
Usage:
sheetbase help --detail
sheetbase h --detail
Options:
-d, --detail
: Show detail help.
Any other command will run: npm run <cmd>
.
Usage:
sheetbase <cmd>
@sheetbase/cli is released under the MIT license.