Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@osaas/cli

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osaas/cli

Open Source Cloud CLI

  • 4.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Command Line Utility for Open Source Cloud

CLI for working and scripting with Open Source Cloud

Prerequisites:

  • Node >18
  • An Open Source Cloud account and a Personal Access Token at hand

Install

npm install -g @osaas/cli

Usage

% osc
Usage: osc [options] [command]

Options:
  -v, --version                        Output the current version
  --env <environment>                  Environment to use
  -h, --help                           display help for command

Commands:
  admin
  list <serviceId>                     List all my service instances
  create [options] <serviceId> <name>  Create a service instance
  describe <serviceId> <name>          Get details for a service instance
  remove <serviceId> <name>            Remove a service instance
  logs <serviceId> <name>              Get logs for a service instance
  packager [options] <source> <dest>   Create streaming package from ABR bundle on S3
                                       and store on another S3 bucket
  compare
  live
  intercom
  transcribe [options] <source>        Generate subtitles from video or audio using Open
                                       AI Whisper
  db
  architect
  vod
  web
  help [command]                       display help for command

Examples

First set the environment variable OSC_ACCESS_TOKEN with your personal access token. Obtain the personal access token in the Eyevinn Open Source Cloud web console.

% export OSC_ACCESS_TOKEN=<personal-access-token>

Create a MinIO storage service and bucket

Create a MinIO storage server instance called mystore with the given credentials.

% osc create minio-minio mystore -o RootUser=admin -o RootPassword=abC12345678
Instance created:
{
  name: 'mystore',
  url: 'https://eyevinnlab-mystore.minio-minio.auto.prod.osaas.io',
  resources: {
    license: { url: 'https://api-minio-minio.auto.prod.osaas.io/license' },
    app: {
      url: 'https://eyevinnlab-mystore.minio-minio.auto.prod.osaas.io/'
    }
  },
  RootUser: 'admin',
  RootPassword: 'abC12345678'
}

Install the MinIO client to create a bucket on this server. If you already have MinIO client installed you can skip this step.

% brew install minio/stable/mc

Setup an alias to your server. Replace the URL below with the instance URL returned when created the store.

% mc alias set mystore https://eyevinnlab-mystore.minio-minio.auto.prod.osaas.io admin abC12345678

Create a bucket called mybucket

% mc mb mystore/mybucket
Bucket created successfully `mystore/mybucket`.

To access the bucket using the AWS S3 client:

% AWS_ACCESS_KEY_ID=admin AWS_SECRET_ACCESS_KEY=abC12345678 \
  aws s3 --endpoint=https://eyevinnlab-mystore.minio-minio.auto.prod.osaas.io \
  cp images.jpeg s3://mybucket/
upload: images.jpeg to s3://mybucket/images.jpeg
% AWS_ACCESS_KEY_ID=admin AWS_SECRET_ACCESS_KEY=abC12345678 \
  aws s3 --endpoint=https://eyevinnlab-mystore.minio-minio.auto.prod.osaas.io \
  ls s3://mybucket/
2025-01-21 10:35:11      12533 images.jpeg

List all my MinIO storage services

% osc list minio-minio

Enable CDN for access to MinIO bucket

Allow public read access to bucket.

% mc anonymous set download mystore/mybucket

Setup CDN property in AWS Cloudfront

% osc web cdn-create --provider=cloudfront --origin-path=/mybucket minio-minio mystore

Remove a MinIO storage bucket

% osc remove minio-minio mystore
Are you sure you want to remove mystore? (yes/no) yes

Create ABR file for VOD using SVT Encore

Create a VOD file for streaming from using a pipeline named demo. Follow the steps in the Eyevinn Open Source Cloud documentation on how to setup a pipeline.

% osc vod create demo https://testcontent.eyevinn.technology/mp4/VINN.mp4

List all channel-engine instance for tenant eyevinn as an OSC super admin

PAT_SECRET=<pat-secret> osc admin list-instances eyevinn channel-engine

Remove a channel-engine instance in dev env for tenant asdasd as an OSC super admin

PAT_SECRET=<pat-secret> osc --env dev admin remove-instance asdasd channel-engine mychannel

FAQs

Package last updated on 21 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc