Skip to main content

Abstra CLI

Reason this release was yanked:

Deprecaded

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

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

abstra-cli-0.4.0.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

abstra_cli-0.4.0-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page