Skip to content

JS/TS SDK for Fly.io - Allows you to create and manage applications by API

License

Notifications You must be signed in to change notification settings

usedatabrew/fly-machines-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: {} });

About

JS/TS SDK for Fly.io - Allows you to create and manage applications by API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published