How to archive space in confluence using the Confluence Command Line Interface app

This article provides steps on how to archive space in confluence using our app Confluence Command Line Interface app

 Instructions

  • Use the updateSpace action to update a Confluence page. Execute the following action to archive a space using confluence CLI:

    --action updateSpace --space TEST --options status=archived

    Modify the space key in the above command as per your instance.

  • These are the parameters used in the CLI action:

    • --space - Space key. For some actions, a space name may also work.

    • --options - Client or action-specific advanced options.

  • Results in confluence:

 

It is recommended to test this scenario in a non-production environment or run the action with the --simulate parameter to verify the behavior before deploying in a production environment.