@shuffle-dev/cli
v1.0.3
Published
Shuffle Editor CLI tool
Readme
Shuffle CLI
Command-line tool for managing projects in Shuffle Editor
Shuffle CLI is a simple tool that lets you download, edit, and sync projects from Shuffle Editor directly from your terminal. No manual installation is required - everything works through npx!
🚀 Getting Started
Option 1: Run from npm (recommended):
npx @shuffle-dev/cli --helpOption 2: Run directly from GitHub:
npx https://github.com/shuffle-dev/cli --helpOption 3: Install globally:
npm install -g @shuffle-dev/cli
shuffle --help💡 The CLI automatically detects how it was installed and shows appropriate usage instructions:
- When using
npx, it shows "Usage: npx @shuffle-dev/cli [command]"- When installed globally, it shows "Usage: shuffle [command]"
📋 Available Commands
Note: In all examples below, you can replace
npx @shuffle-dev/cliwith:
npx @shuffle-dev/cli(if running from npx)shuffle(if installed globally)
Authentication
Sign in to your Shuffle account:
npx @shuffle-dev/cli authAfter running this command, your browser will open automatically, allowing you to complete the login process.
Sign out:
npx @shuffle-dev/cli logoutProject Management
List all your Shuffle projects:
npx @shuffle-dev/cli projectsList projects downloaded locally:
npx @shuffle-dev/cli listDownload a project:
npx @shuffle-dev/cli get PROJECT_IDDownload to a specific location:
npx @shuffle-dev/cli get PROJECT_ID ./my-projectSync changes from Shuffle to your local copy:
npx @shuffle-dev/cli sync PROJECT_IDInteractive sync (choose a project from the list):
npx @shuffle-dev/cli syncProject Status & Maintenance
Check current directory project status:
npx @shuffle-dev/cli statusClean up invalid project locations:
npx @shuffle-dev/cli cleanup⭐ Typical Workflow
- Sign in:
npx @shuffle-dev/cli auth - Check your projects:
npx @shuffle-dev/cli projects - Download a project:
npx @shuffle-dev/cli get PROJECT_ID - Check project status:
npx @shuffle-dev/cli status - Edit project in Shuffle
- Sync changes to your local copy:
npx @shuffle-dev/cli sync PROJECT_ID
💡 Pro Tips
- Use
npx @shuffle-dev/cli syncwithout PROJECT_ID for interactive project selection - Use
npx @shuffle-dev/cli listto see what projects you have downloaded locally - Use
npx @shuffle-dev/cli statusto check if you're in a Shuffle project directory - Use
npx @shuffle-dev/cli cleanupto remove references to deleted project folders
💻 Requirements
- Node.js version 14.0.0 or higher
- Web browser for authentication
🔧 Troubleshooting
"shuffle: command not found" error
If you see this error, be sure to:
- You're using
npx- always use the full command:npx @shuffle-dev/cli COMMAND - Or install globally:
npm install -g @shuffle-dev/clithen useshuffle COMMAND
Authentication Issues
- Check if your browser is blocking popup windows
- Make sure ports 8080-8085 on localhost are available
Connection Issues
- Check your internet connection
- Check firewall settings
File Issues
- Make sure you have write permissions in the target folder
- Check if you have enough disk space
Help
Have questions or problems? Contact the Shuffle team ([email protected]) or report an issue in the project repository.
