Use the commands below to set up your Nerdpacks. You can click on any command to see its usage options and additional details about the command.
Command | Description |
---|---|
Builds a Nerdpack | |
Removes all built artifacts. | |
Clones a Nerdpack from a git repository | |
Shows the state of your Nerdpack in the New Relic's registry | |
Publish this Nerdpack | |
Serves your Nerdpack for testing and development purposes | |
Tags a specific Nerdpack version | |
Removes a tag from the registry | |
Shows or regenerates the UUID of a Nerdpack | |
Validates artifacts inside your Nerdpack |
nr1 nerdpack:build
Builds a nerdpack.
Usage
$nr1 nerdpack:build
Options
|
|
| If specified, the value will be appended to the current version of generated files. For example |
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
Runs a webpack process to assemble your Nerdpack into javascript and css bundles. As many other CLI commands, it should be run at the package.json
level of your Nerdpack. It will search for nr1.json
files in your subdirectories, validate them, and try to build them. This also runs nr1 nerdpack:validate
before starting the build process.
nr1 nerdpack:clean
Removes all built artifacts
Usage
$nr1 nerdpack:clean
Options
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
Cleans and removes the content and the development folders (dist/
, tmp/
).
nr1 nerdpack:clone
Clones a nerdpack from a git repository.
Usage
$nr1 nerdpack:clone
Options
| Replace destination folder if it exists. |
| Directory where to clone (defaults to the repository name). |
| This is required. Repository location, either an HTTPS or SSH path. |
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
Given a git repository, it performs all the actions so that you can start using it. This includes, in order:
- Clone the repository.
- Set the repository as remote upstream.
- Install all of its dependencies, using
npm
. - Generate a new UUID using your profile, and commit it.
nr1 nerdpack:info
Shows the state of your nerdpack in the new relic's registry.
Usage
$nr1 nerdpack:info
Options
| Show all versions. |
| Get info from the specified Nerdpack instead of local one. |
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
The default amount of versions shown is 10 but all versions can be shown if the --all
or -a
flag is used.
nr1 nerdpack:publish
Publish this nerdpack.
Usage
$nr1 nerdpack:publish
Options
| Skip the previous build process. |
| Do not tag the version. |
|
|
| Publish process without actually publishing anything. |
|
|
| If specified, the value will be appended to the current version of generated files. For example, |
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
This command will build and upload your Nerdpack to the registry.
If no additional parameters are passed in, this command will automatically tag the nerdpack version as STABLE
. If you want to disable this behavior, pass the --skip-tag
flag to the command.
See nr1 nerdpack:tag --help
for more info on tags.
nr1 nerdpack:serve
Serves your nerdpack for testing and development purposes.
Usage
$nr1 nerdpack:serve
Options
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
Launches a server with your local code, ready to be tested live on the platform.
nr1 nerdpack:tag
Tags a specific nerdpack version.
Usage
$nr1 nerdpack:tag
Options
| Version to tag. If it's not provided will use the one in |
| Nerdpack uuid to deploy. If it's not provided will use the one in |
|
|
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
A single version may have several tags, but each tag can only be applied to one version. Tagging a different version with an existing tag will untag the previous one.
We recommend using STABLE
to tag the versions you want to show to your subscribers. See the command nr1 nerdpack:subscribe
for more info.
Aliases
$$ nr1 nerdpack:deploy
nr1 nerdpack:untag
Removes a tag from the registry.
Usage
$nr1 nerdpack:untag
Options
| Nerdpack uuid to deploy. If it's not provided will use the one in |
|
|
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
Specified tag will be removed. No files will be actually deleted.
Aliases
$$ nr1 nerdpack:undeploy
nr1 nerdpack:uuid
Shows or regenerates the uuid of a nerdpack.
Usage
$nr1 nerdpack:uuid
Options
| If present, it will override the existing UUID without asking. |
| Generates a new UUID if not available. |
| The authentication profile you want to use. |
| Adds extra information to the output. |
Description
By default, prints the universal unique ID of the specified package. It also enables generation or regeneration of the UUID of your package, depending on the flags passed.
nr1 nerdpack:validate
Validates artifacts inside your nerdpack.
Usage
$nr1 nerdpack:validate
Options
| Do not download new schema files. |
| Force download of new schema files. |
| The authentication profile you want to use. |
| Adds extra information to the output |
Aliases
$nr1 nerdpack:ls
$nr1 nerdpack:val