---
title: "Importing packages on Acquia Cloud"
date: "2022-04-07T08:42:19+00:00"
summary: "Learn how to seamlessly import Site Studio packages on Acquia Cloud using Cloud hooks. Discover step-by-step instructions for full package imports, individual package imports, and upgrading processes to optimize your Drupal site deployment."
image:
type: "page"
url: "/drupal-starter-kits/add-ons/site-studio/importing-packages-acquia-cloud"
id: "10a08a8c-a55a-41ca-8664-7318ab077695"
---

Table of contents will be added

To deploy your Site Studio packages alongside Drupal configuration you may want to utilise [Acquia Cloud hooks](https://github.com/acquia/cloud-hooks) to perform import operations during code changes.

Import full package
-------------------

Import Site Studio package (_drush sitestudio:package:import_) - import command will take care of performing the required level of rebuild and will clear the render cache as part of the process.

_Example_:

    drush @$site'.'$target_env updatedb --no-cache-clear -y
    drush @$site'.'$target_env cache:rebuild
    drush @$site'.'$target_env cim
    drush @$site'.'$target_env sitestudio:package:import 
    drush @$site'.'$target_env cache:rebuild

Import individual packages
--------------------------

Import Site Studio package (_drush sitestudio:package:import –--path=</path/to/package/directory>_) - import command will take care of performing the required level of rebuild and will clear the render cache as part of the process.

_Example_:

    drush @$site'.'$target_env updatedb --no-cache-clear -y
    drush @$site'.'$target_env cache:rebuild
    drush @$site'.'$target_env cim -y 
    drush @$site'.'$target_env sitestudio:package:import --path=path/to/package/dir
    drush @$site'.'$target_env sitestudio:package:import --path=path/to/other/package/dir
    drush @$site'.'$target_env cache:rebuild

Import and Upgrade
------------------

When upgrading between versions or when installing Site Studio for the first time; additional commands should also be run (see: [Upgrading Site Studio](/drupal-starter-kits/add-ons/site-studio/upgrading-site-studio "Upgrading Site Studio"))

_Example:_

    # Run Drupal database updates
    drush @$site'.'$target_env updatedb --no-cache-clear -y
    drush @$site'.'$target_env cache:rebuild
    
    # Import Drupal configuration
    # - Site Studio packages are excluded via config split.
    drush @$site'.'$target_env cim -y 
    
    # Import Site Studio UI assets for this version
    drush @$site'.'$target_env cohesion:import
    
    # Import individual package 1
    drush @$site'.'$target_env sitestudio:package:import --path=path/to/package/dir
    # Import individual packages 2
    drush @$site'.'$target_env sitestudio:package:import --path=path/to/other/package/dir
    
    # Run a full Site Studio rebuild when upgrading
    #  - exclude cache clear to allow this to be part of a separate batch process
    drush @$site'.'$target_env cohesion:rebuild --no-cache-clear
    
    
    drush @$site'.'$target_env cache:rebuild