Appshare CLI
Appshare CLI helps you create new apps and start the development server easily.
Start Command
The start command is used to initialize and run the development server.
Usage
npx appshare-cli start
Options
| Option | Description | Default |
|---|---|---|
-h, --https | Start the server with HTTPS protocol | true |
--port | Port number to start the server | 3000 |
With these options, you can configure how the Appshare CLI runs the development server to fit your needs.
Examples
Start the server with the default settings:
npx appshare-cli start
Start the server with a custom port:
npx appshare-cli start --port 4000
Start the server without HTTPS:
npx appshare-cli start --https false
Start the server with a custom port and without HTTPS:
npx appshare-cli start --https false --port 4000
create-app Command
The create-app command is used to create a new app.
Usage
npx appshare-cli create-app
deploy Command
The deploy command is used to deploy your apps to the Appshare staging environment. This environment can be used to test the apps before deploying them to production.
After running the command, you will be prompted to select the branch you want to deploy.
Before running deploy make sure you have committed all your changes and pushed them to the remote repository.
Usage
npx appshare-cli deploy
Viewing Deployment Progress
To monitor the progress of your deployment:
- Go to Appshare Administration
- Click on Settings
- Navigate to the Developers tab
- Find the Deployment section to view your deployment status