heroku-cli-addons
Advanced tools
Comparing version 1.2.21 to 1.2.22
@@ -294,68 +294,6 @@ 'use strict' | ||
$ heroku ${topic} --all | ||
$ heroku ${topic} --app acme-inc-www | ||
$ heroku ${topic} --all | ||
$ heroku ${topic} --app acme-inc-www | ||
Overview of Add-ons: | ||
Add-ons are created with the \`addons:create\` command, providing a reference | ||
to an add-on service (such as \`heroku-postgresql\`) or a service and plan | ||
(such as \`heroku-postgresql:hobby-dev\`). | ||
At creation, each add-on is given a globally unique name. In addition, each | ||
add-on has at least one attachment alias to each application which uses the | ||
add-on. In all cases, the owning application will be attached to the add-on. | ||
An attachment alias is unique to its application, and is used as a prefix to | ||
any environment variables it exports to the application. | ||
In this example, a \`heroku-postgresql\` add-on is created and its given name | ||
is \`postgresql-deep-6913\` with a default attachment alias of \`DATABASE\`: | ||
$ heroku addons:create heroku-postgresql --app my-app | ||
Creating postgresql-deep-6913... done, (free) | ||
Adding postgresql-deep-6913 to my-app... done | ||
Setting DATABASE_URL and restarting my-app... done, v5 | ||
Database has been created and is available | ||
$ heroku addons --app my-app | ||
Add-on Plan Price | ||
───────────────────────────────────────── ───────── ───── | ||
heroku-postgresql (postgresql-deep-6913) hobby-dev free | ||
└─ as DATABASE | ||
The add-on name and, in some cases, the attachment alias can be specified by | ||
the user. For instance, we can add a second database to the app, specifying | ||
both these identifiers: | ||
$ heroku addons:create heroku-postgresql --app my-app --name main-db --as PRIMARY_DB | ||
Creating main-db... done, (free) | ||
Adding main-db to my-app... done | ||
Setting PRIMARY_DB_URL and restarting my-app... done, v6 | ||
Database has been created and is available | ||
$ heroku addons --app my-app | ||
Add-on Plan Price | ||
───────────────────────────────────────── ───────── ───── | ||
heroku-postgresql (main-db) hobby-dev free | ||
└─ as PRIMARY_DB | ||
heroku-postgresql (postgresql-deep-6913) hobby-dev free | ||
└─ as DATABASE | ||
Attachment aliases can also be specified when making attachments: | ||
$ heroku addons:attach main-db --app my-app --as ANOTHER_NAME | ||
Attaching main-db as ANOTHER_NAME to my-app... done | ||
Setting ANOTHER_NAME vars and restarting my-app... done, v7 | ||
$ heroku addons --app my-app | ||
Add-on Plan Price | ||
───────────────────────────────────────── ───────── ───── | ||
heroku-postgresql (main-db) hobby-dev free | ||
├─ as PRIMARY_DB | ||
└─ as ANOTHER_NAME | ||
heroku-postgresql (postgresql-deep-6913) hobby-dev free | ||
└─ as DATABASE | ||
For more information, read https://devcenter.heroku.com/articles/add-ons.` | ||
` | ||
} |
@@ -110,3 +110,3 @@ 'use strict' | ||
https://devcenter.heroku.com/articles/managing-add-ons | ||
[https://devcenter.heroku.com/articles/managing-add-ons](https://devcenter.heroku.com/articles/managing-add-ons) | ||
@@ -117,7 +117,7 @@ Examples: | ||
$ heroku addons:upgrade heroku-redis:premium-2 | ||
$ heroku addons:upgrade heroku-redis:premium-2 | ||
Upgrade a specific add-on: | ||
$ heroku addons:upgrade swimming-briskly-123 heroku-redis:premium-2 | ||
$ heroku addons:upgrade swimming-briskly-123 heroku-redis:premium-2 | ||
`, | ||
@@ -124,0 +124,0 @@ needsAuth: true, |
64
index.js
@@ -7,3 +7,65 @@ 'use strict' | ||
name: 'addons', | ||
description: 'manage add-ons' | ||
overview: `Overview of Add-ons: | ||
Add-ons are created with the \`addons:create\` command, providing a reference | ||
to an add-on service (such as \`heroku-postgresql\`) or a service and plan | ||
(such as \`heroku-postgresql:hobby-dev\`). | ||
At creation, each add-on is given a globally unique name. In addition, each | ||
add-on has at least one attachment alias to each application which uses the | ||
add-on. In all cases, the owning application will be attached to the add-on. | ||
An attachment alias is unique to its application, and is used as a prefix to | ||
any environment variables it exports to the application. | ||
In this example, a \`heroku-postgresql\` add-on is created and its given name | ||
is \`postgresql-deep-6913\` with a default attachment alias of \`DATABASE\`: | ||
$ heroku addons:create heroku-postgresql --app my-app | ||
Creating postgresql-deep-6913... done, (free) | ||
Adding postgresql-deep-6913 to my-app... done | ||
Setting DATABASE_URL and restarting my-app... done, v5 | ||
Database has been created and is available | ||
$ heroku addons --app my-app | ||
Add-on Plan Price | ||
───────────────────────────────────────── ───────── ───── | ||
heroku-postgresql (postgresql-deep-6913) hobby-dev free | ||
└─ as DATABASE | ||
The add-on name and, in some cases, the attachment alias can be specified by | ||
the user. For instance, we can add a second database to the app, specifying | ||
both these identifiers: | ||
$ heroku addons:create heroku-postgresql --app my-app --name main-db --as PRIMARY_DB | ||
Creating main-db... done, (free) | ||
Adding main-db to my-app... done | ||
Setting PRIMARY_DB_URL and restarting my-app... done, v6 | ||
Database has been created and is available | ||
$ heroku addons --app my-app | ||
Add-on Plan Price | ||
───────────────────────────────────────── ───────── ───── | ||
heroku-postgresql (main-db) hobby-dev free | ||
└─ as PRIMARY_DB | ||
heroku-postgresql (postgresql-deep-6913) hobby-dev free | ||
└─ as DATABASE | ||
Attachment aliases can also be specified when making attachments: | ||
$ heroku addons:attach main-db --app my-app --as ANOTHER_NAME | ||
Attaching main-db as ANOTHER_NAME to my-app... done | ||
Setting ANOTHER_NAME vars and restarting my-app... done, v7 | ||
$ heroku addons --app my-app | ||
Add-on Plan Price | ||
───────────────────────────────────────── ───────── ───── | ||
heroku-postgresql (main-db) hobby-dev free | ||
├─ as PRIMARY_DB | ||
└─ as ANOTHER_NAME | ||
heroku-postgresql (postgresql-deep-6913) hobby-dev free | ||
└─ as DATABASE | ||
For more information, read [https://devcenter.heroku.com/articles/add-ons](https://devcenter.heroku.com/articles/add-ons).` | ||
} | ||
@@ -10,0 +72,0 @@ |
{ | ||
"name": "heroku-cli-addons", | ||
"description": "`heroku addons:*` commands", | ||
"version": "1.2.21", | ||
"version": "1.2.22", | ||
"author": "Bo Jeanes @bjeanes", | ||
@@ -6,0 +6,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183259
30
1