Git Product home page Git Product logo

ar-cli's Introduction

ar-cli

ArvanCloud CDN-DNS-CloudSecurity Command Line Interface

Brief

ArvanCloud User can change cdn-dns-cs configuration using cli

Input

User API Token available in arvancloud panel

Compile

./make.sh

Usage

./ar-cli --help                                                                                                                                                 [577904f]

    Arvan CDN Services
    This client helps you manage CDN in Arvan Cloud Services

Usage:
  ar-cli [flags]
  ar-cli [command]

Available Commands:
  dns         Manage DNS configurations
  dnssec      Manage DNSSEC configurations
  help        Help about any command
  login       Log in to Arvan server
  options

Flags:
  -h, --help   help for ar-cli

Usage Example

Login

→ ./ar-cli login                                                                                                                                                  [577904f]
Select arvan region:
  [1] ir-thr-at1
  [-] ir-thr-mn1 (inactive)
Region Number[1]: 1
Enter arvan API token: Apikey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Configuration saved successfully.
Valid Authorization credentials. Logged in successfully!

Get DNS records list

→ ./ar-cli dns list x.com                                                                                                                                         [577904f]
ID      Type    Title   Value   TTL     Status
05486aef-60e9-48c9-a1fb-8c1c91be782e    a       @               2m0s    false
198334bb-4f1c-4534-a22c-b5ce43af8440    a       www             2m0s    false
c741d108-8320-42ef-b441-792f604fac6e    ns      @               2h0m0s  false
1864ffbc-3cd6-47d9-b5b8-4d714ce40f86    ns      @               2h0m0s  false

Showing page 1 of 1

Create CNAME record

→ ./ar-cli dns create cname x.com --host y.com --name foo --ttl 120                                                                                               [577904f]
DNS record created successfully

Get DNS records list after adding the CNAME

→ ./ar-cli dns list x.com                                                                                                                                         [577904f]
ID      Type    Title   Value   TTL     Status
05486aef-60e9-48c9-a1fb-8c1c91be782e    a       @               2m0s    false
198334bb-4f1c-4534-a22c-b5ce43af8440    a       www             2m0s    false
27ae5971-1520-42b1-8c6d-e46266347435    cname   foo             2m0s    false
c741d108-8320-42ef-b441-792f604fac6e    ns      @               2h0m0s  false
1864ffbc-3cd6-47d9-b5b8-4d714ce40f86    ns      @               2h0m0s  false

Showing page 1 of 1

Contributors:

  • Masih Yeganeh https://github.com/masihyeganeh

ar-cli's People

Contributors

3aaber avatar masihyeganeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.