3.0.0-beta.5 • Published 2 months ago

@viewar/cli v3.0.0-beta.5

Weekly downloads
40
License
MIT
Repository
github
Last release
2 months ago

ViewAR SDK Command Line Interface

Build Status PRs Welcome Conventional Commits

About

ViewAR CLI is a command line tool for managing ViewAR Apps creation and deployment. It may be used to initialize a boilerplate Vanilla JavaScript / React project or use one of ViewAR Templates.

Getting Started

Before installing the developer tools, you'll need to make sure that you have two prerequisites installed:

  • Node.js version 6.0.0 or higher
  • yarn or npm (>= v3.0.0) package managers

Next, install the ViewAR CLI – a command-line tool that generates basic boilerplates of new projects with examples.

npm install -g @viewar/cli or yarn global add @viewar/cli

You only need to install the ViewAR CLI once. It will alert you when it's out of date, and provide instructions on how to update it.

Once installed, the CLI can be used to create a new project by running:

viewar-cli init PROJECT_NAME

where PROJECT_NAME is the name of your new application. Once it's been created and the dependencies are installed, change your working directory to PROJECT_NAME, and start the application server by running npm start (or yarn start).

When the server has booted, you can access your application by navigating to http://localhost:8080/ in your web browser. Your application's code can be found in src/index.js, and you can learn more about available SDK features by diving into our documentation.

Changelog

3.0.0

Breaking

  • SSO authorization

Fixed

  • set and generate commands now adjust corresponding assembly in appfiles folder (use -as,--assembly flag to specify assembly, otherwise defaultAssembly from package.json will be used) instead of creating legacy viewar-config.json file in the project root.

2.0.0

Breaking

  • Default app assembly ('indoar', 'servicear', etc.) is defined now in package.json in defaultAssembly property instead of config: { app: <assembly-id> }. It takes the same values (indoar, servicear, scanner, etc.) as config.app.
  • viewar-config.json in project root is deprecated and removed

Added

  • New option to deploy command: -as, --assembly <app-assembly> overrides default assembly type of the app (defaults to defaultAssembly property in package.json)

1.4.0

Added

  • New flag -pv or --patchversion, to automatically increase the patch version on the server to the latest + 1.

1.2.4

Added

  • New command server-url.

1.2.3

Fixed

  • Fixed deployment.

1.2.2

Fixed

  • Fixed cli flags.

1.2.1

Fixed

  • Fixed version check.

1.2.0

Changed

Upgraded to node v16.

1.1.0

Added

  • Added support for @viewar/api and @viewar/core.

1.0.5

Changed

  • Show text message with command "whoami" if no user logged in yet.

1.0.3

Fixed

  • Fix "deploy" with force argument (-f).

1.0.2

Fixed

  • Fix "init" deployment.

1.0.1

Changed

  • Improve some log output.

1.0.0

Changed

  • Command "deploy" is able to create a new app version.
  • Per default overriding of existing app versions is not allowed.
  • App versions can be overridden with --force (-f) argument.

0.14.1

Changed

  • The command "deploy" returns an error message if an invalid app ID was entered.
  • Fix generate for projects with old .viewar-config syntax.

0.14.0

Added

  • Filename changed from .viewar-config to viewar-config.json with backwards compatibility

Fixed

  • Handle empty user names in .viewar-config.

0.13.3

Added

  • Display app ID and vers ion after command "deploy".
  • Appended changelog to README.

0.13.2

Fixed

  • Display validation error message if incorrect App ID or Version string is entered.

0.13.1

Fixed

  • Added a warning if no version is given with deploy.

0.13.0

Added

  • Project type "Angular"

0.12.1

Added

  • Remove zero-width space characters for pasted sample app custom repositories.
  • Read template config for sample app custom repositories (github only).

Changed

  • Improved emoji output prints.

0.12.0

Added

  • Added advanced error logging and server logging.
  • Prettify output prints.

Changed

  • Improved .viewar-config generation (if npm install fails).
  • Ask for another app ID if entered ID is already existing.

0.11.4

Fixed

  • Correctly check for sample project/template selection.

0.11.3

Fixed

  • Fixed logout command.

0.11.2

Fixed

  • Major issues in code bundling.

0.11.1

Changed

  • Display detailed login error message.

0.11.0

Changed

  • Revamped code bundling.

0.10.3

Changed

  • Renamed template section.

0.10.2

Fixed

  • Use version 100 if no version is given as argument in command "deploy".

0.10.1

Fixed

  • Fixed 'Vanilla Javascript' and 'React' project types.

0.10.0

Added

  • Added GuideBOT Template

Removed

  • Removed alias generate-token (use generate only).

Changed

  • Renamed base6 sample to Furniture Live/Products Live/WallArt.

0.9.0

Added

  • Added check if git is installed for init command.

0.8.4

Fixed

  • Fixed missing variable error when deploying.

0.8.3 broken

Added

  • Check authentication before building an app with deploy.

0.8.2

Changed

  • Split react and vanilla boilerplate apps into two separate repositories.

0.8.1

Added

  • Show login when calling init with no previous logins.
  • Sort account selection by name.
  • Show app creation errors from server.

0.8.0

Added

  • Check for correct node version.
  • Read and use tracking config from template repository.

0.7.0

Added

  • Show advanced error message when build directory does not exist while deploying.

0.6.0

Added

  • Placenote tracker
  • Remote tracker
  • Helpar sample

0.5.0

Added

  • Added version check and notification if out ouf date.
  • Added alias 'viewar'.

Changed

  • Changed init command to take project name as first, project type as second and user as third argument.
3.0.0-beta.5

2 months ago

3.0.0-beta.4

2 months ago

3.0.0-beta.3

3 months ago

3.0.0-beta.1

3 months ago

3.0.0-beta.0

3 months ago

3.0.0-beta.2

3 months ago

2.0.1

3 months ago

1.4.0

9 months ago

2.0.0

5 months ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago