mirror of
https://github.com/deta/space-cli.git
synced 2026-03-12 06:35:56 +01:00
Deta Space CLI
https://deta.space
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.9.0 to 0.17.0. - [Commits](https://github.com/golang/net/compare/v0.9.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github/workflows | ||
| .vscode | ||
| cmd | ||
| internal | ||
| pkg | ||
| scripts | ||
| shared | ||
| .gitignore | ||
| .gon-amd64.hcl | ||
| .gon-arm64.hcl | ||
| .goreleaser.yaml | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| Makefile | ||
| README.md | ||
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 ./...