Hello,
After an error, deta-cli seems to delete its bin folder.
Please have a look at my shell history:
Step 1: Installing deta-cli:
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % curl -fsSL https://get.deta.dev/cli.sh | sh
######################################################################## 100,0%######################################################################### 100,0%
Archive: /Users/riccardo/.deta/bin/deta.zip
inflating: deta
inflating: ._deta
Deta was installed successfully to /Users/riccardo/.deta/bin/deta
Run 'deta --help' to get started
Step 2: some quick checks after installation
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % echo $PATH
/Users/riccardo/.deta/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/riccardo/.cargo/bin
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % ls -al .deta
total 0
drwxr----- 3 riccardo staff 96 6 Set 19:54 .
drwxr-xr-x+ 44 riccardo staff 1408 6 Set 19:51 ..
drwxr-xr-x 4 riccardo staff 128 6 Set 19:54 bin
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % ls -al .deta/bin
total 26720
drwxr-xr-x 4 riccardo staff 128 6 Set 19:54 .
drwxr----- 3 riccardo staff 96 6 Set 19:54 ..
-rw-r--r-- 1 riccardo staff 211 7 Lug 13:07 ._deta
-rwxr-xr-x 1 riccardo staff 13675296 7 Lug 13:07 deta
Step 3: Try to call new without being logged in
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % deta new --python --name test
Error: no auth token found, login with deta login or provide access token
Step 4: Command not found
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % deta
zsh: command not found: deta
Step 5: Post-error checks
The .deta/bin folder is not there anymore.
$PATH is fine.
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % ls -al .deta/bin
ls: .deta/bin: No such file or directory
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % ls -al .deta
total 0
drwxr----- 2 riccardo staff 64 6 Set 19:54 .
drwxr-xr-x+ 45 riccardo staff 1440 6 Set 19:54 ..
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % echo $PATH
/Users/riccardo/.deta/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/riccardo/.cargo/bin
Hello, After an error, deta-cli seems to delete its
bin
folder. Please have a look at my shell history:Step 1: Installing deta-cli:
Step 2: some quick checks after installation
Step 3: Try to call
new
without being logged inStep 4: Command not found
Step 5: Post-error checks
The
.deta/bin
folder is not there anymore.$PATH
is fine.System details