1.0.9 • Published 12 months ago

fly-machines-sdk v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Fly.IO Machines SDK for Node.JS

FlyDocs Image

Install package

npm i fly-machines-sdk

Init SDK

Get Fly.io API Token

export FLY_TOKEN=$(fly auth token)
import { FlyMachinesSDK } from 'fly-machines-sdk';

const apiKey = process.env.FLY_TOKEN;
const orgSlug = 'personal';

const sdk = new FlyMachinesSDK(apikey, orgSlug);

Create new application

Since fly.io migrated to app v2 each application should have a machine But two requests will be executed. 1. Create application 2. Assign machine with the application

await sdk.createApplicationOnMachine({ name: 'app_name', config: {} });
1.0.9

12 months ago

1.0.8

12 months ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago