Abstra CLI
Reason this release was yanked:
Deprecated
Project description
abstra-cli
Install
Download from pip (preferably using pipx):
pip[x] install abstra-cli
Commands
Most commands are authenticated. To authenticate you need to generate an API Token here.
Authentication credentials are stored in the current directory at .abstra/credentials
.
Alternatively you can set the ABSTRA_API_TOKEN
environment variable.
Configure
abstra configure [API_TOKEN]
Configures the current working directory credentials. Credentials are stored at .abstra/credentials
.
Ignoring files
You can ignore files placing a .abstraignore
at the target directory:
__pycache__
tests/
*.ipynb
.abstraignore
itself will always be ignored
Remote resources
Remote resources can be files
, vars
or packages
.
You can manage remote resources with the following commands:
List resources
abstra list RESOURCE
List remote resources on your workspace.
Examples:
abstra list packages
abstra list vars
abstra list files
# Saving envvars and packages
abstra list packages > requirements.txt
abstra list vars > .env
Add resource
abstra add RESOURCE [...OPTIONS]
Adds remote resources on your workspace.
Examples:
# Files
abstra add files foo.txt bar.log
abstra add files foo/ ./
# Vars
abstra add vars ENVIROMENT=production VERSION=1.0.0
abstra add vars -f .env
abstra add vars --file .env
# Packages
abstra add packages pandas numpy=1.0.1 scipy>=1.0.1
abstra add packages -f requirements.txt
abstra add packages -r requirements.txt
abstra add packages --file requirements.txt
abstra add packages --requirement requirements.txt
Remove resource
abstra remove RESOURCE [...OPTIONS]
Remove remote resources from your workspace.
Examples:
abstra remove files foo.txt bar.log
abstra remove vars ENVIROMENT VERSION
abstra remove packages pandas numpy scipy
Aliases
Some commands have aliases.
upload
# Alias for `abstra add files` with default argument `.`
abstra upload [FILES or DIRECTORIES, default: .]
ls
# Alias for `abstra list files`
abstra ls
rm
# Alias for `abstra remove files`
abstra rm
install
# Alias for `abstra add packages`
abstra install [PACKAGES]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for abstra_cli-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f704d77fbecb12bd4b298ac20032224b489a0af65db1c1faa69b6f83af4ed02f |
|
MD5 | 6c6f22398e7740c5b8f487510e75b703 |
|
BLAKE2b-256 | 39f86d66476dbfbc2ef4ce8e9afd7d8be4530f931613e10af123287dae527615 |