<aside> 💡 Frequently used commands.

</aside>

Update Naas features

import naas 
naas.update()

Update Naas drivers

Classic

!pip install naas_drivers --upgrade --user

Forced

! cd drivers && git checkout main && git pull && pip install --user .

Clone a pull request locally

Get the id of the pull request and the name of the branch

Screenshot 2021-12-22 at 14.31.35.png

git fetch origin pull/234/head:naas-auth
git checkout naas-auth

Reset your Naas instance

! mkdir ~/.clean || true
! mv ~/.* ~/.clean

import os
if 'drivers' in os.listdir('/home/ftp'):
    ! cd drivers && git checkout main && git pull

import naas
naas.update()