Skip to content

CLI pull from cloud#2061

Merged
255kb merged 1 commit intomainfrom
feature/1736-cli-cloud-load
Jan 8, 2026
Merged

CLI pull from cloud#2061
255kb merged 1 commit intomainfrom
feature/1736-cli-cloud-load

Conversation

@255kb
Copy link
Member

@255kb 255kb commented Jan 8, 2026

  • add new --token flag to the CLI and support for cloud:// URLs
  • add app dialog to display instructions

Closes #1736

Technical implementation details

Checklist

  • data migration added (@mockoon/commons)
  • commons lib tests added (@mockoon/commons)
  • commons-server lib tests added (@mockoon/commons-server)
  • CLI tests added (@mockoon/cli)
  • desktop UI automated tests added (@mockoon/app)

Closes #{issue_number}

Copilot AI review requested due to automatic review settings January 8, 2026 10:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for loading Mockoon environments from the cloud using a new cloud:// URL scheme in the CLI, along with a new --token flag for authentication. The desktop app also receives a new modal dialog that provides self-hosting instructions to users with Team and Enterprise plans.

Key changes:

  • CLI now supports cloud:// URLs for loading environments from Mockoon's cloud API with bearer token authentication
  • New --token flag (or MOCKOON_CLOUD_TOKEN environment variable) for cloud authentication
  • Desktop app includes a new "Self-host with CLI" menu option and modal with setup instructions

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/cli/src/config.ts Adds cloud scheme and API URL configuration with production/development environment detection
packages/cli/src/libs/data.ts Extends loadFile and parseDataFile to support cloud:// URLs with bearer token authentication
packages/cli/src/commands/start.ts Adds --token flag and validation to ensure tokens are provided for cloud URLs
packages/app/src/shared/shared-config.ts Adds URLs for cloud deployment documentation and account authentication settings
packages/app/src/renderer/app/services/ui.service.ts Integrates new selfHostingInstructions modal into the modal management system
packages/app/src/renderer/app/components/svg/svg.component.ts Clarifies comment about using Material Icons (not symbols)
packages/app/src/renderer/app/components/modals/self-hosting-instructions-modal/self-hosting-instructions-modal.component.ts New component providing self-hosting instructions with CLI command generation
packages/app/src/renderer/app/components/modals/self-hosting-instructions-modal/self-hosting-instructions-modal.component.html Template for self-hosting instructions modal with copy-to-clipboard functionality
packages/app/src/renderer/app/components/menus/environments-menu/environments-menu.component.ts Adds "Self-host with CLI" menu item for cloud environments (Team/Enterprise only)
.vscode/launch.json Updates debug configuration to test cloud:// URL loading

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@255kb 255kb force-pushed the feature/1736-cli-cloud-load branch from a0adbe4 to 8d35c32 Compare January 8, 2026 14:38
- add new --token flag to the CLI and support for cloud:// URLs
- add app dialog to display instructions

Closes #1736
@255kb 255kb force-pushed the feature/1736-cli-cloud-load branch from 8d35c32 to 5fa96b8 Compare January 8, 2026 14:40
@255kb 255kb merged commit c68a8fe into main Jan 8, 2026
15 checks passed
@255kb 255kb deleted the feature/1736-cli-cloud-load branch January 8, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI: Load environments from the Cloud

2 participants