@forge/cli-shared

9.3.1-next.2-experimental-f258a6d9.4.0-next.3
out/ui/text.js
~out/ui/text.jsModified
+33−1
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -366,8 +366,37 @@
                 desc: 'lists all Developer Spaces'
             }
         }
     },
+    site: {
+        cmd: {
+            desc: 'manage demo sites'
+        },
+        provision: {
+            cmd: {
+                desc: 'provision a demo site for development and testing'
+            },
+            requesting: 'Requesting a demo site...',
+            checkingExisting: 'Checking for an existing demo site...',
+            alreadyExists: `${greenTick} You already have a demo site. Here are its details:`,
+            detach: 'You can press Ctrl+C to stop watching — provisioning will continue in the background.',
+            poll: {
+                start: 'Provisioning your demo site...',
+                status: (status) => `Status: ${status}`,
+                completed: `${greenTick} Demo site provisioned.`,
+                timeoutSpinner: 'Still provisioning — continuing in the background.'
+            },
+            backgroundTimeout: 'Provisioning timed out. You can close this window — the job will continue in the background.',
+            completedWithErrors: 'Demo site is ready, with some setup warnings.',
+            noResult: 'Provisioning finished but no site details were returned.',
+            table: {
+                name: 'Site name',
+                siteUrl: 'Site URL',
+                status: 'Status',
+                expires: 'Expires'
+            }
+        }
+    },
     register: {
         intro: 'Registering the app to you.',
         cmd: {
             desc: "register an app you didn't create so you can run commands for it",
@@ -1000,8 +1029,9 @@
         devAppInstallWarning: `${chalk_1.default.bold('WARNING:')} You are about to install a development app to a production site. If you do not intend to test your app, we strongly recommend that you deploy your app to production and install the production version instead.`,
         majorVersionIsNotLatest: (versionToInstall) => `WARNING: You are about to install a previous version of the app. (${versionToInstall})`,
         devAppInstallConfirm: `Are you sure you want to proceed?`,
         optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
+        optionDemoSite: 'install onto your demo site instead of a site passed with --site',
         optionUpgrade: 'upgrade an existing installation (allowed values: all (default), code)',
         optionLicense: 'specify the license value for the app (allowed values: active, standard, advanced, inactive, and trial)',
         optionLicenseModes: 'specify the list of license mode value for the app (allowed values: user-access)',
         optionUsersWithAccess: 'specify the list of Atlassian Account IDs(aaid) for users who have access to the app',
@@ -1052,9 +1082,11 @@
                 `https://developer.atlassian.com/console/myapps/${appId}/distribution`,
             appendRequestIdToErrorMessage: (message, requestId) => `${message} For more help on this issue, please reach out to support (${buildTerminalLink('https://developer.atlassian.com/support')}) and provide them the following request ID: ${requestId}`,
             majorVersionNotFound: 'The major version you specified does not exist. Check the version number and try again.',
             installationLimitReached: 'Installation error: The target site already has the maximum number of apps installed. To install this app there, uninstall any unused apps first.',
-            tooManyRequests: 'Too many requests'
+            tooManyRequests: 'Too many requests',
+            noDemoSite: `No demo site found. Run ${forge('site', 'provision')} to create one, or use ${forge('install', '--site <site>')} with another site.`,
+            demoSiteWithSite: `Use either ${forge('install', '--demo-site')} or ${forge('install', '--site <site>')}, not both.`
         },
         debug: {
             ccpEntitlementQueryFailed: `Non-essential request failed. Continuing installation.`
         },