cli-purge icon indicating copy to clipboard operation
cli-purge copied to clipboard

Proxy support

Open ahyear opened this issue 5 years ago • 5 comments

Hello

I have seen the subject in another issue but it is closed without answer. does this CLI support proxy using?

Thank You

ahyear avatar Nov 04 '19 11:11 ahyear

Proxy support is provided through the Akamai CLI by using the --proxy flag. See:

ladmin@macintosh ~> akamai help
Usage:
  akamai [global flags] command [command flags] [arguments...]

Built-In Commands:
  config
  help
  install (alias: get)
  list
  search
  uninstall
  update

Installed Commands:
  purge

Global Flags:
   --bash     Output bash auto-complete
   --zsh          Output zsh auto-complete
   --proxy value  Set a proxy to use

Copyright (C) Akamai Technologies, Inc

justinrummel avatar Nov 04 '19 13:11 justinrummel

ok , I used le last release 1.0.1 and i get on windows :

akamai-purge.exe help
Usage:
  akamai-purge [global flags] command [command flags] [arguments...]



Description:
   Purge Content from the Edge. URLs/CPCodes/Tags may be specified as a list of arguments, or piped in via STDIN

Built-In Commands:
  invalidate
  delete
  list
  help

Global Flags:
   --edgerc value  Location of the credentials file (default: "C:\\Users\\******\\.edgerc") [%AKAMAI_EDGERC%]
   --section value     Section of the credentials file (default: "ccu") [%AKAMAI_EDGERC_SECTION%]

Copyright (C) Akamai Technologies, Inc

ahyear avatar Nov 04 '19 14:11 ahyear

I see, you are using the purge binary vs. using it as a package under the Akamai CLI. Have you tried to use the Akamai CLI and it did not work for you? I'm not sure if Proxy support for the binary is available as all the packages assume the Akamai CLI binary is providing that support.

https://github.com/akamai/cli/releases

justinrummel avatar Nov 04 '19 14:11 justinrummel

I have not tried, I was looking for a standalone program and the CLI-Purge seemed a better and easier way to add it to my projets...

ahyear avatar Nov 04 '19 14:11 ahyear

I have posted a solution on issue #9

michaelcw02 avatar Jan 07 '21 16:01 michaelcw02