npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@amp-nova/amp-rsa-cli

v0.2.21

Published

AMP-RSA Demo Automation

Downloads

34

Readme

amprsa

Command line interface for Amplience Reference Storefront Architecture.

Description

amprsa is a command line interface application to manage an installation of the Amplience Reference Storefront Architecture (amprsa).

Run amprsa --help to get a list of available commands.

Installation

Installing the amprsa CLI from the NPM package manager can be achieved using the following command:

npm install -g @amp-nova/amp-rsa-cli

Configuration

amprsa requires an AMPRSA environment configuration to run.

PreRequisites

  • Amplience account ( Think about what we say here)
  • Details and where to get then from.
    • hub name (Env)
    • App URL - link to RSA-CORE
    • Client ID / Secret - Sent via [email protected] - One Time Secret
    • Hub ID - Screenshot of DC / Settings page
    • Username & Password for Content Hub - Automate VSE details.

On your first invocation of any amprsa command, the CLI will prompt you to create an environment:

dave@po:~ $ amprsa env add
✔ env name: foo
✔ app deployment url: https://foo.baz.com
✔ cms client id: amplience-client-id
✔ cms client secret: ***********************
✔ cms hub id: hub-id-from-hub-settings-properties
✔ dam username: [email protected]
✔ dam password: *****************
info: [ foo ] configure dc-cli...
info: [ foo ] environment active

You will set these to the values you received from Amplience Support when you created your account.

By default the configuration is saved to a file in the directory <HOME_DIR>/.amplience/, this can be overridden using the --config option.

Options

| Option Name | Type | Description | | -------------- | ---------------------------------------------------------- | ------------------------------------------------------------ | | --version | [boolean] | Show version number | | --config | [string][default: "~/.amplience/dc-cli-config.json"] | Path to JSON config file | | --help | [boolean] | Show help |

Command categories

using an amprsa environment

Common Options

The following options are available for all content-type-schema commands.

| Option Name | Type | Description | | -------------- | ---------------------------------------------------------- | -------------------------------- | | --version | [boolean] | Show version number | | --help | [boolean] | Show help |

Commands

cleanup

Clean a hub.

Options

| Option Name | Type | Description | | ------------------------- | ------------- | ---------------------------------------------------- | | --logRequests, -r | [boolean] | log http requests/responses | | --tempDir, -t | [string] | temp dir for run files | | --matchingSchema, -m | [array] | apply to (types, schemas, items) matching schema id | | --include, -i | [array] | types to include | | --skipConfirmation, -c | [boolean] | don't ask for confirmation | | --all, -a | [boolean] | clean up all resource types |

Valid resource types are contentTypeSchema, contentTypes, contentItems, searchIndexes, extensions, webhooks, and events.

Examples

Clean a hub

amprsa cleanup

Clean content types, schemas, and items without asking for confirmation

amprsa cleanup -ci contentTypes -i contentTypeSchema -i contentItems

import

Import data.

Options

| Option Name | Type | Description | | ------------------------- | ------------- | ---------------------------------------------------- | | --logRequests, -r | [boolean] | log http requests/responses | | --tempDir, -t | [string] | temp dir for run files | | --matchingSchema, -m | [array] | apply to (types, schemas, items) matching schema id | | --automationDir, -a | [string] | path to import directory | | --skipContentImport, -s | [boolean] | skip content import | | --latest, -l | [boolean] | using this flag will download the latest automation |

Examples

Import the latest automation data

amprsa import -l

Import only items matching schema 'schema'

amprsa import -m <schema>

publish

Publish all unpublished content items.

Options

| Option Name | Type | Description | | ------------------------- | ------------- | ---------------------------------------------------- | | --logRequests, -r | [boolean] | log http requests/responses | | --tempDir, -t | [string] | temp dir for run files | | --matchingSchema, -m | [array] | apply to (types, schemas, items) matching schema id |

Examples

Publish

amprsa publish

show

Show the status of an amprsa environment.

Examples

amprsa show

env

This category includes interactions with environments.

View commands for env