Search

Items tagged with: cli


Libervia CLI tip 6:

Most commands have an `-O, --output` option to format the output. By default, the output is pretty formatted for humans, but you can output in JSON, XML, or other formats.

With `template` output you can use Jinja templates, either built-in ones (the ones used in the web frontend), or your own; useful to build static HTML pages/sites, or reformat the data the way you want.

Use `--help` to see available outputs

libervia.org/__b/doc/backend/l…

#Libervia #CLI #li #tips #XMPP #FOSS


Libervia CLI tip 5:

You can retrieve or modify your contacts list (aka “roster” in XMPP terms) with `li roster`.

One of the subcommands, `stats`, gives you, as its name implies, statistics on your roster.

You’ll notably get the number of contacts per domain, with a percentage representing the domain's “weight.” It’s a simple way to see how decentralized your contacts network is.

libervia.org/__b/doc/backend/l…

#Libervia #CLI #li #tips #XMPP #roster #decentralization


Libervia CLI tip 4:

If you see an XMPP powered blog like those made with Libervia or Movim, you can use directly the `https:` URL to retrieve the XMPP blog or one of its posts.

For instance, to get my blog at goffi.org with Libervia CLI, you can do:
`li blog get -u goffi.org`

This works with all pubsub related commands, so if you have the right, you can also edit or publish like that.

libervia.org/__b/doc/backend/l…

#Libervia #Movim #XMPP #CLI #blog #tips #li


I am having a consistent problem where I am unable to clone everything from this repository into my local machine. Every time I clone using the command line, none of the documentation shows up. only one folder seems to show up and that appears to be the GitHub folder. Does anyone know what the cause of this could possibly be and how to rectify the issue? github.com/buttondown/docs #OpenSource #Git #GitHub #CLI


OK so as people seem interested, here is a first Libervia-CLI tip.

`li` is the short alias for `libervia-cli`.

If you want to quickly upload a file to share it, you can use:

`li file upload -P your_file.ext`

`-P` shows a progress bar.

You can even encrypt it with the `-e` option in which case you'll have an `aesgcm:` with the decryption token as a fragment of the URL (the `#…` part).

You can then decrypt with `li file get`.

libervia.org/__b/doc/backend/l…

#libervia #cli #li #tips #xmpp


I am slowly oxidizing my unix CLI. A lot of people have made rust based versions of common unix utilities and some of them are REALLY good.

Like fd-find for doing essentially find . -name blah. And rg (ripgrep) which does grep -R but it's aware of git, files like pyc or .bak files, and it excludes them by default.

Now I have sd which is hopefully replacing the last thing I used perl for. I write perl -pi -e s/x/y/g a lot. Just doing a quick string replace inside a file. So sd can start doing that.

I'm also trying to get used to zellij instead of tmux and starship for modern prompt decorations like the kids do.

These kids, my friends, are welcome on my lawn.

#rust #cli #linux




Hm, does someone know a #sip client that works from the #cli on #arm64 with 1und1.de #voip?

I tried

  • linphonec, but didn't get it to register on my arm64 debian installation
  • I like baresip, but I couldn't configure it to register to register with 1und1.de
  • sipsimpleclient.org - worked somehow on my desktop, but didn't get it installed on arm64

It doesn't need to be fancy, I'm just looking for a simple tool to let a phone ring. No need to connect nor for audio transmission.



Running commands of your servers or bots from Libervia CLI.


In this video, I show how to use the Libervia CLI to run ad-hoc commands, a powerful feature of XMPP that allows you to execute custom commands on your server or client. I'll demonstrate how to list available commands, run a command to get the server uptime, and send an announcement to all users. This tutorial is a great way to learn more about the Libervia CLI and how to use it to automate tasks and interact with your XMPP ecosystem.





“Defaults files” are a convenient tool to store, group, and combine related command line options.
E.g., instead of typing

pandoc --pdf-engine=xelatex -V csquotes

one could create a file `pdf.yaml` with

pdf-engine: xelatex
variables: {csquotes: true}

and use it with

pandoc -d pdf.yaml

pandoc.org/MANUAL#defaults-fil…

#pandoc #cli #yaml



Another project to share: dbcli.com/

This is for everyone who prefers the #CLI over a GUI. The website lists #database clients for the CLI.

I personally use mycli mycli.net/ since some years. I used dbeaver.io/ before (for people that prefer GUI).

mycli has a nice autocompletion, configuration file and color support. You also can store favourite database queries. It also allows you to open the current query within vim :)