@memberjunction/cli
v2.14.0
Published
MemberJunction command line tools
Downloads
332
Keywords
Readme
MemberJunction CLI
Usage
$ npm install -g @memberjunction/cli
$ mj COMMAND
running command...
$ mj (--version)
@memberjunction/cli/2.14.0 linux-x64 node-v20.18.1
$ mj --help [COMMAND]
USAGE
$ mj COMMAND
...
Commands
mj bump
Bumps MemberJunction dependency versions
USAGE
$ mj bump [-v] [-r] [-t <value>] [-q] [-d]
FLAGS
-d, --dry Dry run, do not write changes to package.json files
-q, --quiet Only output paths for updated packages
-r, --recursive Bump version in current directory and all subdirectories
-t, --tag=<value> Version tag to bump target for bump (e.g. v2.10.0), defaults to the CLI version
-v, --verbose Enable additional logging
DESCRIPTION
Bumps MemberJunction dependency versions
EXAMPLES
Bump all @memberjunction/* dependencies in the current directory's package.json to the CLI version
$ mj bump
Preview all recursive packages bumps without writing any changes.
$ mj bump -rdv
Recursively bump all @memberjunction/* dependencies in all packages to version v2.10.0 and output only the paths
containing the updated package.json files. Pipe the output to xargs to run npm install in each directory and update
the package-lock.json files as well.
$ mj bump -rqt v2.10.0 | xargs -n1 -I{} npm install --prefix {}
See code: src/commands/bump/index.ts
mj clean
Resets the MemberJunction database to a pre-installation state
USAGE
$ mj clean [-v]
FLAGS
-v, --verbose Enable additional logging
DESCRIPTION
Resets the MemberJunction database to a pre-installation state
EXAMPLES
$ mj clean
See code: src/commands/clean/index.ts
mj codegen
Run CodeGen to generate code and update metadata for MemberJunction
USAGE
$ mj codegen [--skipdb]
FLAGS
--skipdb Skip database migration
DESCRIPTION
Run CodeGen to generate code and update metadata for MemberJunction
EXAMPLES
$ mj codegen
See code: src/commands/codegen/index.ts
mj help [COMMAND]
Display help for mj.
USAGE
$ mj help [COMMAND...] [-n]
ARGUMENTS
COMMAND... Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for mj.
See code: @oclif/plugin-help
mj install
Install MemberJunction
USAGE
$ mj install [-v]
FLAGS
-v, --verbose Enable additional logging
DESCRIPTION
Install MemberJunction
EXAMPLES
$ mj install
See code: src/commands/install/index.ts
mj migrate
Migrate MemberJunction database to latest version
USAGE
$ mj migrate [-v] [-t <value>]
FLAGS
-t, --tag=<value> Version tag to use for running remote migrations
-v, --verbose Enable additional logging
DESCRIPTION
Migrate MemberJunction database to latest version
EXAMPLES
$ mj migrate
See code: src/commands/migrate/index.ts
mj version
USAGE
$ mj version [--json] [--verbose]
FLAGS
--verbose Show additional information about the CLI.
GLOBAL FLAGS
--json Format output as json.
FLAG DESCRIPTIONS
--verbose Show additional information about the CLI.
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
See code: @oclif/plugin-version