Skip to content

A Swift Package for IONOS Developer API, with CLI.

License

Notifications You must be signed in to change notification settings

adamayoung/ionos-developer-cli

Repository files navigation

IONOS Developer API and CLI

CI

A Swift Package for IONOS Developer API https://developer.hosting.ionos.com, with CLI.

Requirements

  • Swift 5.6

Installation

Add the IONOSDeveloperCore package as a dependency to your Package.swift file, and add it as a dependency to your target.

// swift-tools-version:5.6

import PackageDescription

let package = Package(
  name: "MyPackage",
  dependencies: [
    .package(url: "https://github.com/adamayoung/ionos-developer-cli.git", branch: "main")
  ],
  targets: [
    .target(name: "MyPackage", dependencies: ["IONOSDeveloperCore"])
  ]
)

CLI

git clone https://github.com/adamayoung/ionos-developer-cli.git
cd ionos-developer-cli
swift run ionos <command>

Setup

Get an API Key

Create an API key from The IONOS Developer API web site https://developer.hosting.ionos.com/keys.

Set API key with a command

Use this method to store you API key so other commands can be used without specifying it.

swift run ionos auth <api-key>

Set API key with Environment variable

export IONOS_API_KEY=<api-key>

API Areas

For a full set of commands,

swift run ionos --help

DNS

  • Zones
    • List

References

License

This library is licensed under the Apache License 2.0. See LICENSE for details.

About

A Swift Package for IONOS Developer API, with CLI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages