# Tower CLI
The Tower CLI is one of the main ways to interact with the Tower environment.
You can do basically everything you need inside the Tower CLI, including run
your code locally or remotely in the Tower cloud.
## Installing the Tower CLI
The main way to install the CLI is using the `pip` package manager.
```bash
$ pip install -U tower
```
You can also download the CLI directly from one of our [releases](https://github.com/tower/tower-cli/releases/latest).
### Nix Flake
If you have Nix installed with flakes enabled, you can install the latest version
of tower CLI with the following:
#### Profile
```bash
$ nix profile install github:tower/tower-cli#tower
```
#### NixOS/nix-darwin
If you are using [NixOS]()/[nix-darwin](https://github.com/nix-darwin/nix-darwin)
with flakes then you can add the following:
```nix
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
tower-cli.url = "github:tower/tower-cli";
};
outputs = { self, nixpkgs, tower-cli, ... }@inputs: {
# with nix-darwin:
# darwinConfigurations.your-hostname = darwin.lib.darwinSystem {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [{
environment.systemPackages = [ tower-cli.packages.${system}.tower ];
}];
};
};
}
```
#### Devenv
If you're using [devenv](https://devenv.sh), you can add tower-cli to your project:
```yaml
# devenv.yaml
inputs:
tower-cli:
url: github:tower/tower-cli
```
```nix
# devenv.nix
{ inputs, pkgs, ... }:
{
packages = [
inputs.tower-cli.packages.${pkgs.stdenv.system}.tower
];
}
```
## Using the Tower CLI
There are two big components in the Tower CLI reposiory: The CLI itself and the
runtime environment for the Tower cloud. We host the runtime in this repository
and pull it in to our internal code because we want to ensure that the
environments behave _exactly the same_ locally and in our cloud!
### Using the CLI
It's pretty straight forward! But here's what it looks like right now.
```bash
$ tower
Tower is a compute platform for modern data projects
Usage: tower [OPTIONS] <COMMAND>
Commands:
login Create a session with Tower
apps Interact with the apps that you own
secrets Interact with the secrets in your Tower account
deploy Deploy your latest code to Tower
run Run your code in Tower or locally
version Print the current version of Tower
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
```
### Optional Features
Tower supports several optional features that can be installed as needed:
#### AI/LLM Support
```bash
pip install "tower[ai]"
```
Provides integration with language models through:
- `tower.llms`: Access to language model functionality
#### Apache Iceberg Support
```bash
pip install "tower[iceberg]"
```
Provides Apache Iceberg table support:
- `tower.create_table`: Create Iceberg tables
- `tower.load_table`: Load data from Iceberg tables
#### Install All Optional Features
```bash
pip install "tower[all]"
```
#### Check Available Features
You can check which features are available in your installation:
```python
import tower
import pprint
# Print information about all features
pprint.pprint(tower.get_available_features())
# Check if a specific feature is enabled
print(tower.is_feature_enabled("ai"))
```
### About the runtime environment
The [tower-runtime](crates/tower-runtime) crate has the Rust library that makes
up the runtime environment itself. All the interfaces are defined in the main
crate, and the `local` package contains the invokation logic for invoking tower
packages locally.
To learn more about tower packages, see the
[tower-package](crates/tower-package) crate.
## Contributing
We welcome contributions to the Tower CLI and runtime environment! Please see
the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information.
### Code of Conduct
All contributions must abide by our code of conduct. Please see
[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for more information.
## Development
Here are a few handy tips and common workflows when developing the Tower CLI.
### Python SDK development
We use `uv` for all development. You can spawn a REPL in context using `uv` very
easily. Then you can `import tower` and you're off to the races!
```bash
uv run python
```
To run tests:
```bash
uv sync --locked --all-extras --dev
uv run pytest tests
```
If you need to get the latest OpenAPI SDK, you can run
`./scripts/generate-python-api-client.sh`.
## Testing
We use pytest to run tests. Copy `pytest.ini.template` to `pytest.ini` and
replace the values of environment variables
Raw data
{
"_id": null,
"home_page": null,
"name": "tower",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "automation, flake8, pycodestyle, pyflakes, pylint, clippy",
"author": null,
"author_email": "\"Tower Computing Inc.\" <brad@tower.dev>",
"download_url": "https://files.pythonhosted.org/packages/e1/fd/f211cac878076deed6e2a84d1f5fd362c07fb5139b8815157a1deb3030a4/tower-0.3.24.tar.gz",
"platform": null,
"description": "# Tower CLI\n\nThe Tower CLI is one of the main ways to interact with the Tower environment.\nYou can do basically everything you need inside the Tower CLI, including run\nyour code locally or remotely in the Tower cloud.\n\n## Installing the Tower CLI\n\nThe main way to install the CLI is using the `pip` package manager.\n\n```bash\n$ pip install -U tower\n```\n\nYou can also download the CLI directly from one of our [releases](https://github.com/tower/tower-cli/releases/latest).\n\n### Nix Flake\n\nIf you have Nix installed with flakes enabled, you can install the latest version\nof tower CLI with the following:\n\n#### Profile\n\n```bash\n$ nix profile install github:tower/tower-cli#tower\n```\n\n#### NixOS/nix-darwin\n\nIf you are using [NixOS]()/[nix-darwin](https://github.com/nix-darwin/nix-darwin)\nwith flakes then you can add the following:\n\n```nix\n{\n inputs = {\n nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";\n tower-cli.url = \"github:tower/tower-cli\";\n };\n\n outputs = { self, nixpkgs, tower-cli, ... }@inputs: {\n # with nix-darwin:\n # darwinConfigurations.your-hostname = darwin.lib.darwinSystem {\n nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {\n system = \"x86_64-linux\";\n modules = [{\n environment.systemPackages = [ tower-cli.packages.${system}.tower ];\n }];\n };\n };\n}\n```\n\n#### Devenv\n\nIf you're using [devenv](https://devenv.sh), you can add tower-cli to your project:\n\n```yaml\n# devenv.yaml\ninputs:\n tower-cli:\n url: github:tower/tower-cli\n```\n\n```nix\n# devenv.nix\n{ inputs, pkgs, ... }:\n{\n packages = [\n inputs.tower-cli.packages.${pkgs.stdenv.system}.tower\n ];\n}\n```\n\n## Using the Tower CLI\n\nThere are two big components in the Tower CLI reposiory: The CLI itself and the\nruntime environment for the Tower cloud. We host the runtime in this repository\nand pull it in to our internal code because we want to ensure that the\nenvironments behave _exactly the same_ locally and in our cloud!\n\n### Using the CLI\n\nIt's pretty straight forward! But here's what it looks like right now.\n\n```bash\n$ tower\nTower is a compute platform for modern data projects\n\nUsage: tower [OPTIONS] <COMMAND>\n\nCommands:\n login Create a session with Tower\n apps Interact with the apps that you own\n secrets Interact with the secrets in your Tower account\n deploy Deploy your latest code to Tower\n run Run your code in Tower or locally\n version Print the current version of Tower\n help Print this message or the help of the given subcommand(s)\n\nOptions:\n -h, --help Print help\n```\n\n### Optional Features\n\nTower supports several optional features that can be installed as needed:\n\n#### AI/LLM Support\n\n```bash\npip install \"tower[ai]\"\n```\n\nProvides integration with language models through:\n\n- `tower.llms`: Access to language model functionality\n\n#### Apache Iceberg Support\n\n```bash\npip install \"tower[iceberg]\"\n```\n\nProvides Apache Iceberg table support:\n\n- `tower.create_table`: Create Iceberg tables\n- `tower.load_table`: Load data from Iceberg tables\n\n#### Install All Optional Features\n\n```bash\npip install \"tower[all]\"\n```\n\n#### Check Available Features\n\nYou can check which features are available in your installation:\n\n```python\nimport tower\nimport pprint\n\n# Print information about all features\npprint.pprint(tower.get_available_features())\n\n# Check if a specific feature is enabled\nprint(tower.is_feature_enabled(\"ai\"))\n```\n\n### About the runtime environment\n\nThe [tower-runtime](crates/tower-runtime) crate has the Rust library that makes\nup the runtime environment itself. All the interfaces are defined in the main\ncrate, and the `local` package contains the invokation logic for invoking tower\npackages locally.\n\nTo learn more about tower packages, see the\n[tower-package](crates/tower-package) crate.\n\n## Contributing\n\nWe welcome contributions to the Tower CLI and runtime environment! Please see\nthe [CONTRIBUTING.md](CONTRIBUTING.md) file for more information.\n\n### Code of Conduct\n\nAll contributions must abide by our code of conduct. Please see\n[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for more information.\n\n## Development\n\nHere are a few handy tips and common workflows when developing the Tower CLI.\n\n### Python SDK development\n\nWe use `uv` for all development. You can spawn a REPL in context using `uv` very\neasily. Then you can `import tower` and you're off to the races!\n\n```bash\nuv run python\n```\n\nTo run tests:\n\n```bash\nuv sync --locked --all-extras --dev\nuv run pytest tests\n```\n\nIf you need to get the latest OpenAPI SDK, you can run\n`./scripts/generate-python-api-client.sh`.\n\n## Testing\nWe use pytest to run tests. Copy `pytest.ini.template` to `pytest.ini` and \nreplace the values of environment variables \n",
"bugtrack_url": null,
"license": null,
"summary": "Tower CLI and runtime environment for Tower.",
"version": "0.3.24",
"project_urls": null,
"split_keywords": [
"automation",
" flake8",
" pycodestyle",
" pyflakes",
" pylint",
" clippy"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "8162f0752173803f9a9fa8a7aade48518d8c057e4bd017b03e50b9d95f8bd529",
"md5": "93d22acb0cbe706ebef4949c8e459557",
"sha256": "39b321c51f411e1f5134e854ef34c5af827855479a873cebd48f784283a6bc0a"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-linux_armv6l.whl",
"has_sig": false,
"md5_digest": "93d22acb0cbe706ebef4949c8e459557",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4600154,
"upload_time": "2025-07-31T21:37:13",
"upload_time_iso_8601": "2025-07-31T21:37:13.770821Z",
"url": "https://files.pythonhosted.org/packages/81/62/f0752173803f9a9fa8a7aade48518d8c057e4bd017b03e50b9d95f8bd529/tower-0.3.24-py3-none-linux_armv6l.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ee9705ee8de3afa2b930cada8cce9efb12a99309443f76612ce8651a8b58f538",
"md5": "93592d75d07dd6414cb450e12cc140a1",
"sha256": "8270f536f408c66fab8e21657ccb4d860da003d90ed26ab4f6c40d9b12ef9eed"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "93592d75d07dd6414cb450e12cc140a1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4530181,
"upload_time": "2025-07-31T21:37:15",
"upload_time_iso_8601": "2025-07-31T21:37:15.972611Z",
"url": "https://files.pythonhosted.org/packages/ee/97/05ee8de3afa2b930cada8cce9efb12a99309443f76612ce8651a8b58f538/tower-0.3.24-py3-none-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e9e709b2b1ed12af3a3497f05b4450ba22e29f6272ed5606903b92b780a6c8a3",
"md5": "34fe9bf260b422ae3ea0d25248be25d3",
"sha256": "387d6ebc8b1bd7e8d9050693d1a4fd17447d591cda99780e8fb030a76faca589"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "34fe9bf260b422ae3ea0d25248be25d3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4350774,
"upload_time": "2025-07-31T21:37:17",
"upload_time_iso_8601": "2025-07-31T21:37:17.517088Z",
"url": "https://files.pythonhosted.org/packages/e9/e7/09b2b1ed12af3a3497f05b4450ba22e29f6272ed5606903b92b780a6c8a3/tower-0.3.24-py3-none-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "85bebeba90158c88eaf92c325afb8db4bec7d9589b316f2c7ccef3b9ed192c6d",
"md5": "e1ac84e150181e6d4387c07609908449",
"sha256": "63bf117ee80913bcddd967535c89cc17798e2c44e1302f16546014279b1712f0"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "e1ac84e150181e6d4387c07609908449",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4455589,
"upload_time": "2025-07-31T21:37:19",
"upload_time_iso_8601": "2025-07-31T21:37:19.414040Z",
"url": "https://files.pythonhosted.org/packages/85/be/beba90158c88eaf92c325afb8db4bec7d9589b316f2c7ccef3b9ed192c6d/tower-0.3.24-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7ad0ca34e6ac7703e12fc1dc3078736086348f7cc0c47d682e30510e83d3d316",
"md5": "a821d3610a55984384c5ae86c31f67c7",
"sha256": "fc1babade62c57ecaef7516adaa28269f8574c56827e66c317881147a9be4265"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
"has_sig": false,
"md5_digest": "a821d3610a55984384c5ae86c31f67c7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4547972,
"upload_time": "2025-07-31T21:37:21",
"upload_time_iso_8601": "2025-07-31T21:37:21.711507Z",
"url": "https://files.pythonhosted.org/packages/7a/d0/ca34e6ac7703e12fc1dc3078736086348f7cc0c47d682e30510e83d3d316/tower-0.3.24-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b45cb186bebeef17eba125ea5a40f161f0eefdd3c2a126c7648692d1122e9fb0",
"md5": "872e02a7db10c57a583ff6c0e054c136",
"sha256": "8c36f14beb543ea9542cc8ae7fb2e204c4be864a54195ee6224863db8646e573"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "872e02a7db10c57a583ff6c0e054c136",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4725323,
"upload_time": "2025-07-31T21:37:23",
"upload_time_iso_8601": "2025-07-31T21:37:23.611635Z",
"url": "https://files.pythonhosted.org/packages/b4/5c/b186bebeef17eba125ea5a40f161f0eefdd3c2a126c7648692d1122e9fb0/tower-0.3.24-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "372905b72cf8026b9f6a4069b42e16db028b09b0cf4bac75b67fb99663b8f421",
"md5": "a2026081f7e0af1cc064e37b8451610c",
"sha256": "4abb51c501ed8de7ab87039f75abb6785797dd422ecc71303e092d904a9657cc"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-musllinux_1_2_aarch64.whl",
"has_sig": false,
"md5_digest": "a2026081f7e0af1cc064e37b8451610c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4383496,
"upload_time": "2025-07-31T21:37:25",
"upload_time_iso_8601": "2025-07-31T21:37:25.513290Z",
"url": "https://files.pythonhosted.org/packages/37/29/05b72cf8026b9f6a4069b42e16db028b09b0cf4bac75b67fb99663b8f421/tower-0.3.24-py3-none-musllinux_1_2_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b5de33634dd722932c3b2b2356d37796406bbcaabad961ad123ba32f6fadf450",
"md5": "a885373d282e0acfc5b344ad7ec362cd",
"sha256": "24b1290320484a44c63d0852f4950daa23f9a7c2668dfa36c6d2e42fdcb0372f"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-musllinux_1_2_armv7l.whl",
"has_sig": false,
"md5_digest": "a885373d282e0acfc5b344ad7ec362cd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4528074,
"upload_time": "2025-07-31T21:37:27",
"upload_time_iso_8601": "2025-07-31T21:37:27.046157Z",
"url": "https://files.pythonhosted.org/packages/b5/de/33634dd722932c3b2b2356d37796406bbcaabad961ad123ba32f6fadf450/tower-0.3.24-py3-none-musllinux_1_2_armv7l.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "48c31a9623869d861b4c89efd50f5d4b27e0a059dcbbc185ca433c53c022a7e5",
"md5": "1318cc3ece8b02e61f545b0641e2fb37",
"sha256": "67434e0a21a4a29a619c5da8724a8b5373832de49e5a8f7efe0322191def4da5"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-musllinux_1_2_i686.whl",
"has_sig": false,
"md5_digest": "1318cc3ece8b02e61f545b0641e2fb37",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 5039734,
"upload_time": "2025-07-31T21:37:28",
"upload_time_iso_8601": "2025-07-31T21:37:28.549363Z",
"url": "https://files.pythonhosted.org/packages/48/c3/1a9623869d861b4c89efd50f5d4b27e0a059dcbbc185ca433c53c022a7e5/tower-0.3.24-py3-none-musllinux_1_2_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a33b9bf32ae7a09e0b9edd430882c0288701225ccb95b94b1e589a18369e60ac",
"md5": "c6bfe80cf1b200e4e0f0e9aa5d70ab96",
"sha256": "00fd9b59f06cbd19b8e242e16bf980d250a76ee5524bf5ffd7b7c58d89f402f1"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-musllinux_1_2_x86_64.whl",
"has_sig": false,
"md5_digest": "c6bfe80cf1b200e4e0f0e9aa5d70ab96",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4803585,
"upload_time": "2025-07-31T21:37:30",
"upload_time_iso_8601": "2025-07-31T21:37:30.602014Z",
"url": "https://files.pythonhosted.org/packages/a3/3b/9bf32ae7a09e0b9edd430882c0288701225ccb95b94b1e589a18369e60ac/tower-0.3.24-py3-none-musllinux_1_2_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "668c32c62e048cafeed375e32245db83be955bf0e442be95e662f6ed4f43690e",
"md5": "35dbd0d1fbc848a8101caea6751fc9bf",
"sha256": "960d2d2ce6b526876969f518ab472e7b6610beb6b5dd1ab1a5fcbfcfeb27152c"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "35dbd0d1fbc848a8101caea6751fc9bf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4488743,
"upload_time": "2025-07-31T21:37:32",
"upload_time_iso_8601": "2025-07-31T21:37:32.142800Z",
"url": "https://files.pythonhosted.org/packages/66/8c/32c62e048cafeed375e32245db83be955bf0e442be95e662f6ed4f43690e/tower-0.3.24-py3-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "aa46083fd17113ea15d59b8026203f361e942cec13db92dc2e20a057bbd37d63",
"md5": "65853d3ab321641fc7ab5d5773820f16",
"sha256": "713a7336054ab979039f4250e48758608ce9f9bc792895549869417d29ae821a"
},
"downloads": -1,
"filename": "tower-0.3.24-py3-none-win_arm64.whl",
"has_sig": false,
"md5_digest": "65853d3ab321641fc7ab5d5773820f16",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4288254,
"upload_time": "2025-07-31T21:37:33",
"upload_time_iso_8601": "2025-07-31T21:37:33.975186Z",
"url": "https://files.pythonhosted.org/packages/aa/46/083fd17113ea15d59b8026203f361e942cec13db92dc2e20a057bbd37d63/tower-0.3.24-py3-none-win_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e1fdf211cac878076deed6e2a84d1f5fd362c07fb5139b8815157a1deb3030a4",
"md5": "cd68baf8a8a9a5050f7155c3c5e4837e",
"sha256": "d487b4c0d84b6e435ed67fc1499428f8c0499f2f865a06ffde11eb2c83957266"
},
"downloads": -1,
"filename": "tower-0.3.24.tar.gz",
"has_sig": false,
"md5_digest": "cd68baf8a8a9a5050f7155c3c5e4837e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 200430,
"upload_time": "2025-07-31T21:37:35",
"upload_time_iso_8601": "2025-07-31T21:37:35.522676Z",
"url": "https://files.pythonhosted.org/packages/e1/fd/f211cac878076deed6e2a84d1f5fd362c07fb5139b8815157a1deb3030a4/tower-0.3.24.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-31 21:37:35",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "tower"
}