Crave Devspace CLI

Android

Installing on Termux

Guide to use termux's proot-distro for crave -n devspace: Link to proot-distro: https://github.com/termux/proot-distro

Step 0: Install termux

Get it from PlayStore or F-Droid

[!NOTE]
This guide is tested on F-Droid build

Step 1: Install proot-distro

Direct Command:

pkg install proot-distro


Alternative:

pkg install git
git clone https://github.com/termux/proot-distro
cd proot-distro


Step 2: Set Up a Container using Proot

Install Ubuntu:

pd install ubuntu


Enter the Ubuntu Container:

pd sh ubuntu


Prepare for crave by installing dependencies:

apt update; apt install ssh rsync wget -y


Download Crave:

curl -s https://raw.githubusercontent.com/accupara/crave/refs/heads/master/get_crave.sh | bash -s --


Grant Permissions and Move it:

chmod +x crave; mv crave /usr/local/bin/


Step 2.5: Set up Credentials

Now open up your browser and navigate back to foss.crave.io dashboard. On the same Left Hand Side menu, and go to API keys.

  • Create a new one, name it whatever you like to easily identify it and click on Create API Key Button.
  • Copy it
  • Create a new file in your current shell called crave.conf
    • Paste the API Key here

Step 3: Connect

Once you take your valid crave.conf, just connect using

crave -n devspace
and return to the previous guide

[!NOTE]
-n here tells crave to not look for updates. As of crave 7064, Updating step causes segmentation fault error, which can be worked around this way.

Step 3.5: Quick Reconnection

To Quickly reconnect, just run:

pd sh ubuntu -- crave -n devspace


Notes:

if you facing issues:

  • try to exit from termux
  • then re-login with:
    pd sh ubuntu
  • then try again:
    crave -n devspace

Tested on

ubuntu
, though your results may vary.

You can try other distro:

pd list

Thanks to Ica for discovering this method and writing the guide that this was based on