1.0.6 ⢠Published 11 months ago
instacode-cli v1.0.6
instacode-cli
instacode-cli is a command-line tool designed to streamline application deployment and management using Azure cloud services.
Requirements
This application requires the following environment variables to be set:
AZURE_ACCOUNT- The Azure storage account name.AZURE_COMPONENT- The Azure component associated with the app.AZURE_SAS_TOKEN- The SAS token for secure authentication.
Ensure these variables are properly set in your environment or in a .env file before running the CLI.
Installation
You can install instacode-cli globally using npm:
npm install -g instacode-cliCommands
icode get <appName>
Starts an application by fetching its latest published version and downloading required files.
icode get myAppProcess Flow:
- Retrieves the latest published version of
<appName>. - Displays a summary of the application version, total files, and publisher details.
- Asks the user where to download the files (default:
~/instacode/<appName>). - Downloads the required files to the specified location.
icode current
Displays details of the currently active application.
icode currentOutput Example:
Current application details:
App: example-app
Version: 1.2.3
Status: Running
Location: /Users/johndoe/instacode/example-appicode update
Updates an existing application to its latest version.
icode updateProcess Flow:
- Checks for available updates for the currently active application.
- Prompts the user before applying updates.
- Downloads and applies the latest updates.
Usage Example
icode get example-appExample Output:
Getting latest for example-app
š Publish Summary:
App: example-app
App Version: 1.2.3
Total Files: 45
Published By: developer@example.com
Date: 2024-02-22
Where do you want to download the files? (/Users/johndoe/instacode/example-app)Configuration
You can create a .env file in the root of your project and define the required environment variables:
AZURE_ACCOUNT=myazureaccount
AZURE_COMPONENT=mycomponent
AZURE_SAS_TOKEN=mysecuretokenLicense
This project is licensed under the MIT License.