@nrfcloud/gateway-registration

A quick way to register gateways

Usage no npm install needed!

<script type="module">
  import nrfcloudGatewayRegistration from 'https://cdn.skypack.dev/@nrfcloud/gateway-registration';
</script>

README

gateway-registration

A command-line interface to create and register a gateway on nRF Cloud. Also provided is a library to provide gateway creation services. See dist/gateway-registration.umd.js

Use

To use, you can either clone the repo and run it manually, or just use npx

npx

Simply run npx @nrfcloud/gateway-registration and login using your nRF Cloud credentials

Locally

You can run it locally:

  1. Clone this repo
  2. Run npm install
  3. Run npm run build
  4. If you want to change the environment variables (like to point to a different backend), copy .env.sample to .env and fill out the values
  5. Run npm run start for normal runs or npm run start:env for using your own environment variables
  6. Login using your nRF Cloud credentials

Results

A gateway should be created on your account and the configuration, private key and client certificate are copied to ./result/