Command: init

The init command enables you to create a new empty project on your local machine. Once the project is created locally, use the push command to push your local changes to the ActiveState Platform so that you project is available in the Dashboard and to enable all project features, such as secrets.

Usage

state init <owner>/<project_name> [--language <language>] [--path <path>]

The “owner” argument is your username or the organization name that the project belongs to.

Use the --language flag to specify the language distribution the project should use.

Use the --path flag to specify the local directory where the project will be created.

Example

You can use the state init command followed by the state push command to create a new project on the ActiveState Platform.

state init jsmith/johnspython3.6 --language python3 --path C:\state_projects\mypython
cd C:\state_projects\mypython
state push

push Command