Coder Social home page Coder Social logo

isabella232 / cli-purge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akamai/cli-purge

0.0 0.0 0.0 29 KB

Akamai CLI for Purge allows you to purge cached content from the Edge using FastPurge (CCUv3).

Home Page: https://github.com/akamai/cli

License: Apache License 2.0

Shell 14.84% Go 85.16%

cli-purge's Introduction

Akamai CLI for Purge

Akamai CLI for Purge allows you to purge cached content from the Edge using FastPurge (CCUv3).

FastPurge will typically invalidate (recommended), or delete cached content in under five seconds.

Install

To install, use Akamai CLI:

akamai install purge

You may also use this as a stand-alone command by downloading the latest release binary for your system, or by cloning this repository and compiling it yourself.

Compiling from Source

If you want to compile it from source, you will need Go 1.7 or later, and the Dep package manager installed:

  1. Fetch the package:
    go get github.com/akamai/cli-purge
  2. Change to the package directory:
    cd $GOPATH/src/github.com/akamai/cli-purge
  3. Install dependencies using dep:
    dep ensure
  4. Compile the binary:
  • Linux/macOS/*nix: go build -o akamai-purge
  • Windows: go build -o akamai-purge.exe
  1. Move the binary (akamai-purge or akamai-purge.exe) in to your PATH

Usage

akamai purge [global flags] command [--cpcode --tag] [URLs/CPCodes/Cache Tags...]

You may specify URLs/CPCodes as a list of arguments, or pipe in a newline-delimited list via STDIN

Commands

  • invalidate — Invalidate content
  • delete — Delete content
  • list — List commands
  • help — Shows a list of commands or help for one command

Global Flags

  • --edgerc value — Location of the credentials file (default: $HOME) [$AKAMAI_EDGERC]
  • --section value — Section of the credentials file (default: "ccu") [$AKAMAI_EDGERC_SECTION]
  • --help, -h — show help
  • --version, -v — print the version

cli-purge's People

Contributors

csdaraujo avatar dshafik avatar kporowski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.