Command Reference :: ActiveState Platform Documentation (original) (raw)

Table of Contents

Environment Setup

state checkout

Checkout the given project and setup its runtime

Usage

state checkout [flags] <org/project> <path>

Arguments

Flags

state commit

Commit changes to the Build Script

Usage

state init

Initialize a new project

Usage

state init [flags] <org/project> <path>

Arguments

Flags

state switch

Switch to a branch, commit, or tag

Usage

state switch  <identifier>

Arguments

Environment Usage

state exec

Intercept and run a script via a project runtime environment

Usage

Flags

state refresh

Updates the given project runtime based on its current configuration

Usage

state refresh  <org/project>

Arguments

state shell

Starts a shell/prompt in a virtual environment for the given project runtime

Usage

state shell [flags] <org/project>

Arguments

Flags

state use

Use the given project as your default. This configures it globally in all your shells, and makes State Tool default to it if not other project was found.

Usage

state use  <org/project or project>

Arguments

state use reset

Stop using your project runtime

Usage

state use show

Show the project runtime you are using

Usage

state activate

Activate a project

Usage

state activate [flags] <org/project>

Arguments

Flags

Project Usage

state projects

List your projects

Usage

state projects delete (unstable)

Delete the specified project from the Platform

Usage

state projects delete  <namespace>

Arguments

state projects edit (unstable)

Edit the project details for the specified project

Usage

state projects edit [flags] <namespace>

Arguments

Flags

state projects move (unstable)

Move the specified project to another organization

Usage

state projects move  <org/project> <new-org-name>

Arguments

state projects remote

List all projects, including ones you have not checked out locally

Usage

state run

Run your project scripts

Usage

Arguments

state show (unstable)

Show information about a project

Usage

Arguments

state artifacts

Inspect artifacts created for your project

Usage

Flags

state artifacts dl

Download build artifacts for a given build

Usage

state artifacts dl [flags] <ID> <path>

Arguments

Flags

Package Management

state bundles (unstable)

Manage bundles used in your project

Usage

Flags

state bundles install (unstable)

Add a new bundle to your project

Usage

state bundles install  <name[@version]>

Arguments

state bundles search (unstable)

Search for all available bundles that can be added to your project

Usage

state bundles search [flags] <name>

Arguments

Flags

state bundles uninstall (unstable)

Remove bundle from your project

Usage

state bundles uninstall  <name>

Arguments

state import

Import packages from a list of dependencies

Usage

Arguments

state info

Display information for the specified package

Usage

state info [flags] <name[@version]>

Arguments

Flags

state install

Add a new package to your project

Usage

state install [flags] <name[@version]>

Arguments

Flags

state manifest (unstable)

List the requirements of the current project

Usage

state packages

List packages used in your project

Usage

Flags

state search (unstable)

Search for available packages that can be added to your project

Usage

state search [flags] <name>

Arguments

Flags

state uninstall

Remove a package from your project

Usage

Arguments

Platform

state auth

Authenticate against the ActiveState Platform

Usage

Flags

state auth logout

Logout

Usage

state auth signup

Signup a new account

Usage

state branch (unstable)

Manage your project’s branches

Usage

state invite (unstable)

Invite new members to an organization

Usage

state invite [flags] <email1[,email2,..]>

Arguments

Flags

state languages (unstable)

View the languages of a project

Usage

state languages install (unstable)

Update the language of a project

Usage

state languages install  <language>

Arguments

state languages search (unstable)

Search for an available language to use in your project

Usage

state organizations (unstable)

List member organizations on the ActiveState Platform

Usage

state platforms (unstable)

Manage platforms used in your project

Usage

state platforms add (unstable)

Add a new platform to your project

Usage

state platforms add [flags] <name>

Arguments

Flags

state platforms remove (unstable)

Remove a platform from your project

Usage

state platforms remove [flags] <name>

Arguments

Flags

state platforms search (unstable)

Search for available platforms that can be added to your project

Usage

state secrets (unstable)

Manage your secrets

Usage

Flags

state secrets get (unstable)

Get the value of a secret

Usage

state secrets get  <namespace>

Arguments

state secrets set (unstable)

Set the value of a secret

Usage

state secrets set  <namespace> <secret-value>

Arguments

state secrets sync (unstable)

Synchronize your shareable secrets to everyone in the organization for the current project

Usage

state eval

Evaluate a buildscript target

Usage

Arguments

state publish

Publish an Ingredient for private consumption.

Usage

state publish [flags] <filepath>

Arguments

Flags

Platform

state security (unstable)

Show a summary of project vulnerabilities

Usage

state security  <org/project>

Arguments

state security open (unstable)

Open the given vulnerability details in your browser

Usage

Arguments

Version Control

state fork

Fork an existing ActiveState Platform project

Usage

state fork [flags] <org/project>

Arguments

Flags

state history

View history of the active project

Usage

state pull

Pull in the latest version of your project from the ActiveState Platform

Usage

state push

Push your latest changes to the platform

Usage

Arguments

state reset

Reset local checkout to a particular commit.

Usage

Arguments

state revert

Revert a commit

Usage

state revert [flags] <commit-id>

Arguments

Flags

Automation

state events (unstable)

Manage project events

Usage

state events log (unstable)

View a log of events

Usage

Flags

state scripts

Show project scripts

Usage

state scripts edit (unstable)

Edit a given script

Usage

state scripts edit [flags] <name>

Arguments

Flags

Utilities

state clean

Clean caches, configuration files, or completely remove the state tool

Usage

state clean cache

Removes cached Runtime Environments

Usage

state clean cache  <org/project>

Arguments

state clean config

Removes global State Tool configuration. Project configuration will not be affected.

Usage

state clean config [flags]

Flags

state clean uninstall

Remove the State Tool, installed languages, and any configuration files

Usage

state clean uninstall [flags]

Flags

state config

Manage the State Tool configuration

Usage

state config get

Print config values to the terminal

Usage

Arguments

state config set

Set config values using the terminal

Usage

state config set  <key> <value>

Arguments

state export

Print information based on the provided subcommand

Usage

state export config (unstable)

Export state tool configurations

Usage

state export config [flags]

Flags

state export env (unstable)

Export the environment variables associated with your runtime.

Usage

state export github-actions (unstable)

Create a github action workflow for your project

Usage

state export github-actions 

state export jwt

Print jwt credentials

Usage

state export log (unstable)

Show the path to a State Tool log file

Usage

state export log [flags] <prefix>

Arguments

Flags

state export new-api-key

Create and print new API key

Usage

state export new-api-key  <name>

Arguments

state export private-key

Exports the private key, useful if you want to set it via environment variable (ACTIVESTATE_PRIVATE_KEY)

Usage

state learn

Read the State Tool cheat sheet to learn about common commands

Usage

state update

Updates the State Tool to the latest available version

Usage

Flags

state update lock

Lock the State Tool at the current version, this disables automatic updates.

Usage

state update lock [flags]

Flags

state update unlock

Unlock the State Tool version for the current project.

Usage