The ActiveState State Tool is a command-line interface (CLI) that simplifies the management and deployment of programming language environments. This section provides comprehensive reference documentation for all State Tool commands, configuration options, and advanced features.
The State Tool enables developers to:
state init <org/project> # Create new project
state checkout <org/project> # Check out existing project
state pull # Update local project
state push # Save changes to Platform
state shell # Start project shell
state use <org/project> # Set as system default
state use show # Show current default
state use reset # Remove default
state install <package> # Install package
state uninstall <package> # Remove package
state packages # List installed packages
state search <term> # Search for packages
state projects # List local projects
state history # Show project history
state platforms # Show/manage target platforms
state branch # Manage project branches
state auth # Authenticate with Platform
state auth --show # Show auth status
state auth --logout # Sign out
If you haven’t installed the State Tool yet, see the Installation Guide.
state --help # General help
state <command> --help # Command-specific help
state learn # Interactive learning tool
To check your State Tool version:
state --version
To update to the latest version:
state update
The State Tool uses several configuration files:
Core Project Commands: Basic project operations like creating, checking out, and managing projects.
Package Management Commands: Installing, removing, and searching for packages and dependencies.
Environment Commands: Activating and managing runtime environments.
Collaboration Commands: Sharing projects, managing branches, and working with teams.
Platform Commands: Managing target operating systems and architectures.
Utility Commands: Authentication, configuration, and diagnostic tools.
The State Tool integrates with various shells:
To enable shell completion:
state export new-shell-completion
The State Tool is designed for automation and can be used in:
If you need additional help: