zooz-cli-npm
v1.1.8
Published
CLI tool for transferring Microsoft Power Pages sites between environments with persistent environment switching and same-auth transfers
Maintainers
Readme
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/Linux)
- Simple and intuitive CLI interface
- Available as both Python and npm packages
Prerequisites
- Microsoft Power Platform CLI (
pac) installed and configured - Either Python 3.7+ or Node.js 14+
Installing Microsoft Power Platform CLI
Windows:
# Via winget
winget install Microsoft.PowerPlatformCLI
# Or via npm
npm install -g @microsoft/powerplatform-cliMac/Linux:
npm install -g @microsoft/powerplatform-cliOr download from: https://aka.ms/PowerAppsCLI
Installation
You can install Zooz CLI either via npm (recommended) or Python pip.
Option 1: Install from npm (Recommended)
# Install globally
npm install -g zooz-cli-npm
# Or using yarn
yarn global add zooz-cli-npmOption 2: Install from Python PyPI
Install the latest version directly from PyPI:
pip install zooz-cliOr with pip3:
pip3 install zooz-cliInstall 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-siteCommand 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 ./uploadsHow 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 fileDevelopment
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.
