UNPKG

5.89 kBJSONView Raw
1{"version":"0.2.0","commands":{"build":{"id":"build","description":"Generate a FAB given the config (usually in fab.config.json5)","pluginName":"@fab/cli","pluginType":"core","aliases":[],"examples":["$ fab build","$ fab build --config=fab.config.json5"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"Path to config file","default":"fab.config.json5"},"skip-cache":{"name":"skip-cache","type":"boolean","description":"Skip any caching of intermediate build artifacts","allowNo":false}},"args":[]},"deploy":{"id":"deploy","description":"Deploy a FAB to a hosting provider","pluginName":"@fab/cli","pluginType":"core","aliases":[],"examples":["$ fab deploy fab.zip"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"Path to config file","default":"fab.config.json5"},"package-dir":{"name":"package-dir","type":"option","description":"Where to save the packaged FAB files (default .fab/deploy)"},"server-host":{"name":"server-host","type":"option","description":"If you have multiple potential hosts for the server defined in your fab.config.json5, which one to deploy to.","helpValue":"(cf-workers|aws-lambda-edge|aws-s3)","options":["cf-workers","aws-lambda-edge","aws-s3"]},"assets-host":{"name":"assets-host","type":"option","description":"If you have multiple potential hosts for the assets defined in your fab.config.json5, which one to deploy to.","helpValue":"(cf-workers|aws-lambda-edge|aws-s3)","options":["cf-workers","aws-lambda-edge","aws-s3"]},"env":{"name":"env","type":"option","description":"Override production settings with a different environment defined in your FAB config file."},"assets-already-deployed-at":{"name":"assets-already-deployed-at","type":"option","description":"Skip asset deploys and only deploy the server component pointing at this URL for assets"},"assets-only":{"name":"assets-only","type":"boolean","description":"Skip server deploy, just upload assets","allowNo":false},"auto-install":{"name":"auto-install","type":"boolean","description":"If you need dependent packages (e.g. @fab/deploy-*), install them without prompting","allowNo":false}},"args":[{"name":"file"}]},"init":{"id":"init","description":"Auto-configure a repo for generating FABs","pluginName":"@fab/cli","pluginType":"core","aliases":[],"examples":["$ fab init","$ fab init --config=fab.config.json5"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"Config filename","default":"fab.config.json5"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Assume yes to all prompts (must be in the root directory of a project)","allowNo":false},"skip-install":{"name":"skip-install","type":"boolean","description":"Do not attempt to npm install anything","allowNo":false},"version":{"name":"version","type":"option","description":"What NPM version or dist-tag to use for installing FAB packages"},"skip-framework-detection":{"name":"skip-framework-detection","type":"boolean","description":"Don't try to auto-detect framework, set up manually.","allowNo":false}},"args":[]},"package":{"id":"package","description":"Package a FAB to be uploaded to a hosting provider manually","pluginName":"@fab/cli","pluginType":"core","aliases":[],"examples":["$ fab package --target=aws-lambda-edge fab.zip"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"Path to config file","default":"fab.config.json5"},"target":{"name":"target","type":"option","char":"t","description":"Hosting provider (must be one of: cf-workers, aws-lambda-edge, aws-s3)","helpValue":"(cf-workers|aws-lambda-edge|aws-s3)","options":["cf-workers","aws-lambda-edge","aws-s3"]},"output-path":{"name":"output-path","type":"option","description":"Where to save the packaged FAB (default .fab/deploy/[target].zip)"},"assets-url":{"name":"assets-url","type":"option","description":"A URL for where the assets can be accessed, for server deployers that need it"},"env":{"name":"env","type":"option","description":"Override production settings with a different environment defined in your FAB config file."}},"args":[{"name":"file"}]},"serve":{"id":"serve","description":"fab serve: Serve a FAB in a local NodeJS Express server","pluginName":"@fab/cli","pluginType":"core","aliases":[],"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"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"port":{"name":"port","type":"option","description":"Port to use","required":true,"default":"3000"},"cert":{"name":"cert","type":"option","description":"SSL certificate to use"},"key":{"name":"key","type":"option","description":"Key for the SSL Certificate"},"experimental-v8-sandbox":{"name":"experimental-v8-sandbox","type":"boolean","description":"Enable experimental V8::Isolate Runtime (in development, currently non-functional)","allowNo":false},"env":{"name":"env","type":"option","description":"Override production settings with a different environment defined in your FAB config file."},"config":{"name":"config","type":"option","char":"c","description":"Path to config file. Only used for SETTINGS in conjunction with --env.","default":"fab.config.json5"},"auto-install":{"name":"auto-install","type":"boolean","description":"If you need dependent packages (e.g. @fab/serve), install them without prompting","allowNo":false}},"args":[{"name":"file"}]}}}
\No newline at end of file