this is deta
deta / deta-cli Goto Github PK
View Code? Open in Web Editor NEWLegacy Deta CLI. Repository is now archived.
Home Page: https://deta.space
License: MIT License
Legacy Deta CLI. Repository is now archived.
Home Page: https://deta.space
License: MIT License
I run the following command on my terminal and after successful install, i could not found anything by hitting deta --help.
Would you please suggest me how to do that?
curl -fsSL https://get.deta.dev/cli.sh | sh
Add a command that will ignore .deta/state
and load all files, while writing new hashes to .deta/state
. For example deta deploy -f/--force
.
People who use git to store/backup/track their codebase can have some additional files for development. But they aren't pushed to deta micro using .detaignore
. In this case, I clone the project from deta, clone the main codebase from git services and then copy the .deta
folder to my git cloned codebase. It would be nicer if I could just get the .deta
folder to identify the project to deta.
Add proxy support with authentication in deta-cli
When releasing a new version using GitHub Actions, it should be either only triggered on workflow_dispatch
(using values from github.event.input.version
and an special flag for pre-releases via github.event.input.isPrerelease
) or releases:published
(pull latest version from GitHub API). Then, Goreleaser will build for different CPU architectures on either in Docker container (with setting up QEMU and Buildx) or in these GitHub-hosted runners.
Probably ARM32 and ARM64 CPUs. For other architectures, maybe we should document the build process.
May fix in PR #40.
Suggestion to put deta's config at XDG base dir
XDG Base Directory is a specification that defines where files should go. In this specification, it also defines where programs would put the config, called XDG_CONFIG_HOME
, which defaults to $HOME/.config
.
Deta could use this specification, which means that the config will be placed under $XDG_CONFIG_HOME/deta
.
Standardization, and making $HOME
less cluttered.
Comments & questions not related to the content of this repo will be deleted.
update cli man deta new --help
--project string deta project
to match docs --project string project to create the micro under
Story
As a user, I wanted to init a new miro under one of my other projects. From the cli I ran deta new --help
under flags it was unclear that the --project string deta project
flag was to associate the micro with a project in the data dashboard. Through the slack help channel, it was brought to my attention that in the docs the --project string project to create the micro under
flag is clarified further. This is therefore an oversight on my part, but sometimes tired devs like myself will try and spin up a new Deta micro. ๐
The command reference in the docs and the cli man are consistent.
I think it would be helpful and not overburden the docs to call out how to add micros under projects in Getting Started - Creating Your First Micro. This is where I combed to find the answer. But, these are just my thoughts. ๐คท I'll open an issue in the docs too so the team can decide.
I want to export or backup all data of Deta Base.
I want the data to be output as a JSON file.
But, fetch
API limits 1MB. (Ref)
How to export all data that over 1MB?
Hello,
After an error, deta-cli seems to delete its bin
folder.
Please have a look at my shell history:
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
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
new
without being logged inriccardo@MacBook-Pro-di-Riccardo-M1 ~ % deta new --python --name test
Error: no auth token found, login with deta login or provide access token
riccardo@MacBook-Pro-di-Riccardo-M1 ~ % deta
zsh: command not found: deta
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
OS: macOS 12.0 21A5506j arm64
Host: MacBookPro17,1
Kernel: 21.1.0
Uptime: 9 hours, 50 mins
Packages: 5 (brew)
Shell: zsh 5.8
Terminal: Apple_Terminal
CPU: Apple M1
GPU: Apple M1
Memory: 1219MiB / 8192MiB
venv is a common name for virtual environments and many users get an error and don't know how to fix it.
would be nice to have..
Hey there,
I'm trying to deploy a micro but I'm getting the error from the title instead.
This is basically what happened:
deta new --python
I'd like to know the specific files that can't be modified/deleted or another way to fix my deploys.
When running deta deploy
either locally or in a CI workflow using an access token, I get the following error:
โฏ deta deploy
Deploying...
Error: failed to deploy: Not allowed to change or delete some files requested
deta v1.1.2-beta x86_64-darwin
None that I know of.
How do I delete a deta and redeploy?
I tried downloading using this script; iwr https://get.deta.dev/cli.ps1 -useb | iex
It did not work and this is the error code:
`The term 'iwr' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin
g of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:4
Have some sort of connect
command in the CLI to seamlessly connect existing directory to an existing Micro without pain.
Currently, the only workaround is copy the contents of $PWD/.deta/prog_info
file to the target machine or even set it as an secret in CI settings and do some "echo $DETA_PROG_INFO > .deta/prog_info`.
Deta Login is fine, but it would be much better if you could log in from the command line, like for deploying from github actions. Is it possible to add an optional flag for CLI logins? I'd be fine with implementing it.
The cli doesnt show link in login instead it shows bunch of numbers in headless mode
Why deta cli not supporting x86 archeticture?
Many people have problems with the deta login
command because it starts a local server and some browsers do not allow connections to localhost
. The user may also be running the command in a WSL
or in a Docker
container where port forwarding to the host
machine may not work.
For authorization, it is better to use the Deta server instead of the local server. For example:
deta login
commandlogin ID
string from server (for example UUID
)https://web.deta.sh/cli/{login ID}
Solution will require changes on the Deta backend.
Authorization was successful without local server.
Optionally, you can ask the user to enter another unique string, so that the account is not logged in because of an accidental click on the link in the internet.
Yes, it will create additional load on the server, but it will be supported on all browsers with js
, including containers
and wsl
.
This is how github cli
works successfully, for example.
Error: Unsupported architecture armv7l. Only x64 and arm64 binaries are available.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.