https://github.com/screwdriver-cd/store-cli
CLI for communicating with store
https://github.com/screwdriver-cd/store-cli
cli golang
Last synced: 11 months ago
JSON representation
CLI for communicating with store
- Host: GitHub
- URL: https://github.com/screwdriver-cd/store-cli
- Owner: screwdriver-cd
- License: other
- Created: 2018-09-17T18:55:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T08:00:07.000Z (over 1 year ago)
- Last Synced: 2025-07-06T13:50:25.140Z (11 months ago)
- Topics: cli, golang
- Language: Go
- Homepage: https://cd.screwdriver.cd/pipelines/1654/events
- Size: 133 KB
- Stars: 3
- Watchers: 16
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# store-cli
CLI for communicating with the Screwdriver store.
```
$ go run store-cli.go
NAME:
store - get, set or remove items in the Screwdriver store
USAGE:
[options]
VERSION:
0.0.0
COMMANDS:
get Get a new item from the store
set Put a new item to the store
remove Remove an existing item from the store
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--scope value Scope of command. For example: event, build, pipeline
--type value Type of the command. For example: cache, artifacts, steps (default: "stable")
--timeout value Specifies the timeout in seconds for commands. (default: 60(get) or 300(set,remove))
--help, -h show help
--version, -v print the version
COPYRIGHT:
(c) 2018 Yahoo Inc.
```
## Build cache
To use the `store-cli` tool for caching files and folders in your Screwdriver builds, you can specify `--type=cache` and the `scope` of your cache.
| Scope | Access |
|---|---|
| pipeline | Cache accessible to all builds in the same pipeline |
| event | Cache accessible to all builds in the same event |
| job | Cache accessible to all builds for the same job |
For example, if you want to cache the `node_modules` folder within the `event` scope, simply run `store-cli set node_modules/ --scope=event --type=cache` and `store-cli get node_modules/ --scope=event --type=cache` (to restore the cache).
## Dependency
store-cli has dependency on ZStandard v1.4.8 (https://github.com/facebook/zstd)
To test locally in download binaries from screwdrivercd bintray and set path