Skip to main content

thfx solution

Bundle the solution

thfx solution:bundle

Bundle the solution

USAGE
$ thfx solution:bundle [--lockFile <value>] [--targetDir <value>]

FLAGS
--lockFile=<value> [default: ./yarn.lock] Path to a yarn.lock file to use in the bundle.
--targetDir=<value> [default: ~/thfx-build] Path to the directory where the bundle will be created.

DESCRIPTION
Bundle the solution

Creates a tarball of the solution suitable for deploy

EXAMPLES
$ thfx solution:bundle

See code: dist/src/commands/solution/bundle.ts

thfx solution:compile

Compile a solution into a JSON file.

USAGE
$ thfx solution:compile --solution-file <value>

FLAGS
--solution-file=<value> (required) relative path to a solution (JavaScript) file with a default export of a Solution
object.

DESCRIPTION
Compile a solution into a JSON file.

compile the solution into a `thcare-solution.json` file

EXAMPLES
$ thfx solution:compile --solution-file ./dist/src/solution.js

See code: dist/src/commands/solution/compile.ts

thfx solution:deploy

Deploy a solution.

USAGE
$ thfx solution:deploy --name <value> --solution <value> --solution-environment development|production|test
[--work-directory <value>]

FLAGS
--name=<value> (required) The name of the solution to deploy to.
--solution=<value> (required) The solution archive to deploy.
--solution-environment=<option> (required) [default: development] Thrive solution environment to provision the
solution.
<options: development|production|test>
--work-directory=<value> Build artifacts in the specified directory.

DESCRIPTION
Deploy a solution.

Provisions infrastructure, builds your solution, uploads it to the cloud and deploys it.

EXAMPLES
$ thfx solution:deploy --name my-tenant --solution ./thcare-solution

See code: dist/src/commands/solution/deploy.ts

thfx solution:dev

Build & run a solution locally.

USAGE
$ thfx solution:dev [--buildDir <value>] [--app-name <value>]

FLAGS
--app-name=<value> Name of one of the apps from the solution to run.
--buildDir=<value> [default: ~/thfx-build] The directory to build the solution in.

DESCRIPTION
Build & run a solution locally.

Builds the solution as it currently is (does not watch for changes) and runs it.

EXAMPLES
$ thfx solution:dev

See code: dist/src/commands/solution/dev.ts

thfx solution:status NAME

Get the provision/deploy status of a solution.

USAGE
$ thfx solution:status NAME --solution-environment development|production|test

ARGUMENTS
NAME The name of the solution to check the status of.

FLAGS
--solution-environment=<option> (required) [default: development] Thrive Solution Environment to check the status of.
<options: development|production|test>

DESCRIPTION
Get the provision/deploy status of a solution.

Retrieves the current status of the deployed solution.

See code: dist/src/commands/solution/status.ts