1.0.6 • Published 11 months ago

instacode-cli v1.0.6

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
11 months ago

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-cli

Commands

icode get <appName>

Starts an application by fetching its latest published version and downloading required files.

icode get myApp

Process Flow:

  1. Retrieves the latest published version of <appName>.
  2. Displays a summary of the application version, total files, and publisher details.
  3. Asks the user where to download the files (default: ~/instacode/<appName>).
  4. Downloads the required files to the specified location.

icode current

Displays details of the currently active application.

icode current

Output Example:

Current application details:
App: example-app
Version: 1.2.3
Status: Running
Location: /Users/johndoe/instacode/example-app

icode update

Updates an existing application to its latest version.

icode update

Process Flow:

  1. Checks for available updates for the currently active application.
  2. Prompts the user before applying updates.
  3. Downloads and applies the latest updates.

Usage Example

icode get example-app

Example 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=mysecuretoken

License

This project is licensed under the MIT License.