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

@adobe/aio-cli-plugin-target

v1.0.1

Published

Adobe Target commands for the Adobe I/O CLI

Downloads

12

Readme

oclif License Codecov Coverage

aio-cli-plugin-target

Adobe Target Plugin for the Adobe I/O CLI

Configuration

Setup the configuration according to https://github.com/adobe/aio-cli-config/. The configuration must define the following data:

{
  "target": {
    "tenantName": "<Your IMS Org Id>
  },
  "jwt-auth": {
    "client_id": "<Your integration API key",
    "client_secret": "<Your integration client secret>",
    "jwt_payload": {
      "<Your integration JWT payload>"
    },
    "jwt_private_key": [
      "-----BEGIN PRIVATE KEY-----",
      "<Your integration private key",
      "On Multiple Lines>",,
      "-----END PRIVATE KEY-----",
      ""
    ]
  }
}

Usage

$ npm install -g @adobe/aio-cli-plugin-target
$ aio-edge jwt-auth:access-token --bare
$ ./bin/run COMMAND
running command...
$ ./bin/run (-v|--version|version)
@adobe/aio-cli-plugin-target/0.0.1 darwin-x64 node-v8.10.0
$ ./bin/run --help [COMMAND]
USAGE
  $ ./bin/run COMMAND
...

Commands

./bin/run adobe-target:list-offers

Retrieves the list of previously-created content offers. The flags are optional and are used to indicate the sorting and filtering options.

USAGE
  $ ./bin/run adobe-target:list-offers

OPTIONS
  -l, --limit=limit  Defines the number of items to return. Default value is 2147483647.
  -o, --offset=offset  Defines the first offer to return from the list of total offers. Used in conjunction with limit, you can provide pagination in your application for users to browse through a large set of offers.
  -s, --sortBy=sortBy  Defines the sorting criteria on the returned items. You can add a “-” modifier to sort by descending order.

EXAMPLES
  $ aio adobe-target:list-offers
  $ aio adobe-target:list-offers -l=10 -o=0 -s=id
  $ aio adobe-target:list-offers --limit=5 --offset=3 --sortBy=-name

See code: src/commands/adobe-target/list-offers.js

./bin/run adobe-target:get-offer IDENTIFIER

Retrieves the contents of an offer given an offer id.

USAGE
  $ ./bin/run adobe-target:get-offer IDENTIFIER

ARGUMENTS
  IDENTIFIER  The offer id

See code: src/commands/adobe-target/get-offer.js

./bin/run adobe-target:create-offer NAME CONTENT

Creates a new content offer as defined by the request data.

USAGE
  $ ./bin/run adobe-target:create-offer NAME CONTENT -w=WORKSPACE

ARGUMENTS
  NAME  A string to identify the Offer. The name cannot be empty. Max length is 250 characters.
  CONTENT  Content of an Offer shown to user.

OPTIONS
  -w, --workspace=workspace  String Optional id of workspace to which the activity belongs. Max length is 250 characters. By default, Default workspace is assumed. Applicable for Enterprise Permissions (Target Premium).

See code: src/commands/adobe-target/create-offer.js

./bin/run adobe-target:update-offer IDENTIFIER NAME CONTENT

Updates the content offer referenced by the id specified in the URL.

USAGE
  $ ./bin/run adobe-target:update-offer IDENTIFIER NAME CONTENT

ARGUMENTSS
  IDENTIFIER  The identifier of the offer. The id cannot be empty.
  NAME  A string to identify the Offer. The name cannot be empty. Max length is 250 characters.
  CONTENT  Content of an Offer shown to user.

See code: src/commands/adobe-target/update-offer.js

./bin/run adobe-target:delete-offer IDENTIFIER

Updates the content offer referenced by the id specified in the URL.

USAGE
  $ ./bin/run adobe-target:delete-offer IDENTIFIER

ARGUMENTS
  IDENTIFIER  The identifier of the offer. The id cannot be empty.

See code: src/commands/adobe-target/delete-offer.js