# Actions SDK installation in Ubuntu

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698055465563/2f289453-72cf-4ba4-9b0d-bfc151c4e193.png align="left")

### Overview

Google Assistant team has introduced a suite of new and improved developer tools to create conversational actions. Today we will see how to install the new gactions CLI in Ubuntu

### Objectives

1. What is Google Assistant
    
2. What’s new in developer tools
    
3. Features of Actions SDK
    
4. Installing gactions CLI for Ubuntu
    
5. CLI commands for Actions SDK
    

### 1\. What is Google Assistant

[Google Assistant](https://assistant.google.com/#?modal_active=none) is a personal voice assistant that offers a host of actions and integrations. From sending texts and setting reminders, to ordering coffee and playing music, the 1 million+ actions available suit a wide range of voice command needs.

### 2\. What’s new in developer tools

The assistant team has introduced the two new developer tools

* Actions Builder
    
* Actions SDK
    

#### Actions Builder

Actions Builder is a web-based IDE that lets you develop, test, and deploy actions directly in the Actions console. The new builder lets you visualize the conversational flow, manage Natural Language Understanding (NLU) training data.

#### Actions SDK

For those of you who prefer local IDEs, the updated Actions SDK provides a file-based representation of your Actions project. This lets you author NLU training data and conversational flows locally as well as bulk import and export training data.

### 3\. Features of Actions SDK

The new Actions SDK contains the following features

* An open file-based representation of an Actions project
    
* A command-line interface (CLI) — gactions
    
* Webhooks and a Node.js fulfillment library
    

#### Open file-based representation of an Actions project

We can build our action invocation and conversation models with intents, types, scenes, and prompts.

#### Command-line interface (CLI)-gactions

The gactions tool provides a CLI to bootstrap and automates the development of your Actions. It lets you initialize standard Action project files, push updates to the Actions console, deploy projects.

Using the CLI we can perform the common workflows like importing existing projects or starting work on a feature branch using the source control system.

#### Webhooks and a Node.js fulfillment library

We can write our business logic to our business service using the webhooks. Some of the use cases of the fulfillment library are extracting parameters from a user query and generating a multimodal experience (voice only and voice and visuals) for Google Assistant.

### 4\. Installing gactions CLI for ubuntu

Now we will install the gactions CLI for ubuntu. Download the installation package for gactions from [here](https://developers.google.com/assistant/actionssdk/gactions).

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698055467034/c78fd777-0e8a-402e-bd9c-da89b7fcc04a.jpeg align="left")

gactions installation package

Once the package is downloaded extract the files from the package and then open a terminal to check the file permission

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698055468329/1f71363f-db12-4a35-bc61-d80ed0604611.jpeg align="left")

file permission check

Now we will enable the execute permission in Linux like below

`sudo chmod +x gactions`

After entering the password permission will be enabled. Now we will move this file from the downloads folder to **/usr/local/bin**

To move the gactions file from the downloads folder to **/usr/local/bin** directory use the below command

`sudo mv /download-folder-path/aog-cli/gactions /usr/local/bin`

once the file is moved you can check whether the gactions is installed or not using the command

`gactions help or gactions version`

### 5\. CLI commands for Actions SDK

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698055469711/3da7a4a7-e0d5-4ff0-95de-2d019add2104.jpeg align="left")

For example, to pull a project from the web IDE to your local machine we would use the pull command like below

```javascript
gactions pull --project-id my-project-id
```

To push or pull a project you should enable the [Actions API](https://support.google.com/googleapi/answer/6158841)

> Note: You cannot create an actions project from your CLI

<iframe src="https://www.youtube.com/embed/QBUK6wCGVBQ?feature=oembed" width="700" height="393"></iframe>

### Resource Links

To know more about Actions SDK use the below links

* gactions — [Click here to view](https://developers.google.com/assistant/actionssdk/gactions)
    
* Project Synchronization — [Click here to view](https://developers.google.com/assistant/actionssdk/gactions/guide)
    

### Congratulations

You have learned how to install the new Actions SDK CLI in your local machine. I am excited to see what you are going to build on.

Happy Learning :)
