0

This questions maybe already asked but that is not solve my issue.

I'm trying to deploy my gactions script in google cloud function. So for that I have installed the gactions CLI in Ubuntu 20.04 machine, but I'm having some problems.

The mentioned gactions CLI comments not working in terminal, it's shows [ERROR] unknown command "test" for "gactions" error message.

Eg: gactions test --action_package action.json --project PROJECT_ID

enter image description here

Am using gactions version 3.2.0. Please suggest me how to use those comments in terminal.

I have tried with sudo gactions test --action_package action.json --project PROJECT_ID that also not working.

Ramesh S
  • 585
  • 3
  • 10
  • 32

1 Answers1

1

As the error [ERROR] unknown command "test" for "gactions" describes that the test command is not validating by the gactions CLI.

Might be due to below reasons, can you you have a check on this :

  • As per this official doc , you are trying to execute the text command but make sure the action package name given by you is correct.
  • Can you try any other arguments mentioned in the gactions supported arguments doc and have a try whether those are validating or not.
  • Enable the Actions API in the Google Cloud console by following the instructions in Enable and disable APIs. This allows gactions to interact with your project.
  • Make sure you have installed the gactions CLI correctly by running the command 'gactions version' to check the version number. If the version number matches the version you installed, then the CLI is probably installed correctly. If not reinstall the CLI using this gactions overview
Hemanth Kumar
  • 2,728
  • 1
  • 4
  • 19
  • Hi @Hemanth Kumar thanks for the answer. I checked all the points. All the points are correct. But still test commend not working – Ramesh S Feb 20 '23 at 04:49
  • @RameshS : Can you share the screenshot post executing the other arguments mentioned in this [gactions supported arguments doc](https://developers.google.com/assistant/df-asdk/actions-sdk/gactions-cli#supported-arguments) – Hemanth Kumar Feb 20 '23 at 05:03
  • 1
    I have uploaded the images please check https://ibb.co/cDKV3C5 and https://ibb.co/xmPcCm4 – Ramesh S Feb 20 '23 at 05:37
  • @RameshS : The only solution now is to reinstall the CLI again using this [gactions installing doc](https://developers.google.com/assistant/actionssdk/gactions#install_the_gactions_command-line_tool) – Hemanth Kumar Feb 21 '23 at 11:21
  • can you please provide me the link for gactions version 2.2.3 for Ubuntu – Ramesh S Feb 21 '23 at 11:41
  • I found the issue that is version mismatch – Ramesh S Feb 21 '23 at 11:41
  • Can you update the same in my answer and accept it. – Hemanth Kumar Feb 21 '23 at 11:44
  • 1
    how can I install gactions version 2.2.3 – Ramesh S Feb 21 '23 at 11:50
  • I got [2.2.2v](https://dl.google.com/gactions/updates/bin/linux/arm/gactions) and will share it with you if i get 2.2.3 – Hemanth Kumar Feb 21 '23 at 11:52
  • Hi while using this commend login is not happens `./gactions --verbose test --action_package action.json --project PROJECT-ID` am getting this error `Access blocked: Assistant CLI’s request is invalid` – Ramesh S Feb 22 '23 at 07:00
  • Raise a new question as per [stack guidelines](https://meta.stackoverflow.com/questions/275908/more-than-one-question-per-post/275909#275909). So, that it could be helpful for community members to follow. – Hemanth Kumar Feb 23 '23 at 03:20
  • 1
    Hi please check here https://stackoverflow.com/questions/75541029/gactions-access-blocked-assistant-cli-s-request-is-invalid – Ramesh S Feb 23 '23 at 05:50