CLI tool for transferring Microsoft Power Pages sites between environments
Project description
Zooz CLI
A command-line interface tool for transferring Microsoft Power Pages sites between environments.
Features
- Interactive environment selection from
pac auth list - Interactive site selection from
pac pages list - Automatic site ID detection from current environment
- Cross-platform compatibility (Mac/Windows)
- Simple and intuitive CLI interface
Installation
Prerequisites
- Python 3.7 or higher
- Microsoft Power Platform CLI (
pac) installed and configured - PyYAML package (installed automatically)
Install from PyPI (Recommended)
Install the latest version directly from PyPI:
pip install zooz-cli
Or with pip3:
pip3 install zooz-cli
Install from source
- Clone or download the project
- Navigate to the project directory
- Install the CLI tool:
pip install .
Or for development:
pip install -e .
Usage
Transfer Site Between Environments
Simply run the command and follow the interactive prompts:
zooz transfer-site
Command Options
--download-path: Path where to download the site (default:./)--upload-path: Path from where to upload the site (default: auto-detected from downloaded folder)
Examples
# Basic usage with interactive prompts
zooz transfer-site
# With custom download path
zooz transfer-site --download-path ./downloads
# With both custom paths
zooz transfer-site --download-path ./downloads --upload-path ./uploads
How it works
- Source Environment Selection: Displays available environments from
pac auth listand prompts for interactive selection - Add New Environments: Option to add new environments by entering "0" and providing environment URL
- Site Selection: Shows available sites from
pac pages listin the selected environment and prompts for interactive selection - Download: Downloads the selected site using
pac pages download - Auto-Detection: Automatically finds the downloaded folder for upload
- Target Environment Selection: Prompts for target environment selection
- Upload: Uploads the site from the downloaded folder to the selected target environment using
pac pages upload - Cleanup: Automatically deletes the downloaded folder after successful transfer
Requirements
The tool expects:
- The
pacCLI to be installed and authenticated with your environments - Proper permissions to download from source and upload to target environments
- Access to Power Pages sites in both source and target environments
Project Structure
zooz-cli/
├── bin/
│ └── zooz # Executable wrapper
├── src/
│ └── cli.py # Main CLI implementation
├── setup.py # Installation script
└── README.md # This file
Development
To contribute to this project:
- Clone the repository
- Install in development mode:
pip install -e . - Make your changes
- Test with:
zooz transfer-site /path/to/test/project
License
MIT License
Support
For issues and questions, please contact the development team.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zooz_cli-1.0.4.tar.gz.
File metadata
- Download URL: zooz_cli-1.0.4.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60c37ce49eac6cdb1e83ed7268046c66961818b31105920c29229b0c20676e2d
|
|
| MD5 |
695eb324ca79c055f7aeebcb764b14ac
|
|
| BLAKE2b-256 |
00c33c3d920427271a9088fdedc51502950d029a7a3051c3a174ba29cce8c910
|
File details
Details for the file zooz_cli-1.0.4-py3-none-any.whl.
File metadata
- Download URL: zooz_cli-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb0281bffe7387fd1bf41b2eebf23d708a253263e4ececf3fd05ee7e83920e87
|
|
| MD5 |
e0ac9719ead600d44e293b8cda6c6b40
|
|
| BLAKE2b-256 |
35b8712a80538fcfe72f95d54859fbe7be100a1c87de9a0a1c6721e9ae437868
|