deta / space-cli

Deta Space CLI

Home Page:https://deta.space

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Space CLI

Running the CLI

# Run the CLI
go run main.go [command]

# Build the space binary, then run it
go build && ./space [command]

# Install the space binary to your $GOPATH/bin
go install

If you want to test the CLI against a variety of projects, you can use the deta/starters repo:

git clone https://github.com/deta/starters
go run main.go -d ./starters/python-app [command]

Customizing the api endpoint

You can customize the root endpoint by setting the SPACE_ROOT environment variable:

SPACE_ROOT=<custom-api-endpoint> space push

You can also set the SPACE_ROOT environment variable in a .env file in the root of your project, and load it with a tool like direnv.

Other configuration options can be set in the .env file as well:

  • SPACE_ACCESS_TOKEN

Running unit tests

go test ./...

About

Deta Space CLI

https://deta.space

License:MIT License


Languages

Language:Go 97.1%Language:Shell 1.0%Language:PowerShell 0.9%Language:Makefile 0.8%Language:HCL 0.3%