Problem to install GC CLI

Hi everyone.

Sorry, but it is the first time that i'm trying to install a CLI.
So i'm discovering GO and GC.

When i'm following the installation Step, i'm blocked at the beginning on comand :
env GO111MODULE=on go install github.com/mypurecloud/platform-client-sdk-cli/build/gc@latest

'env' is not recognized as a comment.
So i tried from go install github....
And that works, but seems to not be correctly installed.

Any idea to help ?
Perhaps Go is not working ?
image

Thank you for your help.

Hey Matt,

Dooh! Our documentation still assumes a Linux/OS X view of the world. What you need to do is first set the GO111MODULE as an environment variable = on. env is a Linux/Unix/OS X view of the world. Once you set the environment variable you can run:

go install github.com/mypurecloud/platform-client-sdk-cli/build/gc@latest

Also, we do pre-compile the windows binary. It can be downloaded from the developer center.

Please let us know if you are still having any issues.

Thanks,
John Carnell
Manager, Developer Engagement

Thank you for your quick answer.
It's more clear for me.

My issue now is that 'gc' alias is already used :smiley:
image

So i can't use gc command.

Have you an idea for that ?

Thanks

Hi Matt,

So you have a couple of options:

  1. Download the binary and then rename it to something like gcli.exe.
  2. Before you build the code unset the alias in your shell and then run the command. The binary should be put under the go/bin directory and then you can rename it there.

Thanks,
John

Thanks,
John

Great it works !

Thanks a lot for that help.
Now i can imagine plenty of script to play with :smiley:

Not sure of my first usage, but i think i will play with it for group management !

Hi Matt,

Great! We did not expose all of the endpoints in the CLI so please let me know if there is any endpoints that you wish you do and we can see about turning it around. Also, we are doing a DevCast webinar tomorrow on the CLI. If you are interested signup for it. Here is the link.

Also take a look at our recipes repo for some of the stuff we have started using it for.

Thanks,
John Carnell
Manager, Developer Engagement

Hi,

Yes i will be there on the WebCast.
On my point of view, the need around CLI are (not sure the API are available :smiley: ) :

  • Create/modify object (User ACD information (Queues, skills, autoanswer), Queues, Skills, Users Password)
  • Manage administration :
    • Genesys Cloud Edges : Status, update, restart
    • Trunk : Status
    • Get Metrics view : Real time number of call on Edges/Trunk, Historical number of calls on Edges/Trunk
  • Manage office users : Group users, order of users of call group.

Hi Matt,

Cool we have some of the queue and skills APIs available. I have not made all of the edge apis available yet. The edge (and analytics apis) have a lot of endpoints so I need to go through and map them out with the dev team who owns them, but my goal is tor try and work on the analytics and edge APIs next.

Thanks,
John Carnell
Manager, Developer Engagement

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.