Handy commands & prompts
Add MCP server (CLI)
| claude mcp add spacelift -t http https://<account-name>.app.spacelift.io/mcp
|
Auth & status
/mcp โ select spacelift โ log in โ verify connected
Project management (via prompts)
| Create a project called "my-project".
Use the project "my-project".
List my projects and their lock status.
Unlock the current project.
|
Resources (via prompts)
| Create two resources โ one very long random string and a cute pet.
Create an S3 bucket named "dev-attachments-123" with SSE enabled.
Create a t3.micro EC2 instance in us-east-1. # expect policy denial with example policy
List resources in this project.
Delete the random resources we created earlier.
|
Import (via prompts)
| List SSM parameters in my account and import them into the project.
|
Intent to IaC (via prompts)
| Show me the HCL for resource "my-s3-bucket".
Show me the HCL for this entire project.
Create a stack from the current project and import the state.
Create a stack called "prod-infra" from the current project without importing state.
|
Worker pool (via prompts)
| Which worker pool is the current Intent project using?
Attach the worker pool named "intent-pool" to the current project.
Detach the worker pool from the current project.
|
See Worker pool and runner image for context.
Long-running operations
Some Intent operations (large imports, multi-resource creates) run asynchronously: the tool returns an operation ID and your assistant polls until the worker reports back. The assistant should keep polling with exponential backoff rather than falling back to a synchronous retry โ re-issuing the same prompt usually starts a new operation instead of resuming the in-flight one.
Use concise, explicit prompts; include environment/region and compliance requirements in your wording to help the agent make safer defaults.