
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@osaas/cli
Advanced tools
CLI for working and scripting with Open Source Cloud
Prerequisites:
npm install -g @osaas/cli
% 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 Administrative commands for OSC super admins
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 [options] <serviceId> <name> Remove a service instance
restart <serviceId> <name> Restart a service instance
logs <serviceId> <name> Get logs for a service instance
list-reserved-nodes List all my reserved nodes
service-access-token <serviceId> Generate a service access token for a service
secrets Manage secrets for services (list, create, update, remove)
packager [options] <source> <dest> Create streaming package from ABR bundle on S3
and store on another S3 bucket
compare vmaf <reference> <distorted> <result> Compare two video files using VMAF
live Live streaming commands
intercom Intercom messaging commands
transcribe [options] <source> Generate subtitles from video or audio using OpenAI Whisper
db Database management commands
architect AI chat assistant for architecture guidance
vod create [options] <name> <source> Create a VOD file ready for streaming
vod cleanup <name> Remove VOD pipeline but keep VOD files
web publish [options] <name> <dir> Publish a website
web cdn-create [options] <serviceId> <instanceName> Create a CDN distribution
web config-create <name> Create a configuration service instance
web config-delete [options] <name> Delete a configuration service instance
web config-to-env <name> Export configuration values as environment variables
help [command] display help for command
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 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
% osc list minio-minio
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
% osc remove minio-minio mystore
Are you sure you want to remove mystore? (yes/no) yes
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
Create a VOD file with a specific transcoding profile:
% osc vod create demo https://testcontent.eyevinn.technology/mp4/VINN.mp4 --profile x264-high
Remove a VOD pipeline but keep the VOD files:
% osc vod cleanup demo
eyevinn as an OSC super adminPAT_SECRET=<pat-secret> osc admin list-instances eyevinn channel-engine
asdasd as an OSC super adminPAT_SECRET=<pat-secret> osc --env dev admin remove-instance asdasd channel-engine mychannel
To manage configuration values for an application we can create an instance of an Application Config Service.
% osc web config-create jonastest
Configuration service instance available at https://eyevinnlab-jonastest.eyevinn-app-config-svc.auto.prod.osaas.io
And to remove it (with the data)
% osc web config-delete --data jonastest
Configuration values managed by the Application Config Service can be stored as environment variable using this commmand.
% osc web config-to-env <config-instance-name>
export AWS_ACCESS_KEY_ID=admin
export CHANNELURL=https://eyevinnlab.ce.prod.osaas.io/channels/mychannel/master.m3u8
And storing it in the shell.
% eval `osc web config-to-env <config-instance-name>`
Compare two video files and get a VMAF quality score:
% osc compare vmaf s3://bucket/reference.mp4 s3://bucket/distorted.mp4 s3://bucket/vmaf-result.json
Generate subtitles using OpenAI Whisper:
% export OPENAI_API_KEY=<your-openai-api-key>
% osc transcribe https://example.com/video.mp4 --format vtt --language en
List secrets for a service:
% osc secrets list minio-minio
Create a new secret:
% osc secrets create minio-minio mysecret myvalue
Update an existing secret:
% osc secrets update minio-minio mysecret newvalue
Remove a secret:
% osc secrets remove minio-minio mysecret
Restart a service instance:
% osc restart minio-minio mystore
List your reserved nodes:
% osc list-reserved-nodes
Generate a service access token:
% osc service-access-token minio-minio
Create a service instance with invalid characters stripped from the name:
% osc create minio-minio "my store with spaces!" --safe-name -o RootUser=admin -o RootPassword=abC12345678
FAQs
Open Source Cloud CLI
The npm package @osaas/cli receives a total of 232 weekly downloads. As such, @osaas/cli popularity was classified as not popular.
We found that @osaas/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.