aepctl

command module
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

aepctl

aepctl is a command line tool for the Adobe Experience Platform implementing a part of the REST API.

This is the initial state of this project and no release is available.

Overview

aepctl is a complement to the existing web interface and has been developed for advanced users as well as developers. In combination with activated syntax completion, aepctl accelerates the execution of repeating tasks, prototyping and learning the APIs.

Status of Implementation

At the moment the following APIs are implemented:

Quick Start

  1. Install aepctl
    • macOS
      brew install fuxs/formulae/aepctl
      
    • Windows (requires PowerShell)
      Invoke-WebRequest https://www.bungenstock.de/aepctl/releases/latest/windows/amd64/aepctl.exe -OutFile aepctl.exe
      
      Add aepctl.exe to your PATH
  2. Create an Adobe I/O Project (detailed documentation)
  3. Provide a config.yaml file with the following command
    aepctl configure
    
    Paste authentication credentials from the Adobe I/O project (click on Service Account(JWT) of your Adobe I/O project) and select a private key file. (detailed documentation)
  4. Test the configuration by getting an access token.
    aepctl get token
    

Installation

macOS

The recommended installation method is homebrew. Visit the website and install it if you haven't already.

Run the following command to install aepctl:

brew install fuxs/formulae/aepctl
zsh completion

The zsh is the default shell since macOS 10.15 Catalina and provides strong completion capabilities. It is recommended to activate completions for aepctl in order to ease the input with complex IDs or names.

The zsh requires some code for the completion function which must be stored in a file with the name _aepctl. This file must be located in a subdirectory of the $fpath environment variable. Sounds too complicated? Just follow the next steps:

Execute the following helper command:

aepctl zsh

This creates the _aepctl file in your home directory ~/.aepctl/zsh_completion

Now you have to add two lines to the .zshrc file. The first line adds the directory of the created _aepctl file to the $fpath environment variable. The second line with the compinit function activates the extended completion system of zsh.

cat <<EOT >> ~/.zshrc
fpath=(~/.aepctl/zsh_completion "${fpath[@]}")
autoload -U compinit; compinit
EOT

Some zsh frameworks like oh-my-zsh are calling compinit on their own. If you use oh-my-zsh then you must update the fpath before the source command in .zshrc.

A valid configuration could look like this:

fpath=(~/.aepctl/zsh_completion "${fpath[@]}")
source $ZSH/oh-my-zsh.s
Completion for other shells

Please call the following command for other shells and follow the instructions:

aepctl help completion

Windows

PowerShell

Open the PowerShell and follow the instructions:

  1. Download the latest pre-release aepctl latest or use Invoke-WebRequest:
Invoke-WebRequest https://www.bungenstock.de/aepctl/releases/latest/windows/amd64/aepctl.exe -OutFile aepctl.exe
  1. The validation of the binary is optional (go to step 4 if you want to skip it). Download the SHA256 file or use Invoke-WebRequest:
Invoke-WebRequest https://www.bungenstock.de/aepctl/releases/latest/windows/amd64/aepctl.exe.sha256 -OutFile aepctl.exe.sha256
  1. Check the integrity with the following command. You should get the value True as result.
(Get-FileHash aepctl.exe).Hash -eq (Get-Content aepctl.exe.sha256)
  1. Add the aepctl.exe to your PATH

  2. Test that everything is working by opening the help.

aepctl --help

License

aepctl is released under the Apache 2.0 license.

Documentation

Overview

Package main consists only of this file

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
api
Package api is the base for all aep rest functions.
Package api is the base for all aep rest functions.
od
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
Package cache consists of all caching relted functions and data structures.
Package cache consists of all caching relted functions and data structures.
cmd
Package cmd is the root package for aepctl.
Package cmd is the root package for aepctl.
audit
Package audit contains audit command related functions.
Package audit contains audit command related functions.
cancel
Package cancel is the base for all cancel commands.
Package cancel is the base for all cancel commands.
completion
Package completion manages all completion related operations.
Package completion manages all completion related operations.
configure
Package configure contains the configuration command
Package configure contains the configuration command
copy
Package copy is the base for all copy commands.
Package copy is the base for all copy commands.
create
Package create is the base for all create commands.
Package create is the base for all create commands.
create/od
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
delete
Package delete is the base for all delete commands.
Package delete is the base for all delete commands.
delete/od
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
download
Package cmd is the root package for aepctl.
Package cmd is the root package for aepctl.
export
Package export contains export command related functions.
Package export contains export command related functions.
extern
Package extern is the root package for external commands.
Package extern is the root package for external commands.
get
Package get contains get command related functions.
Package get contains get command related functions.
get/catalog
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
get/da
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
get/flow
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
get/is
Package is contains identity service related functions.
Package is contains identity service related functions.
get/od
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
get/sr
Package sr contains schema registry related functions.
Package sr contains schema registry related functions.
get/ups
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
helper
Package helper consists of helping functions.
Package helper consists of helping functions.
import
Package imp contains import command related functions.
Package imp contains import command related functions.
list
Package list contains list command related functions.
Package list contains list command related functions.
list/is
Package is contains identity service related functions.
Package is contains identity service related functions.
list/qs
Package qs contains query service related functions.
Package qs contains query service related functions.
list/sr
Package sr contains schema registry related functions.
Package sr contains schema registry related functions.
patch
Package patch contains patch command related functions.
Package patch contains patch command related functions.
trigger
Package trigger contains trigger command related functions.
Package trigger contains trigger command related functions.
update
Package update contains update command related functions.
Package update contains update command related functions.
update/od
Package od contains offer decisiong related functions.
Package od contains offer decisiong related functions.
version
Package version contains the version comman
Package version contains the version comman
Package ui consists of console ui components
Package ui consists of console ui components
Package util util consists of general utility functions and structures.
Package util util consists of general utility functions and structures.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL