This article provides steps on how to archive space in confluence using our app Confluence Command Line Interface app
\uD83D\uDCD8 Instructions
Use 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.
The parameters used in the CLI action are
--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.