Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

To deploy you your client code and assets to the Client project area, you can use the deploy command.:

Code Block
themeRDark
bm client deploy

 

Once deployed, your changes will be instantly available at your project URL.

 By default, your project will be deployed to the "dev" environment: company-project-dev.blinkm.io. You can deploy to a different environment using the --env tag as described below.

Additional Options
 

--env (default to dev)

This allows you to set the environment you wish to deploy

...

 

To deploy the contents of the current folder

...

to, such as dev, test, or prod. See the "Using Multiple Environments" section for more details.

Code Block
languagebash
themeRDark
bm client deploy --env prod

--cwd (defaults to current folder)

This allows you to set the current working directory for your deployment. By default, it will use the current directory.

Code Block
languagebash
themeRDark
bm client deploy --cwd ./myfolder

 

Once deployed, your changes will be instantly available at your project URL.

 

Info
  • You must specify a folder, you can not specify an individual file to be deployed.
  • You should run the deploy command from the same folder location where the scope was set.

Additional Options

--force

This will deploy your project without asking for confirmation. This feature is designed to allow automatic deployments for those interested in an automated release.

Code Block
languagebash
themeRDark
bm client deploy --force

--skip

The "skip" option will bypass unchanged files (default) on your local machine.

Code Block
languagebash
themeRDark
bm client deploy <path to local project> --skip

--no-skip

The "no-skip" option will upload all files, including unchanged files on your local machine.

Code Block
languagebash
themeRDark
bm client deploy <path to local project> --no-skip

--prune

The "prune" option will remove any files that don't exist on your local machine.

Code Block
languagebash
themeRDark
bm client deploy <path to local project> --prune--prune

--debug

The "debug" option will display extra debugging information. This is useful if you are having issues deploying your web app.

Code Block
languagebash
themeRDark
bm client deploy --debug



Using Multiple Environments (Dev, Test, Prod): 
Anchor
multipleEnvironmentsHeading
multipleEnvironmentsHeading

This service allows you to deploy to multiple environments for your project, using the "env" option.

Environments are specified in the API URL as a dash followed by the environment name.

For example, by default, the dev environment is used:

https://company-project-dev.blinkm.io


If, however, you were to set "--env test" option, your API URL would be:

https://company-project-test.blinkm.io


Production URLs:

While any environment name can be used, "prod" is treated a little differently. Production URLs don't use the environment dash; instead it will produce as a shorter, cleaner API URL.

So in this case, "--env prod" will produce the API URL:

https://company-project.blinkm.io