using-streamlit-cli

Run, configure, and diagnose Streamlit applications from the command line.

1|1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/Shamrock2245/shamrock-trading-bot --skill using-streamlit-cli-shamrock2245
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-streamlit-cli
Source: https://github.com/Shamrock2245/shamrock-trading-bot/tree/main/.agent/skills/developing-with-streamlit/skills/using-streamlit-cli
Command: npx skills add https://github.com/Shamrock2245/shamrock-trading-bot --skill using-streamlit-cli-shamrock2245

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a concise, actionable command-line reference so developers can reliably run, configure, and diagnose Streamlit applications without guessing CLI flags or configuration precedence.

Core Features & Use Cases

  • Run workflows: explains entrypoint options for files, directories, and remote URLs and how to invoke Streamlit from an IDE or as a module.
  • Configuration management: documents command-line flags, environment variable overrides, and the recommended config.toml locations and precedence.
  • Diagnostics and maintenance: covers cache clearing, version checks, help and docs commands, and best practices for running inside virtual environments or using uv for reproducible dependency resolution.

Quick Start

Start your app by running streamlit run followed by your script name and include any server or theme flags you need.

Frequently Asked Questions about using-streamlit-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a Streamlit app from the command line?

Run a Streamlit app by executing the streamlit run command followed by your script name. You can append server or theme flags directly to this CLI invocation to configure the runtime environment for local development or containerized deployments.

What is the configuration precedence for Streamlit CLI flags, environment variables, and config.toml?

Streamlit configuration precedence follows a specific hierarchy where command-line flags override environment variables, which in turn override values in the config.toml file. This ensures CLI arguments take priority for runtime adjustments.

How do I clear the Streamlit cache from the CLI?

Clear the Streamlit cache by running the designated cache management diagnostic command from the CLI. This maintenance action removes stored data to resolve stale state issues during local app development and troubleshooting.

Can I run Streamlit from an IDE or as a Python module instead of using the CLI?

Yes, Streamlit supports module invocation patterns allowing you to run it from an IDE or as a Python module. The CLI reference documents these entrypoint options for files, directories, and remote URLs.

Do I need a virtualenv to troubleshoot Streamlit applications effectively?

Using a virtualenv is a recommended best practice for running and diagnosing Streamlit applications. It isolates dependencies, and you can use uv for reproducible dependency resolution to prevent environment-related debugging issues.