
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@fastly/heroku-plugin
Advanced tools
Heroku CLI plugin for interacting with fastly configuration.
Install the heroku-fastly plugin using the heroku plugins command. More details are available in Heroku's Devcenter.
heroku plugins:install @fastly/heroku-plugin
The CLI Plugin includes the commands: tls, verify, and purge.
To add TLS to a domain your pricing plan must include a TLS domain and the domain must be configured in the active version of your Fastly Service. The process involves creating the TLS Domain, verifying ownership of your domain, and checking the verification status of your domain. Usage:
heroku fastly:tls DOMAIN --app [HEROKU_APP_NAME]
To add TLS/SSL to a custom domain:
heroku fastly:tls www.example.org --app my-fast-app
The output of add TLS/SSL command will provide the required DNS record values that need to be add to your DNS provider configuration. These include the acme challenge as well as A/CNAME record entries.
Verifies the state of the add TLS/SSL request.
heroku fastly:verify www.example.org --app my-fast-app
To remove TLS/SSL from a custom domain, include the the -d flag:
heroku fastly:tls -d www.example.org --app my-fast-app
Issue a surrogate key purge or purge all. For reference, see the Purge API docs. Usage:
heroku fastly:purge [KEY]
To purge the entire cache:
heroku fastly:purge --all --app my-fast-app
To purge a surrogate-key from the cache:
heroku fastly:purge my-surrogate-key --app my-fast-app
To softpurge a key from the cache:
heroku fastly:purge my-surrogate-key --soft --app my-fast-app
Clone the repo and run npm install to install dependencies.
Further detail on building Heroku CLI plugins is available in the devcenter.
cd into heroku-fastly reponpm install.heroku plugins:link.heroku plugins, will return something like:heroku-fastly 1.0.7 (link) /Users/your-path/heroku-fastly
tls command. Run heroku fastly:tls www.example.org --app my-fast-app. This command will return something like:The domain www.example.org is currently in a state of pending and the issuing of a certificate may take up to 30 minutes
To start the domain verification process create a DNS CNAME record with the following values
DNS Record Type: CNAME
DNS Record Name: _acme-challenge.www.example.org
DNS Record value(s): pkfsreworlfwh23r66.fastly-validations.com
Alongside the initial verification record configure the following CNAME record
DNS Record Type: CNAME
DNS Record Name: www.example.org
DNS Record value(s): j.sni.global.fastly.net
As an alternative to using a CNAME record the following A record can be configured
DNS Record Type: A
DNS Record Name: www.example.org
DNS Record value(s): 151.101.2.132, 151.101.66.132, 151.101.130.132, 151.101.194.132
verify command. Run heroku fastly:verify www.example.org --app my-fast-app, will return something like: The domain www.example.org is currently in a state of pending and the issuing of a certificate may take up to 30 minutes
To start the domain verification process create a DNS CNAME record with the following values
DNS Record Type: CNAME
DNS Record Name: _acme-challenge.www.example.org
DNS Record value(s): pkfsreworlfwh23r66.fastly-validations.com
Alongside the initial verification record configure the following CNAME record
DNS Record Type: CNAME
DNS Record Name: www.example.org
DNS Record value(s): j.sni.global.fastly.net
As an alternative to using a CNAME record the following A record can be configured
DNS Record Type: A
DNS Record Name: www.example.org
DNS Record value(s): 151.101.2.132, 151.101.66.132, 151.101.130.132, 151.101.194.132
purge command. Run heroku fastly:purge --all --app my-fast-app, will return something like:{ status: 'ok' }
Tests can be run with npm test.
We follow Semantic versioning with regards to the
version of this plugin. Any pull-requests to this project must include an
appropriate change to the package.json file (as well as the
package-lock.json file) and the CHANGELOG.md file.
After any PR has been merged, run an npm publish command from the master
branch after pulling all changes in from github.
Have an issue? Please send an email to support@fastly.com.
Want to see new functionality? Please open a pull request.
FAQs
Heroku CLI Plugin for interacting with Fastly CDN
The npm package @fastly/heroku-plugin receives a total of 1 weekly downloads. As such, @fastly/heroku-plugin popularity was classified as not popular.
We found that @fastly/heroku-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 56 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.