Skip to content

Commit

Permalink
Merge pull request #53 from akamai/release/0.7.0
Browse files Browse the repository at this point in the history
Release 0.7.0
  • Loading branch information
SidHeg authored Jun 8, 2020
2 parents 5451efd + 857bfb9 commit 4eefcb0
Show file tree
Hide file tree
Showing 79 changed files with 1,952 additions and 2,518 deletions.
137 changes: 87 additions & 50 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/akamai-pipeline
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

// Copyright 2018. Akamai Technologies, Inc
// Copyright 2020. Akamai Technologies, Inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bin/akamai-snippets → bin/akamai-property-manager
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

// Copyright 2018. Akamai Technologies, Inc
// Copyright 2020. Akamai Technologies, Inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 4 additions & 0 deletions build-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

npm install .
npm run build-dev
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

npm install .
npm install --production .
npm run build
10 changes: 5 additions & 5 deletions cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
},
"commands": [
{
"name": "snippets",
"aliases": ["pm", "property-manager"],
"version": "0.6.0",
"name": "property-manager",
"aliases": ["pm", "snippets"],
"version": "0.7.0-RELEASE",
"description": "Property Manager CLI for DevOps"
},
{
"name": "pipeline",
"aliases": ["pl", "pipeline", "pd", "proddeploy"],
"version": "0.6.0",
"aliases": ["pl", "pd", "proddeploy"],
"version": "0.7.0-RELEASE",
"description": "Akamai Pipeline for DevOps"
}
]
Expand Down
43 changes: 43 additions & 0 deletions docs/upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Upgrade to the Latest Property Manager CLI

The original Property Manager CLI, [cli-property](https://github.com/akamai/cli-property), has been deprecated. The latest CLI, [cli-property-manager](https://github.com/akamai/cli-property-manager), includes most features from the original. There are differences in command and option names between the two CLI versions.

# How do I install the latest version?

When upgrading, you install the new version as if it were a new installation. Use the instructions starting with [Get Started](https://github.com/akamai/cli-property-manager/blob/master/README.md#get-started) in the README.md file.

# Updated commands

Here's a list of commands that have changed between the two versions:

Original CLI command | New CLI command | Notes
------------ | ------------- | -------------
`activate <property>` | `activate` | `BOTH` argument no longer supported for the `network` option.
`deactivate <property>` | `deactivate` | `BOTH` argument no longer supported for the `network` option.
`create <property>` | `new-property` | These options not currently supported: `--cpcode`, `--edgehostname`, `--file`, `--forward`, `--hostnames`, `--origin`, `--newcpcodename`, `--nocopy`, and `--notes`.
`delete <property>` | `delete` | The `--property` option replaces the `<property>` argument.
`format` | `list-rule-formats` |
`groups` | `list-groups` | `contractId` replaces `contract`.
`list` | `list-properties` | `contractId` replaces `contract` and `groupId` replaces `group`.
`products` | `list-products` | `contractId` replaces `contract`.
`retrieve <property>` | `show-ruletree` | The `list-rule-formats` command replaces `--format`, the `list-property-hostnames` command replaces `--hostnames`, and the `list-property-variables` command replaces `--variables`.
`update <property>` | `save` | Only `--property` option available at this time. It replaces the `<property>` argument.

# Updated options

Some options from original version were also updated in the new version:

Original CLI option | New CLI option
------------ | -------------
`--clone` | `--propertyId`
`--config` | `--edgerc`
`--contract` | `--contractId`
`--debug` | `--verbose`
`--email` | `--emails`
`--group` | `--groupId`
`--notes` | `--message`
`--product` | `--productId`
`--srcver` | `--propver`


Copyright © 2020 Akamai Technologies, Inc.
38 changes: 20 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cli-promotional-deployment",
"version": "0.6.0",
"version": "0.7.0-RELEASE",
"engines": {
"node": ">=8.0.0",
"npm": ">=6.13.4"
Expand All @@ -15,20 +15,8 @@
"pipeline": "./bin/akamai-pipeline",
"akamai-pl": "./bin/akamai-pipeline",
"akamai-pd": "./bin/akamai-pipeline",
"snippets": "./bin/akamai-snippets"
},
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^4.12.0",
"eslint-plugin-node": "^5.2.1",
"js-beautify": "^1.8.8",
"jsdoc": "^3.6.3",
"jsdoc-to-markdown": "^5.0.3",
"mocha": "^4.0.1",
"nyc": "^14.1.1",
"pegjs": "^0.10.0",
"testdouble": "^3.8.2",
"webpack": "^4.41.3"
"property-manager": "./bin/akamai-property-manager",
"snippets": "./bin/akamai-property-manager"
},
"config": {
"env": "dev"
Expand All @@ -42,19 +30,33 @@
"test-for-sonarqube": "nyc --report-dir=dist/coverage --reporter=lcov --reporter=text-lcov mocha --recursive tests",
"jsdoc": "jsdoc -c jsdoc.config.json",
"eslint": "eslint -c eslintrc.json index.js ./bin ./src",
"build": "npm run pegjs && npm run jsbeautify && npm run test-for-sonarqube && npm run eslint && npm run docs"
"build-dev": "npm run pegjs && npm run jsbeautify && npm run test-for-sonarqube && npm run eslint && npm run docs",
"build": "npm run pegjs"
},
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^4.12.0",
"eslint-plugin-node": "^5.2.1",
"js-beautify": "^1.8.8",
"jsdoc": "^3.6.3",
"jsdoc-to-markdown": "^5.0.3",
"mocha": "^6.2.3",
"nyc": "^15.0.0",
"testdouble": "^3.8.2",
"webpack": "^4.41.3"
},
"dependencies": {
"ajv": "^6.10.2",
"ajv-keywords": "^3.4.0",
"ascii-data-table": "^2.1.1",
"chalk": "^2.3.2",
"commander": "^2.19.0",
"commander": "^4.1.1",
"debug": "^3.2.6",
"email-validator": "2.0.4",
"inquirer": "^6.2.0",
"log4js": "^3.0.6",
"log4js": "^6.1.2",
"moment": "^2.20.1",
"pegjs": "^0.10.0",
"request": "^2.88.0",
"request-debug": "^0.2.0",
"underscore": "^1.9.1",
Expand Down
Loading

0 comments on commit 4eefcb0

Please sign in to comment.