@fab/cli
The CLI entry-point for the FAB ecosystem
Last updated 3 days ago by geelen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @fab/cli 
SYNC missed versions from official npm registry.

FAB Command Line Interface

fab: the CLI entry-point for the FAB ecosystem

oclif Version Downloads/week License

Usage

$ npm install -g @fab/cli
$ fab COMMAND
running command...
$ fab (-v|--version|version)
@fab/cli/0.0.7-alpha.8 darwin-x64 node-v13.6.0
$ fab --help [COMMAND]
USAGE
  $ fab COMMAND
...

Commands

fab build

Generate a FAB given the config (usually in fab.config.json5)

USAGE
  $ fab build

OPTIONS
  -c, --config=config  [default: fab.config.json5] Path to config file
  -h, --help           show CLI help

EXAMPLES
  $ fab build
  $ fab build --config=fab.config.json5

See code: lib/commands/build.js

fab deploy [FILE]

Command line deployer for FABs

USAGE
  $ fab deploy [FILE]

OPTIONS
  -c, --config=config                    [default: fab.config.json5] Path to local config file
  -h, --help                             show CLI help
  -n, --cf_workers_name=cf_workers_name  Name for project. Will deploy to https://{name}.{your_cf_username}.workers.dev
  --aws_key=aws_key                      AWS Key for S3 upload (if not using ~/.fab/global.config.json5)
  --aws_secret=aws_secret                AWS Secret Key for S3 upload (if not using ~/.fab/global.config.json5)
  --cf_account_id=cf_account_id          Cloudflare Workers Account ID (if not using ~/.fab/global.config.json5)
  --cf_api_key=cf_api_key                Cloudflare Workers API key (if not using ~/.fab/global.config.json5)
  --cf_email=cf_email                    Cloudflare Workers Account Email (if not using ~/.fab/global.config.json5)
  --s3_asset_bucket=s3_asset_bucket      S3 Bucket name for asset upload

EXAMPLE
  $ fab-cf-workers deploy fab.zip

See code: lib/commands/deploy.js

fab help [COMMAND]

display help for fab

USAGE
  $ fab help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

fab init

Generate a FAB config on a new project

USAGE
  $ fab init

OPTIONS
  -c, --config=config  [default: fab.config.json5] Config filename
  -h, --help           show CLI help
  -y, --yes            Assume yes to all prompts (must be in the root directory of a project)
  --skip-install       Do not attempt to npm install anything
  --version=version    What NPM version or dist-tag to use for installing FAB packages

EXAMPLES
  $ fab init
  $ fab init --config=fab.config.json5

See code: lib/commands/init.js

fab serve [FILE]

fab serve: Serve a FAB in a local NodeJS Express server

USAGE
  $ fab serve [FILE]

OPTIONS
  -c, --config=config        [default: fab.config.json5] Path to config file. Only used for SETTINGS in conjunction with
                             --env.

  -h, --help                 show CLI help

  --cert=cert                SSL certificate to use

  --env=env                  Override production settings with a different environment defined in your FAB config file.

  --experimental-v8-sandbox  Enable experimental V8::Isolate Runtime (in development, currently non-functional)

  --key=key                  Key for the SSL Certificate

  --port=port                (required) [default: 3000] Port to use

EXAMPLES
  $ fab serve fab.zip
  $ fab serve --port=3001 fab.zip
  $ fab serve --cert=local-ssl.cert --key=local-ssl.key fab.zip
  $ fab serve --env=staging fab.zip

See code: lib/commands/serve.js

Current Tags

  • 0.0.5-alpha.8                                ...           canary (2 months ago)
  • 0.0.7-alpha.8                                ...           latest (3 days ago)
  • 0.0.7-alpha.5                                ...           next (6 days ago)
  • 0.0.3-alpha.1                                ...           prerelease (2 months ago)

23 Versions

  • 0.0.7-alpha.8                                ...           3 days ago
  • 0.0.7-alpha.7                                ...           6 days ago
  • 0.0.7-alpha.6                                ...           6 days ago
  • 0.0.7-alpha.5                                ...           6 days ago
  • 0.0.7-alpha.4                                ...           12 days ago
  • 0.0.7-alpha.2                                ...           16 days ago
  • 0.0.7-alpha.1                                ...           16 days ago
  • 0.0.7-alpha.0                                ...           a month ago
  • 0.0.6                                ...           a month ago
  • 0.0.5                                ...           a month ago
  • 0.0.5-alpha.6                                ...           a month ago
  • 0.0.5-alpha.5                                ...           a month ago
  • 0.0.5-alpha.4                                ...           a month ago
  • 0.0.5-alpha.3                                ...           a month ago
  • 0.0.5-alpha.2                                ...           a month ago
  • 0.0.5-alpha.1                                ...           a month ago
  • 0.0.5-alpha.0                                ...           a month ago
  • 0.0.5-alpha.8                                ...           2 months ago
  • 0.0.4                                ...           2 months ago
  • 0.0.3                                ...           2 months ago
  • 0.0.3-alpha.1                                ...           2 months ago
  • 0.0.3-alpha.0                                ...           2 months ago
  • 0.0.2-alpha.0                                ...           2 months ago
Maintainers (2)
Downloads
Today 0
This Week 11
This Month 79
Last Day 0
Last Week 35
Last Month 148
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |