Skip to main content

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/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-cli

Mac/Linux:

npm install -g @microsoft/powerplatform-cli

Or 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-npm

Option 2: Install from Python PyPI

Install the latest version directly from PyPI:

pip install zooz-cli

Or with pip3:

pip3 install zooz-cli

Install from source

  1. Clone or download the project
  2. Navigate to the project directory
  3. 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

  1. Source Environment Selection: Displays available environments from pac auth list and prompts for interactive selection
  2. Add New Environments: Option to add new environments by entering "0" and providing environment URL
  3. Site Selection: Shows available sites from pac pages list in the selected environment and prompts for interactive selection
  4. Download: Downloads the selected site using pac pages download
  5. Auto-Detection: Automatically finds the downloaded folder for upload
  6. Target Environment Selection: Prompts for target environment selection
  7. Upload: Uploads the site from the downloaded folder to the selected target environment using pac pages upload
  8. Cleanup: Automatically deletes the downloaded folder after successful transfer

Requirements

The tool expects:

  • The pac CLI 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:

  1. Clone the repository
  2. Install in development mode: pip install -e .
  3. Make your changes
  4. Test with: zooz transfer-site /path/to/test/project

License

MIT License

Support

For issues and questions, please contact the development team.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zooz_cli-1.1.4.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zooz_cli-1.1.4-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file zooz_cli-1.1.4.tar.gz.

File metadata

  • Download URL: zooz_cli-1.1.4.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for zooz_cli-1.1.4.tar.gz
Algorithm Hash digest
SHA256 155fbab353a5e42f8c9d6d79fc7a3f2c2933860ea686c6a728420c7e3aedd2e3
MD5 2e50af9d5aee49d1f16110ae0c6db7c4
BLAKE2b-256 3d4c6c93d44100c18ff0670ae93ef759d7efd8459457279887c71bcf78c21e3c

See more details on using hashes here.

File details

Details for the file zooz_cli-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: zooz_cli-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for zooz_cli-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 728208ddb4e99c31215e9a2d38feee0c4e916b8c4b9b7c93fc56dcb865faa4c9
MD5 99f6742f3666d8db83ac7b4cc8e1a7e1
BLAKE2b-256 f6b70a6008591673695280e8bb2baed4c17f7d9507a4c8a82b5d936f14da52ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page