@saltcorn/cli
Saltcorn command line interface
Last updated 4 days ago by tanielsen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @saltcorn/cli 
SYNC missed versions from official npm registry.

@saltcorn/cli

Saltcorn command line interface

oclif Version License

Usage

$ npm install -g @saltcorn/cli
$ saltcorn COMMAND
running command...
$ saltcorn (-v|--version|version)
@saltcorn/cli/0.0.6 linux-x64 node-v14.3.0
$ saltcorn --help [COMMAND]
USAGE
  $ saltcorn COMMAND
...

Commands

saltcorn backup

Backup the database to a file

USAGE
  $ saltcorn backup

OPTIONS
  -o, --output=output  [default: 20200527-saltcorn-tomn-VirtualBox.sqlc] output filename

See code: src/commands/backup.js

saltcorn create-user

Create a new user

USAGE
  $ saltcorn create-user

OPTIONS
  -a, --admin  Admin user

See code: src/commands/create-user.js

saltcorn fixtures

Load fixtures for testing

USAGE
  $ saltcorn fixtures

OPTIONS
  -r, --reset  Also reset schema

DESCRIPTION
  ...
  This manual step it is never required for users and rarely required for developers

See code: src/commands/fixtures.js

saltcorn help [COMMAND]

display help for saltcorn

USAGE
  $ saltcorn help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

saltcorn make-migration

Create a new blank migration file

USAGE
  $ saltcorn make-migration

DESCRIPTION
  ...
  These migrations track internal structures to the database. You should not
  normally need to run this unless you are a developer.

See code: src/commands/make-migration.js

saltcorn migrate

Run migrations

USAGE
  $ saltcorn migrate

DESCRIPTION
  ...
  This is not normally required as migrations will be run when the server starts. 
  However, this command may be useful if you are running multiple application 
  servers and need to control when the migrations are run.

See code: src/commands/migrate.js

saltcorn reset-schema

Reset the database

USAGE
  $ saltcorn reset-schema

OPTIONS
  -f, --force  force

DESCRIPTION
  ...
  This will delete all existing information

See code: src/commands/reset-schema.js

saltcorn restore FILE

Restore a previously backed up database from a file

USAGE
  $ saltcorn restore FILE

ARGUMENTS
  FILE  backup file to restore

See code: src/commands/restore.js

saltcorn run-tests [PACKAGE]

Run test suites

USAGE
  $ saltcorn run-tests [PACKAGE]

ARGUMENTS
  PACKAGE  which package to run tests for

OPTIONS
  -c, --coverage  Coverage
  -f, --forever   Run forever till failure

See code: src/commands/run-tests.js

saltcorn serve

Start the Saltcorn server

USAGE
  $ saltcorn serve

OPTIONS
  -p, --port=port  [default: 3000] port

See code: src/commands/serve.js

saltcorn setup

Set up a new system

USAGE
  $ saltcorn setup

OPTIONS
  -c, --coverage  Coverage

DESCRIPTION
  ...
  This will attempt to install or connect a database, and set up a 
  configuration file

See code: src/commands/setup.js

saltcorn test-plugin PATH

Describe the command here

USAGE
  $ saltcorn test-plugin PATH

ARGUMENTS
  PATH  path to plugin package

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/test-plugin.js

Current Tags

  • 0.0.6                                ...           latest (4 days ago)

5 Versions

  • 0.0.6                                ...           4 days ago
  • 0.0.5                                ...           6 days ago
  • 0.0.4                                ...           7 days ago
  • 0.0.3                                ...           7 days ago
  • 0.0.2                                ...           8 days ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 37
Last Month 44
Dependencies (11)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |