> For the complete documentation index, see [llms.txt](https://calliopeide.gitbook.io/calliopeide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://calliopeide.gitbook.io/calliopeide/1.-ai-powered-development-system/1.2-smart-contract-development.md).

# 1.2 Smart Contract Development

**1.2.1 Contract Management**

The system provides comprehensive contract management:

```sh
# Contract initialization command
stellar contract init <project_name>

# Contract building command
stellar contract build

# Contract deployment command
stellar contract deploy \
  --wasm target/wasm32-unknown-unknown/release/<project_name>.wasm \
  --source alice \
  --network testnet \
  --alias <project_name>
```

Features:

1. Contract Creation: Initializes new contracts
2. Build Management: Handles compilation
3. Deployment: Manages contract deployment
4. Network Configuration: Supports different networks
5. Source Management: Handles key management

**1.2.2 File Management**

The system implements sophisticated file operations:

```sh
# File creation with heredoc
cat << 'EOF' > filename.txt
content
EOF

# File verification
cat filename.txt

# Directory operations
mkdir -p project_dir/src && cd project_dir/src && touch index.js
```

Features:

1. Safe File Creation: Uses heredoc for reliable creation
2. Verification: Confirms file operations
3. Directory Management: Handles nested directories
4. Path Handling: Manages relative paths
5. Operation Verification: Confirms successful operations
