Access private packages ©️ #
The licensed Javascript Kuzzle's plugins are distributed through a private manager package hosted by our team.
Various method exists to access our private packages.
Using npm login #
The most common one is to use the npm login
command.
- Run
npm login --scope=@kuzzleio --registry=https://packages.paas.kuzzle.io --auth-type=legacy
- Enter the username & the password
The npm login
command will create a file named .npmrc
in your home directory. This file contains your credentials and is used by npm
to authenticate you when you install a package.
- Copy the
.npmrc
file at the root directory of the project you are working on.
cp ~/.npmrc .npmrc
- You can now install any private package using
npm install
:
npm install @kuzzleio/<kuzzle-plugin>
Using kourou paas:login #
The Kourou CLI is a command line tool that allows you to interact with a Kuzzle API. Through our dedicated command kourou paas:login
you can login to our private registry.
Under the hood, this command will create a .npmrc
file in your home directory.
kourou paas:login --help
USAGE
$ kourou paas:login
OPTIONS
--help show CLI help
--only_npm Only perform the login on the private NPM registry
--project=project Current PaaS project
--username=username PaaS username
From this point, you can install any private package using npm install
.
npm install @kuzzleio/<kuzzle-plugin>
Have a look at our list of plugins that will help you build your application properly.
What's next? #
Once you have finished this step, you can initialize your application with one of our templates available from Github - follow me