1.6.1 • Published 2 months ago

fly-admin v1.6.1

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

fly-admin

A Typescript client for managing Fly infrastructure.

Install

npm i --save fly-admin

Usage

import { createClient } from 'fly-admin'

const fly = createClient('FLY_API_TOKEN')

async function deployApp() {
  const machine = await fly.Machine.createMachine({
    app_name: 'myAppId',
    image: 'supabase/postgres',
  })
}

API

Apps

  • fly.App.listApps()
  • fly.App.getApp()
  • fly.App.createApp()
  • fly.App.deleteApp()

Machines

  • fly.Machine.listMachines()
  • fly.Machine.getMachine()
  • fly.Machine.createMachine()
  • fly.Machine.updateMachine()
  • fly.Machine.startMachine()
  • fly.Machine.stopMachine()
  • fly.Machine.deleteMachine()
  • fly.Machine.restartMachine()
  • fly.Machine.signalMachine()
  • fly.Machine.waitMachine()
  • fly.Machine.cordonMachine()
  • fly.Machine.uncordonMachine()
  • fly.Machine.listEvents()
  • fly.Machine.listVersions()
  • fly.Machine.listProcesses()
  • fly.Machine.getLease()
  • fly.Machine.acquireLease()

Networks

  • fly.Network.allocateIpAddress()
  • fly.Network.releaseIpAddress()

Organizations

  • fly.Organization.getOrganization()

Secrets

  • fly.Secret.setSecrets()
  • fly.Secret.unsetSecrets()

Volumes

  • fly.Volume.listVolumes()
  • fly.Volume.getVolume()
  • fly.Volume.createVolume()
  • fly.Volume.deleteVolume()
  • fly.Volume.extendVolume()
  • fly.Volume.listSnapshots()

TODO

  • fly.Machine.execMachine()
  • fly.Machine.releaseLease()
  • fly.Machine.getMetadata()
  • fly.Machine.updateMetadata()
  • fly.Machine.deleteMetadata()

License

MIT

1.6.1

2 months ago

1.6.0

2 months ago

1.5.0

4 months ago

1.4.0

5 months ago

1.3.1

5 months ago

1.2.0

8 months ago

1.1.0

8 months ago

1.3.0

8 months ago

1.0.1

12 months ago

1.0.0

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago