mirror of
https://github.com/foambubble/foam.git
synced 2026-01-13 07:58:01 -05:00
foam-cli
Foam CLI
Usage
$ npm install -g foam-cli
$ foam COMMAND
running command...
$ foam (-v|--version|version)
foam-cli/0.2.0 darwin-x64 node-v12.18.0
$ foam --help [COMMAND]
USAGE
$ foam COMMAND
...
Commands
foam hello [FILE]
describe the command here
USAGE
$ foam hello [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
EXAMPLE
$ foam hello
hello world from ./src/hello.ts!
See code: src/commands/hello.ts
foam help [COMMAND]
display help for foam
USAGE
$ foam help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Development
- Run
yarnsomewhere in workspace (ideally root, see yarn workspace docs- This will automatically symlink all package directories so you're using the local copy
- In
packages/foam-core, runyarn startto rebuild the library on every change - In
packages/foam-cli, make changes and run withyarn run cli. This should use latest workspace manager changes.