GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sqlitebrowser/dio: A powerful command line interface for working with DBHub.io

This repository was archived by the owner on Mar 4, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

312 Commits
312 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cert
cert
 
 
cmd
cmd
 
 
config
config
 
 
misc
misc
 
 
test_data
test_data
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
dio.go
dio.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

dio

Dio is our reference command line interface (CLI) application for working with DBHub.io.

It can be used used to:

  • transfer databases to and from the cloud (pushing and pulling)
  • check their version history
  • create branches, tags, releases, and commits
  • diff changes (in a future release)
  • and more... (eventually)

It's at a fairly early stage in its development, though the main pieces should all work. It certainly needs more polish to be more user-friendly though.

Building from source

Dio requires Go to be installed (version 1.17+ is known to work). Building should just require:

$ go get github.com/sqlitebrowser/dio
$ go install github.com/sqlitebrowser/dio

Getting Started

To use it, do the following:

  1. Create a folder named .dio in your home directory;
$ cd ~
$ mkdir .dio
  1. Download ca-chain-cert.pem to ~/.dio/. For example:
$ cd ~/.dio
$ wget https://github.com/sqlitebrowser/dio/raw/master/cert/ca-chain.cert.pem
  1. Generate a certificate file for yourself at DBHub.io and save it in ~/.dio/.
  2. Create the following text file, and name it ~/.dio/config.toml:
[user]
name = "Your Name"
email = "[email protected]"

[certs]
cachain = "/home/username/.dio/ca-chain.cert.pem"
cert = "/home/username/.dio/username.cert.pem"

[general]
cloud = "https://db4s.dbhub.io"
  1. Change the name and email values to your name and email address
  2. Change /home/username to the path to your home directory
  3. Make sure cachain points to the downloaded ca-chain.cert.pem file
  4. Make sure cert points to your generated DBHub.io certificate
  • Leave the cloud value pointing to https://db4s.dbhub.io

To verify this file is set up correctly, type:

$ dio info

which will display the information loaded from this configuration file.

Dio has a help option (dio help) which is useful for listing the available dio commands, explaining their purpose, etc.

About

A powerful command line interface for working with DBHub.io

dbhub.io

Topics

clidatabasedbhubsqlite

Resources

Readme
AGPL-3.0 license
Activity
Custom properties

Stars

47 stars

Watchers

9 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.